diff --git a/frameworks/native/miscdevice/BUILD.gn b/frameworks/native/miscdevice/BUILD.gn index 89bc0ee3b76305afd8d491d3f0bd28a6c79e931e..2d925b310ac9f2295f7f96632a3e4a7f2acf3bea 100644 --- a/frameworks/native/miscdevice/BUILD.gn +++ b/frameworks/native/miscdevice/BUILD.gn @@ -31,10 +31,7 @@ ohos_shared_library("liblight_native") { "//utils/jni/jnikit/include", ] cflags = [ "-fstack-protector-all" ] - deps = [ - "$SUBSYSTEM_DIR/miscdevice/interfaces/native/light:light_ndk_header", - "$SUBSYSTEM_DIR/miscdevice/utils:libmiscdevice_utils", - ] + deps = [ "$SUBSYSTEM_DIR/miscdevice/utils:libmiscdevice_utils" ] external_deps = [ "c_utils:utils", diff --git a/interfaces/native/light/BUILD.gn b/interfaces/native/light/BUILD.gn index 985f8dba7c990b345876a6f8baaa757209434bf5..392df14debfd95d153ce56f802f3fa9711cfe4a7 100755 --- a/interfaces/native/light/BUILD.gn +++ b/interfaces/native/light/BUILD.gn @@ -14,20 +14,6 @@ import("//build/ohos.gni") SUBSYSTEM_DIR = "//base/sensors/miscdevice" -ohos_ndk_library("liblight_ndk") { - output_name = "light_agent" - ndk_description_file = "./liblight.json" - min_compact_version = "7" -} - -ohos_ndk_headers("light_ndk_header") { - dest_dir = "$ndk_headers_out_dir/sensors" - sources = [ - "./include/light_agent.h", - "./include/light_agent_type.h", - ] -} - config("light_config") { include_dirs = [ "include" ] } @@ -46,11 +32,7 @@ ohos_shared_library("light_interface_native") { cflags = [ "-Wno-error=inconsistent-missing-override" ] - deps = [ - "$SUBSYSTEM_DIR/frameworks/native/miscdevice:liblight_native", - "$SUBSYSTEM_DIR/interfaces/native/light:liblight_ndk", - "$SUBSYSTEM_DIR/interfaces/native/light:light_ndk_header", - ] + deps = [ "$SUBSYSTEM_DIR/frameworks/native/miscdevice:liblight_native" ] external_deps = [ "c_utils:utils", diff --git a/interfaces/native/light/liblight.json b/interfaces/native/light/liblight.json deleted file mode 100755 index 969401ae51277b7e1f2ec9500fb80523d3f8986b..0000000000000000000000000000000000000000 --- a/interfaces/native/light/liblight.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "first_introduced": "7", - "name": "GetLightList" - }, - { - "name": "TurnOn" - }, - { - "name": "TurnOnMulti" - }, - { - "name": "TurnOff" - } - ] \ No newline at end of file diff --git a/interfaces/native/vibrator/BUILD.gn b/interfaces/native/vibrator/BUILD.gn index 4a58c2e06b7b269123bfddab8244719c550ebc02..ea52159504149aa94175c6614e930e8d29c415fe 100644 --- a/interfaces/native/vibrator/BUILD.gn +++ b/interfaces/native/vibrator/BUILD.gn @@ -14,20 +14,6 @@ import("//build/ohos.gni") SUBSYSTEM_DIR = "//base/sensors/miscdevice" -ohos_ndk_library("libvibrator_ndk") { - output_name = "vibrator_agent" - ndk_description_file = "./libvibrator.json" - min_compact_version = "6" -} - -ohos_ndk_headers("vibrator_ndk_header") { - dest_dir = "$ndk_headers_out_dir/sensors" - sources = [ - "./include/vibrator_agent.h", - "./include/vibrator_agent_type.h", - ] -} - config("vibrator_config") { include_dirs = [ "include" ] } @@ -47,11 +33,7 @@ ohos_shared_library("vibrator_interface_native") { cflags = [ "-Wno-error=inconsistent-missing-override" ] - deps = [ - "$SUBSYSTEM_DIR/frameworks/native/miscdevice:libvibrator_native", - "$SUBSYSTEM_DIR/interfaces/native/light:light_ndk_header", - "$SUBSYSTEM_DIR/interfaces/native/vibrator:libvibrator_ndk", - ] + deps = [ "$SUBSYSTEM_DIR/frameworks/native/miscdevice:libvibrator_native" ] external_deps = [ "c_utils:utils", diff --git a/interfaces/native/vibrator/libvibrator.json b/interfaces/native/vibrator/libvibrator.json deleted file mode 100755 index 376816e32abdf481a30e648c3d2f3e6560f67630..0000000000000000000000000000000000000000 --- a/interfaces/native/vibrator/libvibrator.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "first_introduced": "6", - "name": "StartVibrator" - }, - { - "name": "StartVibratorOnce" - }, - { - "name": "EnableLooping" - }, - { - "name": "DisableLooping" - }, - { - "name": "StopVibrator" - } -]