代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/arkcompiler_toolchain 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (c) 2021-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.
import("//arkcompiler/toolchain/toolchain.gni")
config("hiviewdfx_config") {
defines = []
if (enable_dump_in_faultlog) {
defines += [ "ENABLE_DUMP_IN_FAULTLOG" ]
}
if (enable_bytrace) {
defines += [ "ENABLE_BYTRACE" ]
cflags_cc = [ "-Wno-gnu-zero-variadic-macro-arguments" ]
}
if (enable_hitrace) {
defines += [ "ENABLE_HITRACE" ]
}
if (enable_hilog) {
defines += [ "ENABLE_HILOG" ]
}
include_dirs = [ "$hilog_root/include" ]
}
config("ark_platform_config") {
configs = [ ":hiviewdfx_config" ]
defines = []
if (is_ohos) {
defines += [
"OHOS_PLATFORM",
"UNIX_PLATFORM",
]
} else if (is_linux) {
defines += [
"LINUX_PLATFORM",
"UNIX_PLATFORM",
]
} else if (is_mingw) {
defines += [ "WINDOWS_PLATFORM" ]
} else if (target_os == "android") {
if (!ark_standalone_build) {
defines += [
"ANDROID_PLATFORM",
"UNIX_PLATFORM",
]
} else {
defines += [ "UNIX_PLATFORM" ]
}
} else if (target_os == "ios") {
defines += [
"UNIX_PLATFORM",
"IOS_PLATFORM",
]
} else if (is_mac) {
defines += [
"MAC_PLATFORM",
"UNIX_PLATFORM",
]
} else {
defines += [ "UNIX_PLATFORM" ]
}
}
config("ark_toolchain_common_config") {
configs = [
":ark_platform_config",
":ark_toolchain_public_config",
":hiviewdfx_config",
]
defines = [ "PANDA_ENABLE_LTO" ]
cflags_cc = [
"-Wall",
"-Wshadow",
"-Werror",
"-Wextra",
"-pedantic",
"-Wno-invalid-offsetof",
"-Wno-gnu-statement-expression",
"-pipe",
"-Wdate-time",
"-funwind-tables",
"-fasynchronous-unwind-tables",
"-Wformat=2",
]
if (is_linux) {
defines += [
"PANDA_TARGET_UNIX",
"PANDA_TARGET_LINUX",
"PANDA_USE_FUTEX",
]
} else if (is_mingw) {
cflags_cc += [
"-std=c++17",
"-Wno-ignored-attributes",
]
defines += [
"PANDA_TARGET_WINDOWS",
"_CRTBLD",
"__LIBMSVCRT__",
]
} else if (is_mac) {
defines += [
"PANDA_TARGET_UNIX",
"PANDA_TARGET_MACOS",
]
} else if (target_os == "android") {
defines += [
"PANDA_TARGET_ANDROID",
"PANDA_TARGET_UNIX",
"PANDA_USE_FUTEX",
]
if (!ark_standalone_build) {
defines += [ "ENABLE_ANLOG" ]
}
} else if (target_os == "ios") {
defines += [
"PANDA_TARGET_UNIX",
"PANDA_TARGET_IOS",
]
} else {
defines += [
"PANDA_TARGET_UNIX",
"PANDA_USE_FUTEX",
]
if (!is_standard_system && (current_cpu != "arm" || is_wearable_product)) {
defines += [ "PANDA_TARGET_MOBILE" ]
}
}
if (is_debug) {
cflags_cc += [
"-O0",
"-ggdb3",
]
} else {
defines += [ "NDEBUG" ]
}
}
config("ark_toolchain_public_config") {
defines = []
# debug is not compatible with ios for now
if (!is_mingw && !is_mac && target_os != "ios") {
defines += [
"ECMASCRIPT_SUPPORT_CPUPROFILER",
"ECMASCRIPT_SUPPORT_HEAPPROFILER",
"ECMASCRIPT_SUPPORT_HEAPSAMPLING",
"ECMASCRIPT_SUPPORT_SNAPSHOT",
"ECMASCRIPT_SUPPORT_DEBUGGER",
]
} else if (target_os == "android") {
defines += [
"ECMASCRIPT_SUPPORT_CPUPROFILER",
"ECMASCRIPT_SUPPORT_DEBUGGER",
]
}
include_dirs = [
# Dependent on runtime_core include
"$ark_root",
"$js_root",
".",
]
}
# ecmascript unit testcase config
config("toolchain_test_config") {
visibility = [
"./test/fuzztest/*",
"./tooling/test/*",
"./websocket/test/*",
]
configs = [ ":ark_toolchain_common_config" ]
ldflags = [ "-Wl,-rpath=\$ORIGIN/" ]
}
group("ark_toolchain_packages") {
deps = []
if (host_os != "mac") {
deps += [
"./inspector:ark_debugger",
"./inspector:connectserver_debugger",
"./tooling:libark_ecma_debugger",
"./tooling/client:libark_client",
"./tooling/client/ark_cli:arkdb",
]
}
}
group("ark_toolchain_unittest") {
testonly = true
deps = []
if (host_os != "mac") {
deps += [
"//arkcompiler/toolchain/tooling/test:unittest",
"//arkcompiler/toolchain/websocket/test:unittest",
]
if (is_ohos && is_standard_system) {
deps += [ "//arkcompiler/toolchain/test/fuzztest:fuzztest" ]
}
}
}
group("ark_toolchain_host_unittest") {
testonly = true
deps = []
if (host_os != "mac") {
# js unittest
deps += [
"//arkcompiler/toolchain/tooling/test:host_unittest",
"//arkcompiler/toolchain/websocket/test:host_unittest",
]
}
}
group("ark_js_host_unittest") {
testonly = true
deps = [
"//arkcompiler/ets_runtime:ark_runtime_host_unittest",
"//arkcompiler/toolchain:ark_toolchain_host_unittest",
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。