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")
15import("../sensor_lite.gni")
16
17executable("sensor_service") {
18  sources = [
19    "./src/proc.c",
20    "./src/sensor_service.c",
21    "./src/sensor_service_impl.c",
22  ]
23  ldflags = [ "-Wl,-Map=provider_proc.map" ]
24
25  include_dirs = [
26    "./include",
27    "//third_party/bounds_checking_function/include",
28    "//commonlibrary/utils_lite/include",
29    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
30    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
31    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast",
32    "//foundation/systemabilitymgr/samgr_lite/samgr/source",
33    "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
34    "//foundation/communication/ipc/ipc/native/c/manager/include",
35    "//foundation/communication/ipc/services/dbinder/c/include",
36    "//base/sensors/sensor_lite/frameworks/include",
37    "//base/sensors/sensor_lite/interfaces/kits/native/include",
38  ]
39
40  defines = sensor_default_defines
41
42  deps = [
43    "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
44    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
45  ]
46
47  if (has_drivers_peripheral_sensor_part) {
48    deps += [ "//drivers/peripheral/sensor/hal:hdi_sensor" ]
49    include_dirs += [ "//drivers/peripheral/sensor/interfaces/include" ]
50  }
51}
52