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

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

Issue 549453004: GN: Fix compile errors with os==chromeos mojo/public build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@signed
Patch Set: Update description Created 6 years, 3 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 | « build/config/BUILDCONFIG.gn ('k') | build/config/linux/pkg-config.py » ('j') | no next file with comments »
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 (cpu_arch == "arm") { 5 if (cpu_arch == "arm") {
6 declare_args() { 6 declare_args() {
7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM 7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
8 # platforms. 8 # platforms.
9 arm_version = 7 9 arm_version = 7
10 10
11 # The ARM floating point mode. This is either the string "hard", "soft", or 11 # 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 12 # "softfp". An empty string means to use the default one for the
13 # arm_version. 13 # arm_version.
14 arm_float_abi = "" 14 arm_float_abi = ""
15
16 # 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 # arm_version.
19 arm_tune = ""
20
21 # Whether to use the neon FPU instruction set or not.
22 arm_use_neon = true
15 } 23 }
16 24
17 assert(arm_float_abi == "" || 25 assert(arm_float_abi == "" ||
18 arm_float_abi == "hard" || 26 arm_float_abi == "hard" ||
19 arm_float_abi == "soft" || 27 arm_float_abi == "soft" ||
20 arm_float_abi == "softfp") 28 arm_float_abi == "softfp")
21 29
22 if (is_android) { 30 if (is_android) {
23 arm_use_neon = false 31 arm_use_neon = false
24 arm_optionally_use_neon = true
25 } else {
26 arm_use_neon = true
27 arm_optionally_use_neon = true
28 } 32 }
33 arm_optionally_use_neon = true
29 34
30 if (arm_version == 6) { 35 if (arm_version == 6) {
31 arm_arch = "armv6" 36 arm_arch = "armv6"
32 arm_tune = "" 37 if (arm_tune != "") {
38 arm_tune = ""
39 }
33 if (arm_float_abi == "") { 40 if (arm_float_abi == "") {
34 arm_float_abi = "softfp" 41 arm_float_abi = "softfp"
35 } 42 }
36 arm_fpu = "vfp" 43 arm_fpu = "vfp"
37 # Thumb is a reduced instruction set available on some ARM processors that 44 # Thumb is a reduced instruction set available on some ARM processors that
38 # has increased code density. 45 # has increased code density.
39 arm_use_thumb = false 46 arm_use_thumb = false
40 47
41 } else if (arm_version == 7) { 48 } else if (arm_version == 7) {
42 arm_arch = "armv7-a" 49 arm_arch = "armv7-a"
43 arm_tune = "generic-armv7-a" 50 if (arm_tune == "") {
51 arm_tune = "generic-armv7-a"
52 }
53
44 if (arm_float_abi == "") { 54 if (arm_float_abi == "") {
45 arm_float_abi = "softfp" 55 arm_float_abi = "softfp"
46 } 56 }
57
47 arm_use_thumb = true 58 arm_use_thumb = true
48 59
49 if (arm_use_neon) { 60 if (arm_use_neon) {
50 arm_fpu = "neon" 61 arm_fpu = "neon"
51 } else { 62 } else {
52 arm_fpu = "vfpv3-d16" 63 arm_fpu = "vfpv3-d16"
53 } 64 }
54 } 65 }
55 } 66 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/linux/pkg-config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698