1#Copyright (c) 2020-2021 Huawei Device Co., Ltd.
2#Licensed under the Apache License, Version 2.0 (the "License");
3#you may not use this file except in compliance with the License.
4#You may obtain a copy of the License at
5#
6#    http://www.apache.org/licenses/LICENSE-2.0
7#
8#Unless required by applicable law or agreed to in writing, software
9#distributed under the License is distributed on an "AS IS" BASIS,
10#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11#See the License for the specific language governing permissions and
12#limitations under the License.
13
14import("//build/lite/config/component/lite_component.gni")
15import("//foundation/arkui/ace_engine_lite/ace_lite.gni")
16
17declare_args() {
18  enable_ohos_ace_engine_lite_product_config = false
19}
20
21config("ace_lite_target_config") {
22  if (enable_ohos_ace_engine_lite_product_config) {
23    defines = [ "ENABLE_OHOS_ACELITE_PRODUCT_CONFIG=1" ]
24  }
25  include_dirs = [ "$product_path/ace_lite_config" ]
26  if (ohos_kernel_type == "liteos_m") {
27    include_dirs += [ "liteos_m" ]
28  } else if (ohos_kernel_type == "liteos_a") {
29    include_dirs += [ "liteos_a" ]
30  } else if (ohos_kernel_type == "linux") {
31    include_dirs += [ "linux" ]
32  }
33}
34
35group("targets") {
36  public_configs = [ ":ace_lite_target_config" ]
37  public_configs +=
38      [ "//foundation/graphic/graphic_utils_lite:graphic_utils_public_config" ]
39}
40