1f16e0440Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
2f16e0440Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f16e0440Sopenharmony_ci# you may not use this file except in compliance with the License.
4f16e0440Sopenharmony_ci# You may obtain a copy of the License at
5f16e0440Sopenharmony_ci#
6f16e0440Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f16e0440Sopenharmony_ci#
8f16e0440Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f16e0440Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f16e0440Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f16e0440Sopenharmony_ci# See the License for the specific language governing permissions and
12f16e0440Sopenharmony_ci# limitations under the License.
13f16e0440Sopenharmony_ci
14f16e0440Sopenharmony_ciimport("../batterymgr.gni")
15f16e0440Sopenharmony_ci
16f16e0440Sopenharmony_ciconfig("utils_config") {
17f16e0440Sopenharmony_ci  include_dirs = [ "native/include" ]
18f16e0440Sopenharmony_ci}
19f16e0440Sopenharmony_ci
20f16e0440Sopenharmony_cideclare_args() {
21f16e0440Sopenharmony_ci  battery_manager_feature_coverage = false
22f16e0440Sopenharmony_ci}
23f16e0440Sopenharmony_ci
24f16e0440Sopenharmony_ciconfig("coverage_flags") {
25f16e0440Sopenharmony_ci  if (battery_manager_feature_coverage) {
26f16e0440Sopenharmony_ci    cflags = [ "--coverage" ]
27f16e0440Sopenharmony_ci    cflags_cc = [ "--coverage" ]
28f16e0440Sopenharmony_ci    ldflags = [ "--coverage" ]
29f16e0440Sopenharmony_ci  }
30f16e0440Sopenharmony_ci}
31