11f0016d6Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
21f0016d6Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
31f0016d6Sopenharmony_ci# you may not use this file except in compliance with the License.
41f0016d6Sopenharmony_ci# You may obtain a copy of the License at
51f0016d6Sopenharmony_ci#
61f0016d6Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
71f0016d6Sopenharmony_ci#
81f0016d6Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
91f0016d6Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
101f0016d6Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111f0016d6Sopenharmony_ci# See the License for the specific language governing permissions and
121f0016d6Sopenharmony_ci# limitations under the License.
131f0016d6Sopenharmony_ci
141f0016d6Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
151f0016d6Sopenharmony_ciimport("../sensor_lite.gni")
161f0016d6Sopenharmony_ci
171f0016d6Sopenharmony_ciexecutable("sensor_service") {
181f0016d6Sopenharmony_ci  sources = [
191f0016d6Sopenharmony_ci    "./src/proc.c",
201f0016d6Sopenharmony_ci    "./src/sensor_service.c",
211f0016d6Sopenharmony_ci    "./src/sensor_service_impl.c",
221f0016d6Sopenharmony_ci  ]
231f0016d6Sopenharmony_ci  ldflags = [ "-Wl,-Map=provider_proc.map" ]
241f0016d6Sopenharmony_ci
251f0016d6Sopenharmony_ci  include_dirs = [
261f0016d6Sopenharmony_ci    "./include",
271f0016d6Sopenharmony_ci    "//third_party/bounds_checking_function/include",
281f0016d6Sopenharmony_ci    "//commonlibrary/utils_lite/include",
291f0016d6Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry",
301f0016d6Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
311f0016d6Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast",
321f0016d6Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/samgr/source",
331f0016d6Sopenharmony_ci    "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include",
341f0016d6Sopenharmony_ci    "//foundation/communication/ipc/ipc/native/c/manager/include",
351f0016d6Sopenharmony_ci    "//foundation/communication/ipc/services/dbinder/c/include",
361f0016d6Sopenharmony_ci    "//base/sensors/sensor_lite/frameworks/include",
371f0016d6Sopenharmony_ci    "//base/sensors/sensor_lite/interfaces/kits/native/include",
381f0016d6Sopenharmony_ci  ]
391f0016d6Sopenharmony_ci
401f0016d6Sopenharmony_ci  defines = sensor_default_defines
411f0016d6Sopenharmony_ci
421f0016d6Sopenharmony_ci  deps = [
431f0016d6Sopenharmony_ci    "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
441f0016d6Sopenharmony_ci    "//foundation/systemabilitymgr/samgr_lite/samgr:samgr",
451f0016d6Sopenharmony_ci  ]
461f0016d6Sopenharmony_ci
471f0016d6Sopenharmony_ci  if (has_drivers_peripheral_sensor_part) {
481f0016d6Sopenharmony_ci    deps += [ "//drivers/peripheral/sensor/hal:hdi_sensor" ]
491f0016d6Sopenharmony_ci    include_dirs += [ "//drivers/peripheral/sensor/interfaces/include" ]
501f0016d6Sopenharmony_ci  }
511f0016d6Sopenharmony_ci}
52