Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 1422333008: Remove Windows-related GN build configuration (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Review feedback addressed Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/allocator.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 if (target_os == "") { 5 if (target_os == "") {
6 target_os = host_os 6 target_os = host_os
7 } 7 }
8 8
9 if (target_cpu == "") { 9 if (target_cpu == "") {
10 if (target_os == "android") { 10 if (target_os == "android") {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 # - is_mac is set only for desktop Mac. It is not set on iOS. 146 # - is_mac is set only for desktop Mac. It is not set on iOS.
147 # - is_posix is true for mac and any Unix-like system (basically everything 147 # - is_posix is true for mac and any Unix-like system (basically everything
148 # except Windows). 148 # except Windows).
149 # - is_linux is true for desktop Linux and ChromeOS, but not Android (which is 149 # - is_linux is true for desktop Linux and ChromeOS, but not Android (which is
150 # generally too different despite being based on the Linux kernel). 150 # generally too different despite being based on the Linux kernel).
151 # 151 #
152 # Do not add more is_* variants here for random lesser-used Unix systems like 152 # Do not add more is_* variants here for random lesser-used Unix systems like
153 # aix or one of the BSDs. If you need to check these, just check the 153 # aix or one of the BSDs. If you need to check these, just check the
154 # current_os value directly. 154 # current_os value directly.
155 155
156 if (current_os == "win") { 156 if (current_os == "mac") {
157 is_android = false 157 is_android = false
158 is_chromeos = false 158 is_chromeos = false
159 is_fnl = false 159 is_fnl = false
160 is_ios = false
161 is_linux = false
162 is_mac = false
163 is_nacl = false
164 is_posix = false
165 is_win = true
166 } else if (current_os == "mac") {
167 is_android = false
168 is_chromeos = false
169 is_fnl = false
170 is_ios = false 160 is_ios = false
171 is_linux = false 161 is_linux = false
172 is_mac = true 162 is_mac = true
173 is_nacl = false 163 is_nacl = false
174 is_posix = true 164 is_posix = true
175 is_win = false 165 is_win = false
176 } else if (current_os == "android") { 166 } else if (current_os == "android") {
177 is_android = true 167 is_android = true
178 is_chromeos = false 168 is_chromeos = false
179 is_fnl = false 169 is_fnl = false
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } else if (current_os == "fnl") { 219 } else if (current_os == "fnl") {
230 is_android = false 220 is_android = false
231 is_chromeos = false 221 is_chromeos = false
232 is_fnl = true 222 is_fnl = true
233 is_ios = false 223 is_ios = false
234 is_linux = true 224 is_linux = true
235 is_mac = false 225 is_mac = false
236 is_nacl = false 226 is_nacl = false
237 is_posix = true 227 is_posix = true
238 is_win = false 228 is_win = false
229 } else {
230 assert(false, "Unsupported operating system")
239 } 231 }
240 232
241 # ============================================================================= 233 # =============================================================================
242 # SOURCES FILTERS 234 # SOURCES FILTERS
243 # ============================================================================= 235 # =============================================================================
244 # 236 #
245 # These patterns filter out platform-specific files when assigning to the 237 # These patterns filter out platform-specific files when assigning to the
246 # sources variable. The magic variable |sources_assignment_filter| is applied 238 # sources variable. The magic variable |sources_assignment_filter| is applied
247 # to each assignment or appending to the sources variable and matches are 239 # to each assignment or appending to the sources variable and matches are
248 # automatcally removed. 240 # automatcally removed.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 525
534 # ============================================================================== 526 # ==============================================================================
535 # TOOLCHAIN SETUP 527 # TOOLCHAIN SETUP
536 # ============================================================================== 528 # ==============================================================================
537 # 529 #
538 # Here we set the default toolchain, as well as the variable host_toolchain 530 # Here we set the default toolchain, as well as the variable host_toolchain
539 # which will identify the toolchain corresponding to the local system when 531 # which will identify the toolchain corresponding to the local system when
540 # doing cross-compiles. When not cross-compiling, this will be the same as the 532 # doing cross-compiles. When not cross-compiling, this will be the same as the
541 # default toolchain. 533 # default toolchain.
542 534
543 if (is_win) { 535 if (is_android) {
544 # On windows we use the same toolchain for host and target by default.
545 if (is_clang) {
546 host_toolchain = "//build/toolchain/win:clang_$current_cpu"
547 } else {
548 host_toolchain = "//build/toolchain/win:$current_cpu"
549 }
550 set_default_toolchain("$host_toolchain")
551 } else if (is_android) {
552 if (host_os == "linux") { 536 if (host_os == "linux") {
553 # Use clang for the x86/64 Linux host builds. 537 # Use clang for the x86/64 Linux host builds.
554 if (host_cpu == "x86" || host_cpu == "x64") { 538 if (host_cpu == "x86" || host_cpu == "x64") {
555 host_toolchain = "//build/toolchain/linux:clang_$host_cpu" 539 host_toolchain = "//build/toolchain/linux:clang_$host_cpu"
556 } else { 540 } else {
557 host_toolchain = "//build/toolchain/linux:$host_cpu" 541 host_toolchain = "//build/toolchain/linux:$host_cpu"
558 } 542 }
559 } else if (host_os == "mac") { 543 } else if (host_os == "mac") {
560 host_toolchain = "//build/toolchain/mac:clang_$host_cpu" 544 host_toolchain = "//build/toolchain/mac:clang_$host_cpu"
561 } else { 545 } else {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 } 768 }
785 if (defined(invoker.testonly)) { 769 if (defined(invoker.testonly)) {
786 testonly = invoker.testonly 770 testonly = invoker.testonly
787 } 771 }
788 if (defined(invoker.visibility)) { 772 if (defined(invoker.visibility)) {
789 visibility = invoker.visibility 773 visibility = invoker.visibility
790 } 774 }
791 } 775 }
792 } 776 }
793 } 777 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/allocator.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698