12b7e0694Sopenharmony_ci#Copyright (c) 2020-2021 Huawei Device Co., Ltd.
22b7e0694Sopenharmony_ci#Licensed under the Apache License, Version 2.0 (the "License");
32b7e0694Sopenharmony_ci#you may not use this file except in compliance with the License.
42b7e0694Sopenharmony_ci#You may obtain a copy of the License at
52b7e0694Sopenharmony_ci#
62b7e0694Sopenharmony_ci#    http://www.apache.org/licenses/LICENSE-2.0
72b7e0694Sopenharmony_ci#
82b7e0694Sopenharmony_ci#Unless required by applicable law or agreed to in writing, software
92b7e0694Sopenharmony_ci#distributed under the License is distributed on an "AS IS" BASIS,
102b7e0694Sopenharmony_ci#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112b7e0694Sopenharmony_ci#See the License for the specific language governing permissions and
122b7e0694Sopenharmony_ci#limitations under the License.
132b7e0694Sopenharmony_ci
142b7e0694Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
152b7e0694Sopenharmony_ciimport("//foundation/arkui/ace_engine_lite/ace_lite.gni")
162b7e0694Sopenharmony_ci
172b7e0694Sopenharmony_cideclare_args() {
182b7e0694Sopenharmony_ci  ace_engine_lite_feature_product_config = false
192b7e0694Sopenharmony_ci}
202b7e0694Sopenharmony_ci
212b7e0694Sopenharmony_ciconfig("ace_lite_target_config") {
222b7e0694Sopenharmony_ci  if (ace_engine_lite_feature_product_config) {
232b7e0694Sopenharmony_ci    defines = [ "ENABLE_OHOS_ACELITE_PRODUCT_CONFIG=1" ]
242b7e0694Sopenharmony_ci  }
252b7e0694Sopenharmony_ci  include_dirs = [ "$product_path/ace_lite_config" ]
262b7e0694Sopenharmony_ci  if (ohos_kernel_type == "liteos_m") {
272b7e0694Sopenharmony_ci    include_dirs += [ "liteos_m" ]
282b7e0694Sopenharmony_ci  } else if (ohos_kernel_type == "liteos_a") {
292b7e0694Sopenharmony_ci    include_dirs += [ "liteos_a" ]
302b7e0694Sopenharmony_ci  } else if (ohos_kernel_type == "linux") {
312b7e0694Sopenharmony_ci    include_dirs += [ "linux" ]
322b7e0694Sopenharmony_ci  }
332b7e0694Sopenharmony_ci}
342b7e0694Sopenharmony_ci
352b7e0694Sopenharmony_cigroup("targets") {
362b7e0694Sopenharmony_ci  public_configs = [ ":ace_lite_target_config" ]
372b7e0694Sopenharmony_ci  public_configs +=
382b7e0694Sopenharmony_ci      [ "//foundation/graphic/graphic_utils_lite:graphic_utils_public_config" ]
392b7e0694Sopenharmony_ci}
40