13af6ab5fSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
23af6ab5fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33af6ab5fSopenharmony_ci# you may not use this file except in compliance with the License.
43af6ab5fSopenharmony_ci# You may obtain a copy of the License at
53af6ab5fSopenharmony_ci#
63af6ab5fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73af6ab5fSopenharmony_ci#
83af6ab5fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93af6ab5fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103af6ab5fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113af6ab5fSopenharmony_ci# See the License for the specific language governing permissions and
123af6ab5fSopenharmony_ci# limitations under the License.
133af6ab5fSopenharmony_ci
143af6ab5fSopenharmony_ciif (!defined(ark_standalone_build)) {
153af6ab5fSopenharmony_ci  ark_standalone_build = false
163af6ab5fSopenharmony_ci}
173af6ab5fSopenharmony_ci
183af6ab5fSopenharmony_ciif (!ark_standalone_build) {
193af6ab5fSopenharmony_ci  build_root = "//build"
203af6ab5fSopenharmony_ci  ark_third_party_root = "//third_party"
213af6ab5fSopenharmony_ci  toolchain_ohos = "$build_root/toolchain/ohos:ohos_clang_arm64"
223af6ab5fSopenharmony_ci  import("$build_root/ohos.gni")
233af6ab5fSopenharmony_ci} else {
243af6ab5fSopenharmony_ci  ark_third_party_root = "//arkcompiler/toolchain/build/third_party_gn"
253af6ab5fSopenharmony_ci  import("$build_root/ark.gni")
263af6ab5fSopenharmony_ci}
273af6ab5fSopenharmony_ciimport("$build_root/test.gni")
283af6ab5fSopenharmony_ci
293af6ab5fSopenharmony_ciets_frontend_root = "//arkcompiler/ets_frontend"
303af6ab5fSopenharmony_ci
313af6ab5fSopenharmony_citoolchain_linux = "$build_root/toolchain/linux:clang_${host_cpu}"
323af6ab5fSopenharmony_ciif (host_cpu == "arm64") {
333af6ab5fSopenharmony_ci  toolchain_mac = "$build_root/toolchain/mac:clang_arm64"
343af6ab5fSopenharmony_ci} else {
353af6ab5fSopenharmony_ci  toolchain_mac = "$build_root/toolchain/mac:clang_x64"
363af6ab5fSopenharmony_ci}
373af6ab5fSopenharmony_citoolchain_win = "$build_root/toolchain/mingw:mingw_x86_64"
38