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 if (current_cpu == "arm") { | 6 if (current_cpu == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
288 ldflags += [ | 288 ldflags += [ |
289 "-mips32r6", | 289 "-mips32r6", |
290 "-Wl,-melf32ltsmip", | 290 "-Wl,-melf32ltsmip", |
291 ] | 291 ] |
292 } | 292 } |
293 } else if (mips_arch_variant == "r2") { | 293 } else if (mips_arch_variant == "r2") { |
294 cflags += [ | 294 cflags += [ |
295 "-mips32r2", | 295 "-mips32r2", |
296 "-Wa,-mips32r2", | 296 "-Wa,-mips32r2", |
297 ] | 297 ] |
298 if (mips_fpu_mode != "") { | |
299 cflags += [ "-m$mips_fpu_mode" ] | |
wtc
2015/02/28 00:32:14
Petar: should we use the -mfp32, -mfp64, -mfpxx fl
petarj
2015/02/28 02:09:10
Yes, these flags only make sense if FPU unit is us
| |
300 } | |
298 } else if (mips_arch_variant == "r1") { | 301 } else if (mips_arch_variant == "r1") { |
299 cflags += [ | 302 cflags += [ |
300 "-mips32", | 303 "-mips32", |
301 "-Wa,-mips32", | 304 "-Wa,-mips32", |
302 ] | 305 ] |
303 } | 306 } |
307 | |
308 if (mips_dsp_rev == 1) { | |
309 cflags += [ "-mdsp" ] | |
310 } else if (mips_dsp_rev == 2) { | |
311 cflags += [ "-mdspr2" ] | |
312 } | |
313 | |
314 cflags += [ "-m${mips_float_abi}-float" ] | |
304 } | 315 } |
305 } else if (current_cpu == "mips64el") { | 316 } else if (current_cpu == "mips64el") { |
306 # Don't set the compiler flags for the WebView build. These will come | 317 # Don't set the compiler flags for the WebView build. These will come |
307 # from the Android build system. | 318 # from the Android build system. |
308 if (!is_android_webview_build) { | 319 if (!is_android_webview_build) { |
309 if (mips_arch_variant == "r6") { | 320 if (mips_arch_variant == "r6") { |
310 cflags += [ | 321 cflags += [ |
311 "-mips64r6", | 322 "-mips64r6", |
312 "-Wa,-mips64r6", | 323 "-Wa,-mips64r6", |
313 ] | 324 ] |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1074 cflags += [ "-gsplit-dwarf" ] | 1085 cflags += [ "-gsplit-dwarf" ] |
1075 } | 1086 } |
1076 } | 1087 } |
1077 } | 1088 } |
1078 | 1089 |
1079 config("no_symbols") { | 1090 config("no_symbols") { |
1080 if (!is_win) { | 1091 if (!is_win) { |
1081 cflags = [ "-g0" ] | 1092 cflags = [ "-g0" ] |
1082 } | 1093 } |
1083 } | 1094 } |
OLD | NEW |