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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |