[start]:fix gn

Signed-off-by: atreeof_wind <shaoyifan2@huawei.com>
This commit is contained in:
atreeof_wind 2024-05-30 15:15:04 +08:00
parent 305378cf1a
commit 95d60d8f56
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@ group("kitsgroup") {
deps += [ "syscap:deviceinfo_ndk" ]
if (support_jsapi) {
deps += [
"cj:cj_device_info",
"cj:cj_device_info_ffi",
"cj:cj_system_parameter_enhance_ffi",
"jskits:deviceinfo",
"jskits:systemparameter",

4
interfaces/kits/cj/BUILD.gn Normal file → Executable file
View File

@ -14,7 +14,7 @@
import("//build/ohos.gni")
import("../../../begetd.gni")
ohos_shared_library("cj_device_info") {
ohos_shared_library("cj_device_info_ffi") {
sanitize = {
cfi = true
cfi_cross_dso = true
@ -59,6 +59,7 @@ ohos_shared_library("cj_device_info") {
defines += [ "WINDOWS_PLATFORM" ]
}
innerapi_tags = [ "platformsdk" ]
subsystem_name = "startup"
part_name = "init"
}
@ -99,6 +100,7 @@ ohos_shared_library("cj_system_parameter_enhance_ffi") {
defines += [ "WINDOWS_PLATFORM" ]
}
innerapi_tags = [ "platformsdk" ]
subsystem_name = "startup"
part_name = "init"
}