15f9996aaSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
25f9996aaSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35f9996aaSopenharmony_ci# you may not use this file except in compliance with the License.
45f9996aaSopenharmony_ci# You may obtain a copy of the License at
55f9996aaSopenharmony_ci#
65f9996aaSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75f9996aaSopenharmony_ci#
85f9996aaSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95f9996aaSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105f9996aaSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115f9996aaSopenharmony_ci# See the License for the specific language governing permissions and
125f9996aaSopenharmony_ci# limitations under the License.
135f9996aaSopenharmony_ci
145f9996aaSopenharmony_ciif (!defined(ark_standalone_build)) {
155f9996aaSopenharmony_ci  ark_standalone_build = false
165f9996aaSopenharmony_ci}
175f9996aaSopenharmony_ci
185f9996aaSopenharmony_ciif (!ark_standalone_build) {
195f9996aaSopenharmony_ci  build_root = "//build"
205f9996aaSopenharmony_ci  ark_third_party_root = "//third_party"
215f9996aaSopenharmony_ci  import("$build_root/ohos.gni")
225f9996aaSopenharmony_ci} else {
235f9996aaSopenharmony_ci  ark_third_party_root = "//arkcompiler/toolchain/build/third_party_gn"
245f9996aaSopenharmony_ci  import("$build_root/ark.gni")
255f9996aaSopenharmony_ci}
265f9996aaSopenharmony_ciimport("$build_root/test.gni")
275f9996aaSopenharmony_ci
285f9996aaSopenharmony_ciets_frontend_root = "//arkcompiler/ets_frontend"
295f9996aaSopenharmony_ci
305f9996aaSopenharmony_citoolchain_linux = "$build_root/toolchain/linux:clang_${host_cpu}"
315f9996aaSopenharmony_ciif (host_cpu == "arm64") {
325f9996aaSopenharmony_ci  toolchain_mac = "$build_root/toolchain/mac:clang_arm64"
335f9996aaSopenharmony_ci} else {
345f9996aaSopenharmony_ci  toolchain_mac = "$build_root/toolchain/mac:clang_x64"
355f9996aaSopenharmony_ci}
365f9996aaSopenharmony_citoolchain_win = "$build_root/toolchain/mingw:mingw_x86_64"
37