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

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: Switched approach to cross-compiling for WinRT. Created 5 years, 6 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
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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 if (is_win) { 567 if (is_win) {
568 # Since the library is shared, it requires exceptions or will give errors 568 # Since the library is shared, it requires exceptions or will give errors
569 # about things not matching, so keep exceptions on. 569 # about things not matching, so keep exceptions on.
570 if (is_debug) { 570 if (is_debug) {
571 cflags += [ "/MDd" ] 571 cflags += [ "/MDd" ]
572 } else { 572 } else {
573 cflags += [ "/MD" ] 573 cflags += [ "/MD" ]
574 } 574 }
575 } 575 }
576 } else { 576 } else {
577 # Static CRT. 577 if (is_win && current_os == "win") {
brettw 2015/07/22 20:29:20 This line reads very strangely to me since they se
578 if (is_win) { 578 # Static CRT.
579 if (is_debug) { 579 if (is_debug) {
580 cflags += [ "/MTd" ] 580 cflags += [ "/MTd" ]
581 } else { 581 } else {
582 cflags += [ "/MT" ] 582 cflags += [ "/MT" ]
583 } 583 }
584 } else if (is_win) {
585 # Dynamic CRT on WinRT.
586 if (is_debug) {
587 cflags += [ "/MDd" ]
588 } else {
589 cflags += [ "/MD" ]
590 }
584 } 591 }
585 } 592 }
586 593
587 if (is_win) { 594 if (is_win) {
588 defines += [ 595 defines += [
589 "__STD_C", 596 "__STD_C",
590 "_CRT_RAND_S", 597 "_CRT_RAND_S",
591 "_CRT_SECURE_NO_DEPRECATE", 598 "_CRT_SECURE_NO_DEPRECATE",
592 "_HAS_EXCEPTIONS=0", 599 "_HAS_EXCEPTIONS=0",
593 "_SCL_SECURE_NO_DEPRECATE", 600 "_SCL_SECURE_NO_DEPRECATE",
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 cflags += [ "-gsplit-dwarf" ] 1172 cflags += [ "-gsplit-dwarf" ]
1166 } 1173 }
1167 } 1174 }
1168 } 1175 }
1169 1176
1170 config("no_symbols") { 1177 config("no_symbols") {
1171 if (!is_win) { 1178 if (!is_win) {
1172 cflags = [ "-g0" ] 1179 cflags = [ "-g0" ]
1173 } 1180 }
1174 } 1181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698