1cb69b360Sopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2cb69b360Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3cb69b360Sopenharmony_ci# you may not use this file except in compliance with the License.
4cb69b360Sopenharmony_ci# You may obtain a copy of the License at
5cb69b360Sopenharmony_ci#
6cb69b360Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7cb69b360Sopenharmony_ci#
8cb69b360Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9cb69b360Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10cb69b360Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11cb69b360Sopenharmony_ci# See the License for the specific language governing permissions and
12cb69b360Sopenharmony_ci# limitations under the License.
13cb69b360Sopenharmony_ci
14cb69b360Sopenharmony_ciimport("//build/ohos.gni")
15cb69b360Sopenharmony_ci
16cb69b360Sopenharmony_ciohos_static_library("libnativeapi_battery_simulator") {
17cb69b360Sopenharmony_ci  public_configs = [ ":nativeapi_battery_simulator_config" ]
18cb69b360Sopenharmony_ci
19cb69b360Sopenharmony_ci  sources = [ "src/battery_module.cpp" ]
20cb69b360Sopenharmony_ci  include_dirs = [
21cb69b360Sopenharmony_ci    "//third_party/bounds_checking_function/include",
22cb69b360Sopenharmony_ci    "include",
23cb69b360Sopenharmony_ci    "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi",
24cb69b360Sopenharmony_ci    "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base",
25cb69b360Sopenharmony_ci  ]
26cb69b360Sopenharmony_ci  cflags = [ "-Wno-unused-variable" ]
27cb69b360Sopenharmony_ci  deps = []
28cb69b360Sopenharmony_ci}
29cb69b360Sopenharmony_ci
30cb69b360Sopenharmony_ciconfig("nativeapi_battery_simulator_config") {
31cb69b360Sopenharmony_ci  include_dirs = [
32cb69b360Sopenharmony_ci    "//base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/include",
33cb69b360Sopenharmony_ci  ]
34cb69b360Sopenharmony_ci}
35