Files
developtools_syscap_codec/napi/BUILD.gn
T
zhangxiao72 431878c27f ace_engine、napi 部件名仓名和目录名整改
Change-Id: Ifef6e398b5b34ae3b702c3f1f1414c894b531a7f
Signed-off-by: zhangxiao72 <zhangxiao72@huawei.com>
2022-04-28 10:04:59 +08:00

64 lines
1.8 KiB
Plaintext

# Copyright (C) 2022-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("//build/ohos.gni")
import("//build/ohos/ace/ace.gni")
base_output_path = get_label_info(":query_syscap", "target_out_dir")
query_syscap_obj_path = base_output_path + "/query_syscap.o"
gen_js_obj("query_syscap_js") {
input = "query_syscap.js"
output = query_syscap_obj_path
}
sources_platform_common = [
"../src/syscap_tool.c",
"../src/create_pcid.c",
"../src/endian_internal.c",
"../interfaces/inner_api/syscap_interface.c",
]
ohos_shared_library("systemcapability") {
include_dirs = [
"//third_party/node/src",
"//foundation/arkui/napi/interfaces/kits",
"//developtools/syscap_codec/napi",
"//developtools/syscap_codec/interfaces/inner_api",
"//developtools/syscap_codec/include",
]
sources = [ "napi_query_syscap.cpp" ]
sources += sources_platform_common
deps = [
":query_syscap_js",
"//third_party/bounds_checking_function:libsec_static",
]
external_deps = [
"hiviewdfx_hilog_native:libhilog",
"napi:ace_napi",
]
if (defined(ohos_lite)) {
deps += [ "//build/lite/config/component/cJSON:cjson_static" ]
} else {
deps += [ "//third_party/cJSON:cjson_static" ]
}
relative_install_dir = "module"
subsystem_name = "developtools"
part_name = "syscap_codec"
}