169f182c4Sopenharmony_ci# Copyright (c) 2022 Chipsea Technologies (Shenzhen) Corp., Ltd. 269f182c4Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 369f182c4Sopenharmony_ci# you may not use this file except in compliance with the License. 469f182c4Sopenharmony_ci# You may obtain a copy of the License at 569f182c4Sopenharmony_ci# 669f182c4Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 769f182c4Sopenharmony_ci# 869f182c4Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 969f182c4Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1069f182c4Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1169f182c4Sopenharmony_ci# See the License for the specific language governing permissions and 1269f182c4Sopenharmony_ci# limitations under the License. 1369f182c4Sopenharmony_ci 1469f182c4Sopenharmony_ciimport("//build/ohos.gni") 1569f182c4Sopenharmony_ciimport("./../medical_sensor.gni") 1669f182c4Sopenharmony_ci 1769f182c4Sopenharmony_ciohos_shared_library("libmedical_utils") { 1869f182c4Sopenharmony_ci sources = [ 1969f182c4Sopenharmony_ci "src/dmd_report.cpp", 2069f182c4Sopenharmony_ci "src/medical.cpp", 2169f182c4Sopenharmony_ci "src/medical_basic_data_channel.cpp", 2269f182c4Sopenharmony_ci "src/medical_basic_info.cpp", 2369f182c4Sopenharmony_ci "src/medical_channel_info.cpp", 2469f182c4Sopenharmony_ci "src/permission_util.cpp", 2569f182c4Sopenharmony_ci "src/report_data_cache.cpp", 2669f182c4Sopenharmony_ci ] 2769f182c4Sopenharmony_ci 2869f182c4Sopenharmony_ci include_dirs = [ 2969f182c4Sopenharmony_ci "$SUBSYSTEM_DIR/interfaces/native/include", 3069f182c4Sopenharmony_ci "$SUBSYSTEM_DIR/utils/include", 3169f182c4Sopenharmony_ci ] 3269f182c4Sopenharmony_ci 3369f182c4Sopenharmony_ci external_deps = [ 3469f182c4Sopenharmony_ci "access_token:libaccesstoken_sdk", 3569f182c4Sopenharmony_ci "access_token:libprivacy_sdk", 3669f182c4Sopenharmony_ci "c_utils:utils", 3769f182c4Sopenharmony_ci "hilog:libhilog", 3869f182c4Sopenharmony_ci "hisysevent:libhisysevent", 3969f182c4Sopenharmony_ci "ipc:ipc_core", 4069f182c4Sopenharmony_ci "safwk:system_ability_fwk", 4169f182c4Sopenharmony_ci "samgr:samgr_proxy", 4269f182c4Sopenharmony_ci ] 4369f182c4Sopenharmony_ci 4469f182c4Sopenharmony_ci part_name = "medical_sensor" 4569f182c4Sopenharmony_ci subsystem_name = "sensors" 4669f182c4Sopenharmony_ci} 4769f182c4Sopenharmony_ci 4869f182c4Sopenharmony_cigroup("medical_utils_target") { 4969f182c4Sopenharmony_ci deps = [ ":libmedical_utils" ] 5069f182c4Sopenharmony_ci} 51