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