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/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 if (cpu_arch == "arm") { | 7 if (cpu_arch == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } else if (cpu_arch == "x86") { | 103 } else if (cpu_arch == "x86") { |
104 cflags += "-m32" | 104 cflags += "-m32" |
105 ldflags += "-m32" | 105 ldflags += "-m32" |
106 } else if (cpu_arch == "arm") { | 106 } else if (cpu_arch == "arm") { |
107 # Don't set the compiler flags for the WebView build. These will come | 107 # Don't set the compiler flags for the WebView build. These will come |
108 # from the Android build system. | 108 # from the Android build system. |
109 if (!is_android_webview_build) { | 109 if (!is_android_webview_build) { |
110 cflags += [ | 110 cflags += [ |
111 "-march=$arm_arch", | 111 "-march=$arm_arch", |
112 "-mfpu=$arm_fpu", | 112 "-mfpu=$arm_fpu", |
113 "-mfloat_abi=$arm_float_abi", | 113 "-mfloat-abi=$arm_float_abi", |
114 ] | 114 ] |
115 if (arm_tune != "") { | 115 if (arm_tune != "") { |
116 cflags += "-mtune=$arm_tune" | 116 cflags += "-mtune=$arm_tune" |
117 } | 117 } |
118 if (arm_use_thumb) { | 118 if (arm_use_thumb) { |
119 cflags += [ "-mthumb" ] | 119 cflags += [ "-mthumb" ] |
120 if (is_android) { | 120 if (is_android) { |
121 cflags += [ "-mthumb_interwork" ] | 121 cflags += [ "-mthumb-interwork" ] |
122 } | 122 } |
123 } | 123 } |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 defines += [ "_FILE_OFFSET_BITS=64" ] | 127 defines += [ "_FILE_OFFSET_BITS=64" ] |
128 | 128 |
129 # Omit unwind support in official builds to save space. We can use breakpad | 129 # Omit unwind support in official builds to save space. We can use breakpad |
130 # for these builds. | 130 # for these builds. |
131 if (is_chrome_branded && is_official_build) { | 131 if (is_chrome_branded && is_official_build) { |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 } else { | 634 } else { |
635 cflags = [ "-g1" ] | 635 cflags = [ "-g1" ] |
636 } | 636 } |
637 } | 637 } |
638 | 638 |
639 config("no_symbols") { | 639 config("no_symbols") { |
640 if (!is_win) { | 640 if (!is_win) { |
641 cflags = [ "-g0" ] | 641 cflags = [ "-g0" ] |
642 } | 642 } |
643 } | 643 } |
OLD | NEW |