代码拉取完成,页面将自动刷新
import("//build/ohos.gni")
ohos_shared_library("serialhelper") {
sources = [
"serial_opt.cpp",
"serial_helper.cpp",
"x_napi_tool.cpp",
]
include_dirs = [
"//third_party/node/src",
"./include",
"//base/hiviewdfx/hilog/interfaces/native/kits/include",
]
remove_configs = [
"//build/config/compiler:no_rtti",
"//build/config/compiler:no_exceptions",
]
lib_dirs = [
]
libs = [
]
cflags = [
"-mno-relax",
"-fpermissive",
"-Wno-writable-strings",
"-Wno-error=pointer-to-int-cast",
"-Wno-error=void-pointer-to-int-cast",
"-Wno-error=conversion",
"-Wno-error=implicit-function-declaration",
"-Wno-error",
]
ldflags = [
"-lpthread",
"-ldl",
"-lrt",
]
deps = [
"//base/hiviewdfx/hilog/frameworks/hilog_ndk:hilog_ndk",
]
external_deps = [
"hilog_native:libhilog",
"napi:ace_napi",
]
defines = [ "MY_TEST_DEFINE" ]
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_executable("serialdebug") {
sources = [
"serial_opt.cpp",
]
include_dirs = [
"//third_party/node/src",
"./include",
"//base/hiviewdfx/hilog/interfaces/native/kits/include",
]
remove_configs = [
"//build/config/compiler:no_rtti",
"//build/config/compiler:no_exceptions",
]
lib_dirs = [
]
libs = [
]
cflags = [
"-mno-relax",
"-fpermissive",
"-Wno-writable-strings",
"-Wno-error=pointer-to-int-cast",
"-Wno-error=void-pointer-to-int-cast",
"-Wno-error=conversion",
"-Wno-error=implicit-function-declaration",
"-Wno-error",
]
ldflags = [
"-lpthread",
"-ldl",
"-lrt",
]
deps = [
"//base/hiviewdfx/hilog/frameworks/hilog_ndk:hilog_ndk",
]
external_deps = [
"hilog_native:libhilog",
"napi:ace_napi",
]
defines = [ "MY_TEST_DEFINE" ]
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
group("napi_demo") {
deps = [
":serialhelper",
":serialdebug",
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。