1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15 16SUBSYSTEM_DIR = "//base/sensors" 17 18############################################## 19ohos_shared_library("libsensor_native") { 20 sources = [ 21 "src/sensor_agent_proxy.cpp", 22 "src/sensor_client_stub.cpp", 23 "src/sensor_data_channel.cpp", 24 "src/sensor_event_handler.cpp", 25 "src/sensor_file_descriptor_listener.cpp", 26 "src/sensor_service_client.cpp", 27 "src/sensor_service_proxy.cpp", 28 ] 29 30 include_dirs = [ 31 "include", 32 "//commonlibrary/c_utils/base/include", 33 "//utils/system/safwk/native/include", 34 "$SUBSYSTEM_DIR/sensor/utils/include", 35 "$SUBSYSTEM_DIR/sensor/interfaces/native/include", 36 ] 37 deps = [ "$SUBSYSTEM_DIR/sensor/utils:libsensor_utils" ] 38 39 external_deps = [ 40 "c_utils:utils", 41 "eventhandler:libeventhandler", 42 "hisysevent_native:libhisysevent", 43 "hitrace_native:hitrace_meter", 44 "hiviewdfx_hilog_native:libhilog", 45 "ipc:ipc_core", 46 "samgr:samgr_proxy", 47 ] 48 49 part_name = "sensor" 50 subsystem_name = "sensors" 51} 52 53############################################## 54group("sensor_native_target") { 55 deps = [ ":libsensor_native" ] 56} 57