• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("ark_root.gni")
15
16if (is_standard_system) {
17  default_enabled_plugins = []
18    platform_libs = []
19    platform_ldflags = [ "-static-libstdc++" ]
20    platform_include_dirs = []
21    use_pbqp = false
22} else {
23    default_enabled_plugins = []
24    platform_libs = []
25    platform_ldflags = []
26    platform_include_dirs = []
27    use_pbqp = false
28}
29
30enabled_plugins = default_enabled_plugins
31
32if (current_cpu == "arm") {
33  if (!defined(arm_float_abi) || arm_float_abi == "") {
34    arm_float_abi = "softfp"
35  }
36
37  assert(arm_float_abi == "soft" || arm_float_abi == "softfp" ||
38             arm_float_abi == "hard",
39         "arm_float_abi should be soft, softfp or hard")
40}
41
42enable_bytecode_optimizer = true
43enable_relayout_profile = false
44
45sdk_libc_secshared_dep = "bounds_checking_function:libsec_shared"
46sdk_libc_secshared_config =
47    "$ark_third_party_root/bounds_checking_function:libsec_public_config"
48
49if (is_mingw || is_mac || is_linux || target_os == "ios" ||
50    target_os == "android" || (is_build_sdk && is_ohos)) {
51  sdk_libc_secshared_dep = "bounds_checking_function:libsec_static"
52}
53
54is_mob = !ark_standalone_build && !is_standard_system &&
55         (current_cpu != "arm" || is_wearable_product)
56
57enable_hilog =
58    !ark_standalone_build && is_standard_system && current_os == "ohos" &&
59    (current_cpu == "arm64" || current_cpu == "arm")