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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
294 cflags += [ | 294 cflags += [ |
295 "-mips32r2", | 295 "-mips32r2", |
296 "-Wa,-mips32r2", | 296 "-Wa,-mips32r2", |
297 ] | 297 ] |
298 } else if (mips_arch_variant == "r1") { | 298 } else if (mips_arch_variant == "r1") { |
299 cflags += [ | 299 cflags += [ |
300 "-mips32", | 300 "-mips32", |
301 "-Wa,-mips32", | 301 "-Wa,-mips32", |
302 ] | 302 ] |
303 } | 303 } |
304 | |
305 if (mips_dsp_rev == 1) { | |
306 cflags += [ "-mdsp" ] | |
307 } else if (mips_dsp_rev == 2) { | |
308 cflags += [ "-mdspr2" ] | |
309 } | |
310 | |
311 if (mips_float_abi == "hard") { | |
312 cflags += [ "-mhard-float" ] | |
kjellander_chromium
2015/02/25 21:08:07
I think line 311-315 can be replaced with a single
wtc
2015/02/27 05:57:19
Done. I added curly braces {} around the variable
| |
313 } else { | |
314 cflags += [ "-msoft-float" ] | |
315 } | |
316 | |
317 if (mips_arch_variant == "r2") { | |
318 if (mips_fpu_mode == "fp32") { | |
kjellander_chromium
2015/02/25 21:08:07
I think line 318-324 could be replaced with a sing
petarj
2015/02/26 01:35:43
It can be undefined (if FPU unit is not present),
wtc
2015/02/27 05:57:19
I added an empty string check, so it is three line
| |
319 cflags += [ "-mfp32" ] | |
320 } else if (mips_fpu_mode == "fp64") { | |
321 cflags += [ "-mfp64" ] | |
322 } else if (mips_fpu_mode == "fpxx") { | |
323 cflags += [ "-mfpxx" ] | |
324 } | |
325 } | |
304 } | 326 } |
305 } else if (current_cpu == "mips64el") { | 327 } else if (current_cpu == "mips64el") { |
306 # Don't set the compiler flags for the WebView build. These will come | 328 # Don't set the compiler flags for the WebView build. These will come |
307 # from the Android build system. | 329 # from the Android build system. |
308 if (!is_android_webview_build) { | 330 if (!is_android_webview_build) { |
309 if (mips_arch_variant == "r6") { | 331 if (mips_arch_variant == "r6") { |
310 cflags += [ | 332 cflags += [ |
311 "-mips64r6", | 333 "-mips64r6", |
312 "-Wa,-mips64r6", | 334 "-Wa,-mips64r6", |
313 ] | 335 ] |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1074 cflags += [ "-gsplit-dwarf" ] | 1096 cflags += [ "-gsplit-dwarf" ] |
1075 } | 1097 } |
1076 } | 1098 } |
1077 } | 1099 } |
1078 | 1100 |
1079 config("no_symbols") { | 1101 config("no_symbols") { |
1080 if (!is_win) { | 1102 if (!is_win) { |
1081 cflags = [ "-g0" ] | 1103 cflags = [ "-g0" ] |
1082 } | 1104 } |
1083 } | 1105 } |
OLD | NEW |