1# Copyright (c) 2021 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("//build/lite/config/component/lite_component.gni")
15
16shared_library("sensor_client") {
17  if (ohos_kernel_type == "liteos_riscv") {
18    sources = [
19      "sensor_agent.c",
20      "sensor_agent_client.c",
21    ]
22  }
23  if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") {
24    sources = [
25      "sensor_agent.c",
26      "sensor_agent_proxy.c",
27    ]
28  }
29
30  ldflags = [ "-Wl,-Map=provider_proc.map" ]
31
32  include_dirs = [
33    "../include",
34    "//third_party/bounds_checking_function/include",
35    "//commonlibrary/utils_lite/include",
36    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
37    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
38    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast",
39    "//foundation/systemabilitymgr/samgr_lite/samgr/source",
40    "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
41    "//base/sensors/sensor_lite/interfaces/kits/native/include",
42    "//base/sensors/sensor_lite/services/include",
43  ]
44
45  deps = [ "//foundation/systemabilitymgr/samgr_lite/samgr:samgr" ]
46}
47