• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
15SUBSYSTEM_DIR = "//base/sensors/medical_sensor"
16ohos_shared_library("libmedical_utils") {
17  sources = [
18    "src/dmd_report.cpp",
19    "src/medical.cpp",
20    "src/medical_basic_data_channel.cpp",
21    "src/medical_basic_info.cpp",
22    "src/medical_channel_info.cpp",
23    "src/permission_util.cpp",
24    "src/report_data_cache.cpp",
25  ]
26
27  include_dirs = [
28    "include",
29    "//commonlibrary/c_utils/base/include",
30    "//utils/system/safwk/native/include",
31    "//drivers/peripheral/sensor/interfaces/include",
32    "$SUBSYSTEM_DIR/interfaces/native/include",
33    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include/message_parcel.h",
34  ]
35
36  external_deps = [
37    "access_token:libaccesstoken_sdk",
38    "access_token:libprivacy_sdk",
39    "c_utils:utils",
40    "hisysevent_native:libhisysevent",
41    "hiviewdfx_hilog_native:libhilog",
42    "ipc:ipc_core",
43    "safwk:system_ability_fwk",
44    "samgr:samgr_proxy",
45  ]
46  part_name = "medical_sensor"
47  subsystem_name = "sensors"
48}
49
50group("medical_utils_target") {
51  deps = [ ":libmedical_utils" ]
52}
53