1 Star 0 Fork 1

itopen/napi_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BUILD.gn 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
wenfei6316 提交于 2024-07-23 10:54 . dayu800 napi demo
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",
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/itopen/napi_demo.git
git@gitee.com:itopen/napi_demo.git
itopen
napi_demo
napi_demo
master

搜索帮助