• 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")
15
16SUBSYSTEM_DIR = "//base/sensors/medical_sensor"
17
18##############################################
19ohos_ndk_library("libmedical_ndk") {
20  output_name = "medical"
21  ndk_description_file = "./libmedical.json"
22  min_compact_version = "6"
23}
24
25ohos_shared_library("medical_interface_native") {
26  output_name = "medical_agent"
27  sources = [ "src/medical_native_impl.cpp" ]
28
29  include_dirs = [
30    "include",
31    "//commonlibrary/c_utils/base/include",
32    "//utils/system/safwk/native/include",
33    "$SUBSYSTEM_DIR/frameworks/native/medical_sensor/include",
34    "$SUBSYSTEM_DIR/utils/include",
35    "$SUBSYSTEM_DIR/interfaces/native/include",
36    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
37    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
38  ]
39  deps = [
40    "$SUBSYSTEM_DIR/frameworks/native/medical_sensor:libmedical_native",
41    "$SUBSYSTEM_DIR/interfaces/native:libmedical_ndk",
42    "$SUBSYSTEM_DIR/utils:libmedical_utils",
43  ]
44  external_deps = [
45    "c_utils:utils",
46    "eventhandler:libeventhandler",
47    "hiviewdfx_hilog_native:libhilog",
48    "ipc:ipc_core",
49  ]
50  part_name = "medical_sensor"
51  subsystem_name = "sensors"
52}
53
54##############################################
55group("medical_ndk_target") {
56  deps = [ ":medical_interface_native" ]
57}
58