From c8f500eba6979972efb3d159166a5883342bce22 Mon Sep 17 00:00:00 2001 From: liyaoyao Date: Tue, 9 Apr 2024 11:38:27 +0800 Subject: [PATCH] =?UTF-8?q?ohos=5Fsdk=20NDk=E5=86=97=E4=BD=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liyaoyao --- bundle.json | 10 ---- interfaces/kits/c/BUILD.gn | 30 ---------- interfaces/kits/c/libsensor.ndk.json | 83 ---------------------------- 3 files changed, 123 deletions(-) delete mode 100644 interfaces/kits/c/BUILD.gn delete mode 100644 interfaces/kits/c/libsensor.ndk.json diff --git a/bundle.json b/bundle.json index c07c2ce8..63dca8db 100755 --- a/bundle.json +++ b/bundle.json @@ -58,16 +58,6 @@ ], "header_base": "//base/sensors/sensor/interfaces/inner_api" } - }, - { - "name": "//base/sensors/sensor/interfaces/kits/c:libsensor_ndk", - "header": { - "header_files": [ - "native_sensor_type.h", - "native_sensor.h" - ], - "header_base": "//base/sensors/sensor/interfaces/kits/c" - } } ], "test": [ diff --git a/interfaces/kits/c/BUILD.gn b/interfaces/kits/c/BUILD.gn deleted file mode 100644 index 8a12ddf2..00000000 --- a/interfaces/kits/c/BUILD.gn +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (C) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build/ohos.gni") -import("//build/ohos/ndk/ndk.gni") - -ohos_ndk_headers("sensor_ndk_header") { - dest_dir = "$ndk_headers_out_dir/sensors" - sources = [ - "./oh_sensor.h", - "./oh_sensor_type.h", - ] -} - -ohos_ndk_library("libsensor_ndk") { - ndk_description_file = "./libsensor.ndk.json" - output_name = "ohsensor" - output_extension = "so" - min_compact_version = "11" -} diff --git a/interfaces/kits/c/libsensor.ndk.json b/interfaces/kits/c/libsensor.ndk.json deleted file mode 100644 index a3d5e8f8..00000000 --- a/interfaces/kits/c/libsensor.ndk.json +++ /dev/null @@ -1,83 +0,0 @@ -[ - { - "name": "OH_Sensor_GetInfos" - }, - { - "name": "OH_Sensor_Subscribe" - }, - { - "name": "OH_Sensor_Unsubscribe" - }, - { - "name": "OH_SensorInfo_GetName" - }, - { - "name": "OH_SensorInfo_GetVendorName" - }, - { - "name": "OH_SensorInfo_GetType" - }, - { - "name": "OH_SensorInfo_GetResolution" - }, - { - "name": "OH_SensorInfo_GetMinSamplingInterval" - }, - { - "name": "OH_SensorInfo_GetMaxSamplingInterval" - }, - { - "name": "OH_SensorEvent_GetType" - }, - { - "name": "OH_SensorEvent_GetTimestamp" - }, - { - "name": "OH_SensorEvent_GetAccuracy" - }, - { - "name": "OH_SensorEvent_GetData" - }, - { - "name": "OH_SensorSubscriptionId_GetType" - }, - { - "name": "OH_SensorSubscriptionId_SetType" - }, - { - "name": "OH_SensorSubscriptionAttribute_SetSamplingInterval" - }, - { - "name": "OH_SensorSubscriptionAttribute_GetSamplingInterval" - }, - { - "name": "OH_SensorSubscriber_SetCallback" - }, - { - "name": "OH_SensorSubscriber_GetCallback" - }, - { - "name": "OH_Sensor_CreateInfos" - }, - { - "name": "OH_Sensor_DestroyInfos" - }, - { - "name": "OH_Sensor_CreateSubscriptionId" - }, - { - "name": "OH_Sensor_DestroySubscriptionId" - }, - { - "name": "OH_Sensor_CreateSubscriptionAttribute" - }, - { - "name": "OH_Sensor_DestroySubscriptionAttribute" - }, - { - "name": "OH_Sensor_CreateSubscriber" - }, - { - "name": "OH_Sensor_DestroySubscriber" - } -] \ No newline at end of file -- Gitee