OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 } |
OLD | NEW |