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

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: Include new complete static library attribute on libmojo_sdk 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
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 arm_tune = ""
brettw 2014/09/23 20:20:17 Can you document these params?
Chris Masone 2014/09/23 22:33:59 Done.
17
18 arm_use_neon = true
15 } 19 }
16 20
17 assert(arm_float_abi == "" || 21 assert(arm_float_abi == "" ||
18 arm_float_abi == "hard" || 22 arm_float_abi == "hard" ||
19 arm_float_abi == "soft" || 23 arm_float_abi == "soft" ||
20 arm_float_abi == "softfp") 24 arm_float_abi == "softfp")
21 25
22 if (is_android) { 26 if (is_android) {
23 arm_use_neon = false 27 arm_use_neon = false
24 arm_optionally_use_neon = true
25 } else {
26 arm_use_neon = true
27 arm_optionally_use_neon = true
28 } 28 }
29 arm_optionally_use_neon = true
29 30
30 if (arm_version == 6) { 31 if (arm_version == 6) {
31 arm_arch = "armv6" 32 arm_arch = "armv6"
32 arm_tune = "" 33 if (arm_tune != "") {
34 arm_tune = ""
35 }
33 if (arm_float_abi == "") { 36 if (arm_float_abi == "") {
34 arm_float_abi = "softfp" 37 arm_float_abi = "softfp"
35 } 38 }
36 arm_fpu = "vfp" 39 arm_fpu = "vfp"
37 # Thumb is a reduced instruction set available on some ARM processors that 40 # Thumb is a reduced instruction set available on some ARM processors that
38 # has increased code density. 41 # has increased code density.
39 arm_use_thumb = false 42 arm_use_thumb = false
40 43
41 } else if (arm_version == 7) { 44 } else if (arm_version == 7) {
42 arm_arch = "armv7-a" 45 arm_arch = "armv7-a"
43 arm_tune = "generic-armv7-a" 46 if (arm_tune == "") {
47 arm_tune = "generic-armv7-a"
48 }
49
44 if (arm_float_abi == "") { 50 if (arm_float_abi == "") {
45 arm_float_abi = "softfp" 51 arm_float_abi = "softfp"
46 } 52 }
53
47 arm_use_thumb = true 54 arm_use_thumb = true
48 55
49 if (arm_use_neon) { 56 if (arm_use_neon) {
50 arm_fpu = "neon" 57 arm_fpu = "neon"
51 } else { 58 } else {
52 arm_fpu = "vfpv3-d16" 59 arm_fpu = "vfpv3-d16"
53 } 60 }
54 } 61 }
55 } 62 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698