10fed37d5Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
20fed37d5Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30fed37d5Sopenharmony_ci# you may not use this file except in compliance with the License.
40fed37d5Sopenharmony_ci# You may obtain a copy of the License at
50fed37d5Sopenharmony_ci#
60fed37d5Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70fed37d5Sopenharmony_ci#
80fed37d5Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90fed37d5Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100fed37d5Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110fed37d5Sopenharmony_ci# See the License for the specific language governing permissions and
120fed37d5Sopenharmony_ci# limitations under the License.
130fed37d5Sopenharmony_ci
140fed37d5Sopenharmony_cideclare_args() {
150fed37d5Sopenharmony_ci  safwk_feature_coverage = false
160fed37d5Sopenharmony_ci}
170fed37d5Sopenharmony_ci
180fed37d5Sopenharmony_ciconfig("coverage_flags") {
190fed37d5Sopenharmony_ci  if (safwk_feature_coverage) {
200fed37d5Sopenharmony_ci    cflags = [ "--coverage" ]
210fed37d5Sopenharmony_ci    ldflags = [ "--coverage" ]
220fed37d5Sopenharmony_ci  }
230fed37d5Sopenharmony_ci}
24