1e509ee18Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2e509ee18Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e509ee18Sopenharmony_ci# you may not use this file except in compliance with the License.
4e509ee18Sopenharmony_ci# You may obtain a copy of the License at
5e509ee18Sopenharmony_ci#
6e509ee18Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0
7e509ee18Sopenharmony_ci#
8e509ee18Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e509ee18Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e509ee18Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e509ee18Sopenharmony_ci# See the License for the specific language governing permissions and
12e509ee18Sopenharmony_ci# limitations under the License.
13e509ee18Sopenharmony_ci
14e509ee18Sopenharmony_ci# Get QEMU_INSTALLATION_PATH used to run executables cross platform.
15e509ee18Sopenharmony_ciQEMU_INSTALLATION_PATH = getenv("QEMU_INSTALLATION_PATH")
16e509ee18Sopenharmony_ciprint("QEMU_INSTALLATION_PATH=$QEMU_INSTALLATION_PATH")
17e509ee18Sopenharmony_ciif (QEMU_INSTALLATION_PATH == "") {
18e509ee18Sopenharmony_ci  # Do not assert false, building for targets of non-host type would fail at gn
19e509ee18Sopenharmony_ci  # step if assert false.
20e509ee18Sopenharmony_ci  print("You may not set up environment for qemu which is used for running" +
21e509ee18Sopenharmony_ci        " executables of non-host type. Or some environment variable is named" +
22e509ee18Sopenharmony_ci        " differently. Get set-up steps from" +
23e509ee18Sopenharmony_ci        " https://gitee.com/ark_standalone_build/docs if you need to run" +
24e509ee18Sopenharmony_ci        " executables of non-host type.")
25e509ee18Sopenharmony_ci  QEMU_INSTALLATION_PATH = "/"
26e509ee18Sopenharmony_ci}
27