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 (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { | 9 if (cpu_arch == "mipsel" || cpu_arch == "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 } |
304 } | 310 } |
305 } else if (cpu_arch == "mips64el") { | 311 } else if (cpu_arch == "mips64el") { |
306 # Don't set the compiler flags for the WebView build. These will come | 312 # Don't set the compiler flags for the WebView build. These will come |
307 # from the Android build system. | 313 # from the Android build system. |
308 if (!is_android_webview_build) { | 314 if (!is_android_webview_build) { |
309 if (mips_arch_variant == "r6") { | 315 if (mips_arch_variant == "r6") { |
310 cflags += [ | 316 cflags += [ |
311 "-mips64r6", | 317 "-mips64r6", |
312 "-Wa,-mips64r6", | 318 "-Wa,-mips64r6", |
313 ] | 319 ] |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 cflags += [ "-gsplit-dwarf" ] | 1059 cflags += [ "-gsplit-dwarf" ] |
1054 } | 1060 } |
1055 } | 1061 } |
1056 } | 1062 } |
1057 | 1063 |
1058 config("no_symbols") { | 1064 config("no_symbols") { |
1059 if (!is_win) { | 1065 if (!is_win) { |
1060 cflags = [ "-g0" ] | 1066 cflags = [ "-g0" ] |
1061 } | 1067 } |
1062 } | 1068 } |
OLD | NEW |