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("//build/ohos.gni") 15e9297d28Sopenharmony_ciimport("config.gni") 16e9297d28Sopenharmony_ci 17e9297d28Sopenharmony_ciplatforms = [] 18e9297d28Sopenharmony_ci 19e9297d28Sopenharmony_ciif (use_mingw_win) { 20e9297d28Sopenharmony_ci windows_platform = { 21e9297d28Sopenharmony_ci name = "windows" 22e9297d28Sopenharmony_ci config = { 23e9297d28Sopenharmony_ci import("config_windows.gni") 24e9297d28Sopenharmony_ci } 25e9297d28Sopenharmony_ci } 26e9297d28Sopenharmony_ci 27e9297d28Sopenharmony_ci platforms += [ windows_platform ] 28e9297d28Sopenharmony_ci} 29e9297d28Sopenharmony_ci 30e9297d28Sopenharmony_ciif (use_mac) { 31e9297d28Sopenharmony_ci mac_platform = { 32e9297d28Sopenharmony_ci name = "mac" 33e9297d28Sopenharmony_ci config = { 34e9297d28Sopenharmony_ci import("config_mac.gni") 35e9297d28Sopenharmony_ci } 36e9297d28Sopenharmony_ci } 37e9297d28Sopenharmony_ci 38e9297d28Sopenharmony_ci platforms += [ mac_platform ] 39e9297d28Sopenharmony_ci} 40e9297d28Sopenharmony_ci 41e9297d28Sopenharmony_ciif (use_linux) { 42e9297d28Sopenharmony_ci linux_platform = { 43e9297d28Sopenharmony_ci name = "linux" 44e9297d28Sopenharmony_ci config = { 45e9297d28Sopenharmony_ci import("config_linux.gni") 46e9297d28Sopenharmony_ci } 47e9297d28Sopenharmony_ci } 48e9297d28Sopenharmony_ci 49e9297d28Sopenharmony_ci platforms += [ linux_platform ] 50e9297d28Sopenharmony_ci} 51