mirror of
https://gitee.com/openharmony/sensors_sensor
synced 2025-03-04 12:27:15 +00:00
部件隔离
Signed-off-by: hui1975 <zhaominghui10@huawei.com> Change-Id: I1e4571ed2b7109348fd1dac79924043507913cc8
This commit is contained in:
parent
86654802c4
commit
3466bdc526
@ -14,3 +14,11 @@
|
||||
import("//build/ohos.gni")
|
||||
|
||||
SUBSYSTEM_DIR = "//base/sensors/sensor"
|
||||
|
||||
if (!defined(global_parts_info) ||
|
||||
defined(global_parts_info.hdf_drivers_interface_sensor)) {
|
||||
has_hdf_drivers_interface_sensor = true
|
||||
cflags_cc = [ "-DHAS_HDF_DRIVERS_INTERFACE_SENSOR" ]
|
||||
} else {
|
||||
has_hdf_drivers_interface_sensor = false
|
||||
}
|
||||
|
@ -52,13 +52,19 @@ ohos_shared_library("libsensor_service") {
|
||||
external_deps = [
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"c_utils:utils",
|
||||
"drivers_interface_sensor:libsensor_proxy_1.1",
|
||||
"hilog:libhilog",
|
||||
"hisysevent:libhisysevent",
|
||||
"hitrace:hitrace_meter",
|
||||
"ipc:ipc_core",
|
||||
"safwk:system_ability_fwk",
|
||||
]
|
||||
|
||||
if (has_hdf_drivers_interface_sensor) {
|
||||
external_deps += [
|
||||
"drivers_interface_sensor:libsensor_proxy_1.1",
|
||||
]
|
||||
}
|
||||
|
||||
shlib_type = "sa"
|
||||
part_name = "sensor"
|
||||
subsystem_name = "sensors"
|
||||
@ -103,7 +109,6 @@ ohos_shared_library("libsensor_service_static") {
|
||||
external_deps = [
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"c_utils:utils",
|
||||
"drivers_interface_sensor:libsensor_proxy_1.1",
|
||||
"hilog:libhilog",
|
||||
"hisysevent:libhisysevent",
|
||||
"hitrace:hitrace_meter",
|
||||
@ -111,6 +116,12 @@ ohos_shared_library("libsensor_service_static") {
|
||||
"safwk:system_ability_fwk",
|
||||
]
|
||||
|
||||
if (has_hdf_drivers_interface_sensor) {
|
||||
external_deps += [
|
||||
"drivers_interface_sensor:libsensor_proxy_1.1",
|
||||
]
|
||||
}
|
||||
|
||||
part_name = "sensor"
|
||||
subsystem_name = "sensors"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user