1# Copyright (c) 2022 Chipsea Technologies (Shenzhen) Corp., 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") 15import("./../medical_sensor.gni") 16 17ohos_shared_library("libmedical_utils") { 18 sources = [ 19 "src/dmd_report.cpp", 20 "src/medical.cpp", 21 "src/medical_basic_data_channel.cpp", 22 "src/medical_basic_info.cpp", 23 "src/medical_channel_info.cpp", 24 "src/permission_util.cpp", 25 "src/report_data_cache.cpp", 26 ] 27 28 include_dirs = [ 29 "$SUBSYSTEM_DIR/interfaces/native/include", 30 "$SUBSYSTEM_DIR/utils/include", 31 ] 32 33 external_deps = [ 34 "access_token:libaccesstoken_sdk", 35 "access_token:libprivacy_sdk", 36 "c_utils:utils", 37 "hilog:libhilog", 38 "hisysevent:libhisysevent", 39 "ipc:ipc_core", 40 "safwk:system_ability_fwk", 41 "samgr:samgr_proxy", 42 ] 43 44 part_name = "medical_sensor" 45 subsystem_name = "sensors" 46} 47 48group("medical_utils_target") { 49 deps = [ ":libmedical_utils" ] 50} 51