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_ndk_library("libmedical_ndk") {
1869f182c4Sopenharmony_ci  output_name = "medical"
1969f182c4Sopenharmony_ci  ndk_description_file = "./libmedical.json"
2069f182c4Sopenharmony_ci  min_compact_version = "6"
2169f182c4Sopenharmony_ci}
2269f182c4Sopenharmony_ci
2369f182c4Sopenharmony_ciohos_shared_library("medical_interface_native") {
2469f182c4Sopenharmony_ci  output_name = "medical_agent"
2569f182c4Sopenharmony_ci  sources = [ "src/medical_native_impl.cpp" ]
2669f182c4Sopenharmony_ci
2769f182c4Sopenharmony_ci  include_dirs = [
2869f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/frameworks/native/medical_sensor/include",
2969f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/interfaces/native/include",
3069f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/utils/include",
3169f182c4Sopenharmony_ci  ]
3269f182c4Sopenharmony_ci
3369f182c4Sopenharmony_ci  deps = [
3469f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/frameworks/native/medical_sensor:libmedical_native",
3569f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/interfaces/native:libmedical_ndk",
3669f182c4Sopenharmony_ci    "$SUBSYSTEM_DIR/utils:libmedical_utils",
3769f182c4Sopenharmony_ci  ]
3869f182c4Sopenharmony_ci
3969f182c4Sopenharmony_ci  external_deps = [
4069f182c4Sopenharmony_ci    "c_utils:utils",
4169f182c4Sopenharmony_ci    "eventhandler:libeventhandler",
4269f182c4Sopenharmony_ci    "hilog:libhilog",
4369f182c4Sopenharmony_ci    "ipc:ipc_core",
4469f182c4Sopenharmony_ci    "safwk:system_ability_fwk",
4569f182c4Sopenharmony_ci    "samgr:samgr_proxy",
4669f182c4Sopenharmony_ci  ]
4769f182c4Sopenharmony_ci
4869f182c4Sopenharmony_ci  part_name = "medical_sensor"
4969f182c4Sopenharmony_ci  subsystem_name = "sensors"
5069f182c4Sopenharmony_ci}
5169f182c4Sopenharmony_ci
5269f182c4Sopenharmony_ci##############################################
5369f182c4Sopenharmony_cigroup("medical_ndk_target") {
5469f182c4Sopenharmony_ci  deps = [ ":medical_interface_native" ]
5569f182c4Sopenharmony_ci}
56