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("medical") {
18  include_dirs = [
19    "$SUBSYSTEM_DIR/interfaces/native/include",
20    "$SUBSYSTEM_DIR/interfaces/plugin/include",
21    "//third_party/libuv/include",
22    "//third_party/node/src",
23  ]
24  defines = [
25    "APP_LOG_TAG = \"medicalJs\"",
26    "LOG_DOMAIN = 0xD002701",
27  ]
28  sources = [
29    "src/medical_js.cpp",
30    "src/medical_napi_utils.cpp",
31  ]
32  deps = [ "$SUBSYSTEM_DIR/interfaces/native:medical_interface_native" ]
33  external_deps = [
34    "c_utils:utils",
35    "hilog:libhilog",
36    "napi:ace_napi",
37  ]
38  relative_install_dir = "module"
39  part_name = "medical_sensor"
40  subsystem_name = "sensors"
41}
42
43ohos_static_library("medical_static") {
44  include_dirs = [
45    "$SUBSYSTEM_DIR/interfaces/native/include",
46    "$SUBSYSTEM_DIR/interfaces/plugin/include",
47    "//third_party/libuv/include",
48    "//third_party/node/src",
49  ]
50  defines = [
51    "APP_LOG_TAG = \"medicalJs\"",
52    "LOG_DOMAIN = 0xD002701",
53  ]
54  sources = [
55    "src/medical_js.cpp",
56    "src/medical_napi_utils.cpp",
57  ]
58  deps = [ "$SUBSYSTEM_DIR/interfaces/native:medical_interface_native" ]
59  external_deps = [
60    "c_utils:utils",
61    "hilog:libhilog",
62    "napi:ace_napi",
63  ]
64  part_name = "medical_sensor"
65  subsystem_name = "sensors"
66}
67
68group("medical_js_target") {
69  deps = [ ":medical" ]
70}
71