Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: build/config/arm.gni

Issue 988183003: Build changes for android on arm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/module_args/v8.gni » ('j') | build/secondary/third_party/icu/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 if (current_cpu == "arm") { 5 # Some components need arm settings for target_cpu too.
brettw 2015/03/16 17:16:36 I think it would be good to make this more explici
6 if (current_cpu == "arm" || target_cpu == "arm") {
6 declare_args() { 7 declare_args() {
7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM 8 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
8 # platforms. 9 # platforms.
9 arm_version = 7 10 arm_version = 7
10 11
11 # The ARM floating point mode. This is either the string "hard", "soft", or 12 # The ARM floating point mode. This is either the string "hard", "soft", or
12 # "softfp". An empty string means to use the default one for the 13 # "softfp". An empty string means to use the default one for the
13 # arm_version. 14 # arm_version.
14 arm_float_abi = "" 15 arm_float_abi = ""
15 16
16 # The ARM variant-specific tuning mode. This will be a string like "armv6" 17 # The ARM variant-specific tuning mode. This will be a string like "armv6"
17 # or "cortex-a15". An empty string means to use the default for the 18 # or "cortex-a15". An empty string means to use the default for the
18 # arm_version. 19 # arm_version.
19 arm_tune = "" 20 arm_tune = ""
20 21
21 # Whether to use the neon FPU instruction set or not. 22 # Whether to use the neon FPU instruction set or not.
22 arm_use_neon = true 23 arm_use_neon = true
23 24
24 # Whether to enable optional NEON code paths. 25 # Whether to enable optional NEON code paths.
25 arm_optionally_use_neon = false 26 arm_optionally_use_neon = false
26 27
27 if (is_android) { 28 if (is_android || target_os == "android") {
28 arm_use_neon = false 29 arm_use_neon = false
29 arm_optionally_use_neon = true 30 arm_optionally_use_neon = true
30 } 31 }
31 } 32 }
32 33
33 assert(arm_float_abi == "" || arm_float_abi == "hard" || 34 assert(arm_float_abi == "" || arm_float_abi == "hard" ||
34 arm_float_abi == "soft" || arm_float_abi == "softfp") 35 arm_float_abi == "soft" || arm_float_abi == "softfp")
35 36
36 if (arm_version == 6) { 37 if (arm_version == 6) {
37 arm_arch = "armv6" 38 arm_arch = "armv6"
(...skipping 20 matching lines...) Expand all
58 59
59 arm_use_thumb = true 60 arm_use_thumb = true
60 61
61 if (arm_use_neon) { 62 if (arm_use_neon) {
62 arm_fpu = "neon" 63 arm_fpu = "neon"
63 } else { 64 } else {
64 arm_fpu = "vfpv3-d16" 65 arm_fpu = "vfpv3-d16"
65 } 66 }
66 } 67 }
67 } 68 }
OLDNEW
« no previous file with comments | « no previous file | build/module_args/v8.gni » ('j') | build/secondary/third_party/icu/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698