From e753f9187ba228f8eee5578d3820c0b7ef582606 Mon Sep 17 00:00:00 2001 From: zhang Date: Fri, 21 Jan 2022 16:39:15 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Aadd=20hdf=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang --- light/v1_0/BUILD.gn | 27 +++++++++++++++++---------- sensor/v1_0/BUILD.gn | 26 ++++++++++++++++---------- vibrator/v1_0/BUILD.gn | 28 +++++++++++++++++----------- 3 files changed, 50 insertions(+), 31 deletions(-) diff --git a/light/v1_0/BUILD.gn b/light/v1_0/BUILD.gn index 715bdbec..be9b3176 100755 --- a/light/v1_0/BUILD.gn +++ b/light/v1_0/BUILD.gn @@ -13,17 +13,24 @@ import("//drivers/adapter/uhdf2/hdi.gni") -hdi("light") { - package = "light.v1_0" +if (defined(ohos_lite)) { + group("liblight_proxy_1.0") { + deps = [] + public_configs = [] + } +} else { + hdi("light") { + package = "light.v1_0" - module_name = "light_service" + module_name = "light_service" - sources = [ - "ILightInterface.idl", - "LightTypes.idl", - ] + sources = [ + "ILightInterface.idl", + "LightTypes.idl", + ] - language = "cpp" - subsystem_name = "hdf" - part_name = "light_device_driver" + language = "cpp" + subsystem_name = "hdf" + part_name = "light_device_driver" + } } diff --git a/sensor/v1_0/BUILD.gn b/sensor/v1_0/BUILD.gn index 0dcab2c5..bde1d062 100644 --- a/sensor/v1_0/BUILD.gn +++ b/sensor/v1_0/BUILD.gn @@ -12,17 +12,23 @@ # limitations under the License. import("//drivers/adapter/uhdf2/hdi.gni") +if (defined(ohos_lite)) { + group("libsensor_proxy_1.0") { + deps = [] + public_configs = [] + } +} else { + hdi("sensor") { + package = "sensor.v1_0" -hdi("sensor") { - package = "sensor.v1_0" + module_name = "sensor_service" - module_name = "sensor_service" + sources = [ + "ISensorCallback.idl", + "ISensorInterface.idl", + "SensorTypes.idl", + ] - sources = [ - "ISensorCallback.idl", - "ISensorInterface.idl", - "SensorTypes.idl", - ] - - language = "cpp" + language = "cpp" + } } diff --git a/vibrator/v1_0/BUILD.gn b/vibrator/v1_0/BUILD.gn index b5549468..3971c107 100755 --- a/vibrator/v1_0/BUILD.gn +++ b/vibrator/v1_0/BUILD.gn @@ -12,18 +12,24 @@ # limitations under the License. import("//drivers/adapter/uhdf2/hdi.gni") +if (defined(ohos_lite)) { + group("vibrator") { + deps = [] + public_configs = [] + } +} else { + hdi("vibrator") { + package = "vibrator.v1_0" -hdi("vibrator") { - package = "vibrator.v1_0" + module_name = "vibrator_service" - module_name = "vibrator_service" + sources = [ + "IVibratorInterface.idl", + "VibratorTypes.idl", + ] - sources = [ - "IVibratorInterface.idl", - "VibratorTypes.idl", - ] - - language = "cpp" - subsystem_name = "hdf" - part_name = "vibrator_device_driver" + language = "cpp" + subsystem_name = "hdf" + part_name = "vibrator_device_driver" + } } -- Gitee