From 0aa4dc26afa3cee5d6dbf67454484ec2353a2123 Mon Sep 17 00:00:00 2001 From: bailu1992 Date: Wed, 7 May 2025 11:24:52 +0800 Subject: [PATCH] Revised syscap in header files Signed-off-by: bailu1992 --- sensors/miscdevice/vibrator/BUILD.gn | 5 +++++ sensors/sensor/BUILD.gn | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sensors/miscdevice/vibrator/BUILD.gn b/sensors/miscdevice/vibrator/BUILD.gn index d843b2d08..e73f0d6b6 100644 --- a/sensors/miscdevice/vibrator/BUILD.gn +++ b/sensors/miscdevice/vibrator/BUILD.gn @@ -25,4 +25,9 @@ ohos_ndk_library("lib_vibrator_ndk") { output_name = "ohvibrator" ndk_description_file = "./lib_vibrator.ndk.json" min_compact_version = "11" + system_capability = "SystemCapability.Sensors.MiscDevice" + system_capability_headers = [ + "sensors/vibrator_type.h", + "sensors/vibrator.h", + ] } diff --git a/sensors/sensor/BUILD.gn b/sensors/sensor/BUILD.gn index 8a12ddf2a..594835f9d 100644 --- a/sensors/sensor/BUILD.gn +++ b/sensors/sensor/BUILD.gn @@ -27,4 +27,9 @@ ohos_ndk_library("libsensor_ndk") { output_name = "ohsensor" output_extension = "so" min_compact_version = "11" + system_capability = "SystemCapability.Sensors.Sensor" + system_capability_headers = [ + "sensors/oh_sensor_type.h", + "sensors/oh_sensor.h", + ] } -- Gitee