12ee81decSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
22ee81decSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
32ee81decSopenharmony_ci# you may not use this file except in compliance with the License.
42ee81decSopenharmony_ci# You may obtain a copy of the License at
52ee81decSopenharmony_ci#
62ee81decSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
72ee81decSopenharmony_ci#
82ee81decSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
92ee81decSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
102ee81decSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112ee81decSopenharmony_ci# See the License for the specific language governing permissions and
122ee81decSopenharmony_ci# limitations under the License.
132ee81decSopenharmony_ci
142ee81decSopenharmony_ciimport("//build/ohos.gni")
152ee81decSopenharmony_ci
162ee81decSopenharmony_cideclare_args() {
172ee81decSopenharmony_ci  device_security_level_feature_coverage = false
182ee81decSopenharmony_ci}
192ee81decSopenharmony_ci
202ee81decSopenharmony_ciconfig("common_configs") {
212ee81decSopenharmony_ci  if (device_security_level_feature_coverage) {
222ee81decSopenharmony_ci    cflags = [ "--coverage" ]
232ee81decSopenharmony_ci    cflags_cc = [ "--coverage" ]
242ee81decSopenharmony_ci    ldflags = [ "--coverage" ]
252ee81decSopenharmony_ci  }
262ee81decSopenharmony_ci}
272ee81decSopenharmony_ci
282ee81decSopenharmony_ciconfig("common_lite_configs") {
292ee81decSopenharmony_ci  if (defined(ohos_lite)) {
302ee81decSopenharmony_ci    if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") {
312ee81decSopenharmony_ci      defines = [ "L1_SMALL" ]
322ee81decSopenharmony_ci    } else if (ohos_kernel_type == "liteos_m") {
332ee81decSopenharmony_ci      defines = [ "L0_MINI" ]
342ee81decSopenharmony_ci    }
352ee81decSopenharmony_ci  } else {
362ee81decSopenharmony_ci    defines = [ "L2_STANDARD" ]
372ee81decSopenharmony_ci  }
382ee81decSopenharmony_ci}
39