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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1150183009: Laying the groundwork for targeting WinRT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Macadamian to the AUTHORS. Created 5 years, 4 months 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/BUILDCONFIG.gn ('k') | build/config/win/BUILD.gn » ('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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 if (is_win) { 615 if (is_win) {
616 # Since the library is shared, it requires exceptions or will give errors 616 # Since the library is shared, it requires exceptions or will give errors
617 # about things not matching, so keep exceptions on. 617 # about things not matching, so keep exceptions on.
618 if (is_debug) { 618 if (is_debug) {
619 cflags += [ "/MDd" ] 619 cflags += [ "/MDd" ]
620 } else { 620 } else {
621 cflags += [ "/MD" ] 621 cflags += [ "/MD" ]
622 } 622 }
623 } 623 }
624 } else { 624 } else {
625 # Static CRT. 625 if (is_win && current_os != "win") {
626 if (is_win) { 626 # WindowsRT: use the dynamic CRT.
627 if (is_debug) {
628 cflags += [ "/MDd" ]
629 } else {
630 cflags += [ "/MD" ]
631 }
632 } else if (is_win) {
633 # Desktop Windows: static CRT.
627 if (is_debug) { 634 if (is_debug) {
628 cflags += [ "/MTd" ] 635 cflags += [ "/MTd" ]
629 } else { 636 } else {
630 cflags += [ "/MT" ] 637 cflags += [ "/MT" ]
631 } 638 }
632 } 639 }
633 } 640 }
634 641
635 if (is_win) { 642 if (is_win) {
636 defines += [ 643 defines += [
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 cflags += [ "-gsplit-dwarf" ] 1281 cflags += [ "-gsplit-dwarf" ]
1275 } 1282 }
1276 } 1283 }
1277 } 1284 }
1278 1285
1279 config("no_symbols") { 1286 config("no_symbols") {
1280 if (!is_win) { 1287 if (!is_win) {
1281 cflags = [ "-g0" ] 1288 cflags = [ "-g0" ]
1282 } 1289 }
1283 } 1290 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698