mirror of
https://gitee.com/openharmony/arkcompiler_toolchain
synced 2024-11-30 11:10:45 +00:00
1b2bf78e57
Details: Modify gn and some template Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5XGZ4 Signed-off-by: wengchangcheng <wengchangcheng@huawei.com> Change-Id: I408fc28a31b8ee2e15f60c59a7626ef8eec6316b
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
if (!defined(ark_standalone_build)) {
|
|
ark_standalone_build = false
|
|
}
|
|
|
|
toolchain_root = "//arkcompiler//toolchain"
|
|
ark_root = "//arkcompiler/runtime_core"
|
|
js_root = "//arkcompiler/ets_runtime"
|
|
|
|
if (!ark_standalone_build) {
|
|
ark_third_party_root = "//third_party"
|
|
build_root = "//build"
|
|
import("$build_root/ohos.gni")
|
|
} else {
|
|
ark_third_party_root = "//arkcompiler/toolchain/build/third_party_gn"
|
|
import("$build_root/ark.gni")
|
|
}
|
|
|
|
# For OpenHarmony build, always link with the static lib:
|
|
sdk_libc_secshared_dep =
|
|
"$ark_third_party_root/bounds_checking_function:libsec_static"
|
|
sdk_libc_secshared_config =
|
|
"$ark_third_party_root/bounds_checking_function:libsec_public_config"
|