diff --git a/light/v1_0/BUILD.gn b/light/v1_0/BUILD.gn index 715bdbec2ac9898ef3ac1d043d033601ed984295..be9b31764d04c9d834aa7111aaa8bfa2f9212a40 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 0dcab2c5d7376f44e9126c77e1272782401c0b40..bde1d06299d43e461df345df7f91886da7a04bad 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 b5549468345b85e4823d48bc4f51b3e7062a67ee..3971c1070a14ee5c8e4d7e9b87d48b6416896cc4 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" + } }