1e9297d28Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2e9297d28Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3e9297d28Sopenharmony_ci# you may not use this file except in compliance with the License. 4e9297d28Sopenharmony_ci# You may obtain a copy of the License at 5e9297d28Sopenharmony_ci# 6e9297d28Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7e9297d28Sopenharmony_ci# 8e9297d28Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9e9297d28Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10e9297d28Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11e9297d28Sopenharmony_ci# See the License for the specific language governing permissions and 12e9297d28Sopenharmony_ci# limitations under the License. 13e9297d28Sopenharmony_ci 14e9297d28Sopenharmony_ciimport("graphic_config.gni") 15e9297d28Sopenharmony_ci 16e9297d28Sopenharmony_cienable_glfw_window = false 17e9297d28Sopenharmony_ciuse_mingw_win = "${current_os}_${current_cpu}" == "mingw_x86_64" 18e9297d28Sopenharmony_cigraphic_2d_root = "//foundation/graphic/graphic_2d" 19e9297d28Sopenharmony_ciace_platforms = [] 20e9297d28Sopenharmony_ci 21e9297d28Sopenharmony_ciforeach(item, adapters) { 22e9297d28Sopenharmony_ci import_var = { 23e9297d28Sopenharmony_ci } 24e9297d28Sopenharmony_ci import_var = { 25e9297d28Sopenharmony_ci import("$graphic_2d_root/adapter/$item/build/platform.gni") 26e9297d28Sopenharmony_ci } 27e9297d28Sopenharmony_ci 28e9297d28Sopenharmony_ci if (defined(import_var.platforms)) { 29e9297d28Sopenharmony_ci foreach(platform, import_var.platforms) { 30e9297d28Sopenharmony_ci if (!is_arkui_x || 31e9297d28Sopenharmony_ci (is_arkui_x && defined(platform.cross_platform_support) && 32e9297d28Sopenharmony_ci platform.cross_platform_support)) { 33e9297d28Sopenharmony_ci if (defined(platform.name)) { 34e9297d28Sopenharmony_ci ace_platforms += [ platform ] 35e9297d28Sopenharmony_ci } 36e9297d28Sopenharmony_ci } 37e9297d28Sopenharmony_ci } 38e9297d28Sopenharmony_ci } 39e9297d28Sopenharmony_ci} 40