• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 Huawei Device Co., 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("../device_status.gni")
15
16config("devicestatus_private_config") {
17  include_dirs = [ "${device_status_interfaces_path}/innerkits/include" ]
18}
19
20config("devicestatus_srv_public_config") {
21  include_dirs = [
22    "include",
23    "interface",
24    "include/algorithm",
25    "include/datahub",
26  ]
27}
28
29ohos_shared_library("devicestatus_mock") {
30  sources = [
31    "src/devicestatus_data_parse.cpp",
32    "src/devicestatus_msdp_mock.cpp",
33  ]
34
35  configs = [
36    "${device_status_utils_path}:devicestatus_utils_config",
37    ":devicestatus_private_config",
38  ]
39
40  public_configs = [ ":devicestatus_srv_public_config" ]
41
42  deps = [
43    "${device_status_utils_path}:devicestatus_util",
44    "//third_party/cJSON:cjson_static",
45  ]
46
47  external_deps = [
48    "hilog:libhilog",
49    "sensor:sensor_interface_native",
50  ]
51
52  subsystem_name = "${device_status_subsystem_name}"
53  part_name = "${device_status_part_name}"
54}
55
56ohos_shared_library("devicestatus_algo") {
57  sources = [
58    "src/algorithm/algo_absolute_still.cpp",
59    "src/algorithm/algo_base.cpp",
60    "src/algorithm/algo_horizontal.cpp",
61    "src/algorithm/algo_vertical.cpp",
62    "src/datahub/sensor_data_callback.cpp",
63    "src/devicestatus_algorithm_manager.cpp",
64  ]
65
66  configs = [
67    "${device_status_utils_path}:devicestatus_utils_config",
68    ":devicestatus_private_config",
69  ]
70
71  public_configs = [ ":devicestatus_srv_public_config" ]
72
73  deps = [
74    "${device_status_interfaces_path}/innerkits:devicestatus_client",
75    "${device_status_utils_path}:devicestatus_util",
76    "//third_party/cJSON:cjson_static",
77    "//third_party/jsoncpp",
78  ]
79
80  external_deps = [
81    "ability_base:base",
82    "hilog:libhilog",
83    "input:libmmi-client",
84    "ipc:ipc_single",
85    "safwk:system_ability_fwk",
86    "samgr:samgr_proxy",
87    "sensor:sensor_interface_native",
88  ]
89
90  subsystem_name = "${device_status_subsystem_name}"
91  part_name = "${device_status_part_name}"
92}
93