2022-12-08 06:18:24 +00:00
|
|
|
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2023-05-08 06:51:58 +00:00
|
|
|
import("../device_status.gni")
|
2022-12-08 06:18:24 +00:00
|
|
|
|
|
|
|
config("devicestatus_private_config") {
|
2023-04-23 07:07:11 +00:00
|
|
|
include_dirs = [ "${device_status_interfaces_path}/innerkits/include" ]
|
2022-12-08 06:18:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
config("devicestatus_srv_public_config") {
|
|
|
|
include_dirs = [
|
|
|
|
"include",
|
|
|
|
"interface",
|
|
|
|
"include/algorithm",
|
|
|
|
"include/datahub",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2022-12-29 06:56:12 +00:00
|
|
|
ohos_shared_library("devicestatus_mock") {
|
2022-12-08 06:18:24 +00:00
|
|
|
sources = [
|
|
|
|
"src/devicestatus_data_parse.cpp",
|
|
|
|
"src/devicestatus_msdp_mock.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
"${device_status_utils_path}:devicestatus_utils_config",
|
|
|
|
":devicestatus_private_config",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_configs = [ ":devicestatus_srv_public_config" ]
|
|
|
|
|
2023-03-23 07:09:23 +00:00
|
|
|
deps = [
|
|
|
|
"${device_status_utils_path}:devicestatus_util",
|
|
|
|
"//third_party/cJSON:cjson_static",
|
|
|
|
]
|
2022-12-08 06:18:24 +00:00
|
|
|
|
2023-04-23 07:07:11 +00:00
|
|
|
external_deps = [
|
|
|
|
"hiviewdfx_hilog_native:libhilog",
|
|
|
|
"sensor:sensor_interface_native",
|
|
|
|
]
|
2022-12-08 06:18:24 +00:00
|
|
|
|
2023-05-08 06:51:58 +00:00
|
|
|
subsystem_name = "${device_status_subsystem_name}"
|
2022-12-08 06:18:24 +00:00
|
|
|
part_name = "${device_status_part_name}"
|
|
|
|
}
|
|
|
|
|
|
|
|
ohos_shared_library("devicestatus_algo") {
|
|
|
|
sources = [
|
|
|
|
"src/algorithm/algo_absolute_still.cpp",
|
|
|
|
"src/algorithm/algo_base.cpp",
|
|
|
|
"src/algorithm/algo_horizontal.cpp",
|
|
|
|
"src/algorithm/algo_vertical.cpp",
|
|
|
|
"src/datahub/sensor_data_callback.cpp",
|
|
|
|
"src/devicestatus_algorithm_manager.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
"${device_status_utils_path}:devicestatus_utils_config",
|
|
|
|
":devicestatus_private_config",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_configs = [ ":devicestatus_srv_public_config" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"${device_status_interfaces_path}/innerkits:devicestatus_client",
|
2023-03-23 07:09:23 +00:00
|
|
|
"${device_status_utils_path}:devicestatus_util",
|
2022-12-08 06:18:24 +00:00
|
|
|
"//third_party/cJSON:cjson_static",
|
2022-12-29 06:56:12 +00:00
|
|
|
"//third_party/jsoncpp",
|
2022-12-08 06:18:24 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
external_deps = [
|
|
|
|
"ability_base:base",
|
|
|
|
"hiviewdfx_hilog_native:libhilog",
|
|
|
|
"input:libmmi-client",
|
2023-03-23 07:09:23 +00:00
|
|
|
"ipc:ipc_single",
|
2022-12-08 06:18:24 +00:00
|
|
|
"safwk:system_ability_fwk",
|
|
|
|
"samgr:samgr_proxy",
|
|
|
|
"sensor:sensor_interface_native",
|
|
|
|
]
|
|
|
|
|
2023-05-08 06:51:58 +00:00
|
|
|
subsystem_name = "${device_status_subsystem_name}"
|
2022-12-08 06:18:24 +00:00
|
|
|
part_name = "${device_status_part_name}"
|
|
|
|
}
|