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("medical") {
1869f182c4Sopenharmony_ci  include_dirs = [
1969f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/interfaces/native/include",
2069f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/interfaces/plugin/include",
2169f182c4Sopenharmony_ci    "//third_party/libuv/include",
2269f182c4Sopenharmony_ci    "//third_party/node/src",
2369f182c4Sopenharmony_ci  ]
2469f182c4Sopenharmony_ci  defines = [
2569f182c4Sopenharmony_ci    "APP_LOG_TAG = \"medicalJs\"",
2669f182c4Sopenharmony_ci    "LOG_DOMAIN = 0xD002701",
2769f182c4Sopenharmony_ci  ]
2869f182c4Sopenharmony_ci  sources = [
2969f182c4Sopenharmony_ci    "src/medical_js.cpp",
3069f182c4Sopenharmony_ci    "src/medical_napi_utils.cpp",
3169f182c4Sopenharmony_ci  ]
3269f182c4Sopenharmony_ci  deps = [ "$SUBSYSTEM_DIR/interfaces/native:medical_interface_native" ]
3369f182c4Sopenharmony_ci  external_deps = [
3469f182c4Sopenharmony_ci    "c_utils:utils",
3569f182c4Sopenharmony_ci    "hilog:libhilog",
3669f182c4Sopenharmony_ci    "napi:ace_napi",
3769f182c4Sopenharmony_ci  ]
3869f182c4Sopenharmony_ci  relative_install_dir = "module"
3969f182c4Sopenharmony_ci  part_name = "medical_sensor"
4069f182c4Sopenharmony_ci  subsystem_name = "sensors"
4169f182c4Sopenharmony_ci}
4269f182c4Sopenharmony_ci
4369f182c4Sopenharmony_ciohos_static_library("medical_static") {
4469f182c4Sopenharmony_ci  include_dirs = [
4569f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/interfaces/native/include",
4669f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/interfaces/plugin/include",
4769f182c4Sopenharmony_ci    "//third_party/libuv/include",
4869f182c4Sopenharmony_ci    "//third_party/node/src",
4969f182c4Sopenharmony_ci  ]
5069f182c4Sopenharmony_ci  defines = [
5169f182c4Sopenharmony_ci    "APP_LOG_TAG = \"medicalJs\"",
5269f182c4Sopenharmony_ci    "LOG_DOMAIN = 0xD002701",
5369f182c4Sopenharmony_ci  ]
5469f182c4Sopenharmony_ci  sources = [
5569f182c4Sopenharmony_ci    "src/medical_js.cpp",
5669f182c4Sopenharmony_ci    "src/medical_napi_utils.cpp",
5769f182c4Sopenharmony_ci  ]
5869f182c4Sopenharmony_ci  deps = [ "$SUBSYSTEM_DIR/interfaces/native:medical_interface_native" ]
5969f182c4Sopenharmony_ci  external_deps = [
6069f182c4Sopenharmony_ci    "c_utils:utils",
6169f182c4Sopenharmony_ci    "hilog:libhilog",
6269f182c4Sopenharmony_ci    "napi:ace_napi",
6369f182c4Sopenharmony_ci  ]
6469f182c4Sopenharmony_ci  part_name = "medical_sensor"
6569f182c4Sopenharmony_ci  subsystem_name = "sensors"
6669f182c4Sopenharmony_ci}
6769f182c4Sopenharmony_ci
6869f182c4Sopenharmony_cigroup("medical_js_target") {
6969f182c4Sopenharmony_ci  deps = [ ":medical" ]
7069f182c4Sopenharmony_ci}
71