1# Copyright (c) 2024 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("graphic_config.gni")
15
16enable_glfw_window = false
17use_mingw_win = "${current_os}_${current_cpu}" == "mingw_x86_64"
18graphic_2d_root = "//foundation/graphic/graphic_2d"
19ace_platforms = []
20
21foreach(item, adapters) {
22  import_var = {
23  }
24  import_var = {
25    import("$graphic_2d_root/adapter/$item/build/platform.gni")
26  }
27
28  if (defined(import_var.platforms)) {
29    foreach(platform, import_var.platforms) {
30      if (!is_arkui_x ||
31          (is_arkui_x && defined(platform.cross_platform_support) &&
32           platform.cross_platform_support)) {
33        if (defined(platform.name)) {
34          ace_platforms += [ platform ]
35        }
36      }
37    }
38  }
39}
40