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