1e509ee18Sopenharmony_ci# Copyright (c) 2021-2024 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_ciif (!defined(ark_standalone_build)) {
15e509ee18Sopenharmony_ci  ark_standalone_build = false
16e509ee18Sopenharmony_ci}
17e509ee18Sopenharmony_ci
18e509ee18Sopenharmony_ciif (!ark_standalone_build) {
19e509ee18Sopenharmony_ci  build_root = "//build"
20e509ee18Sopenharmony_ci  ark_third_party_root = "//third_party"
21e509ee18Sopenharmony_ci  import("$build_root/ohos.gni")
22e509ee18Sopenharmony_ci} else {
23e509ee18Sopenharmony_ci  ark_third_party_root = "//arkcompiler/toolchain/build/third_party_gn"
24e509ee18Sopenharmony_ci  import("$build_root/ark.gni")
25e509ee18Sopenharmony_ci}
26e509ee18Sopenharmony_ciimport("$build_root/test.gni")
27e509ee18Sopenharmony_ci
28e509ee18Sopenharmony_ciets_frontend_root = "//arkcompiler/ets_frontend"
29e509ee18Sopenharmony_ci
30e509ee18Sopenharmony_citoolchain_linux = "$build_root/toolchain/linux:clang_x64"
31e509ee18Sopenharmony_ciif (host_cpu == "arm64") {
32e509ee18Sopenharmony_ci  toolchain_mac = "$build_root/toolchain/mac:clang_arm64"
33e509ee18Sopenharmony_ci} else {
34e509ee18Sopenharmony_ci  toolchain_mac = "$build_root/toolchain/mac:clang_x64"
35e509ee18Sopenharmony_ci}
36e509ee18Sopenharmony_citoolchain_win = "$build_root/toolchain/mingw:mingw_x86_64"
37