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

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

Issue 871433002: Roll openmax_dl to the latest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « DEPS ('k') | build/secondary/third_party/openmax_dl/dl/BUILD.gn » ('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 15
16 # The ARM variant-specific tuning mode. This will be a string like "armv6" 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 17 # or "cortex-a15". An empty string means to use the default for the
18 # arm_version. 18 # arm_version.
19 arm_tune = "" 19 arm_tune = ""
20 20
21 # Whether to use the neon FPU instruction set or not. 21 # Whether to use the neon FPU instruction set or not.
22 arm_use_neon = true 22 arm_use_neon = true
23
24 # Whether to enable optional NEON code paths.
25 arm_optionally_use_neon = false
26
27 if (is_android) {
28 arm_use_neon = false
29 arm_optionally_use_neon = true
30 }
23 } 31 }
24 32
25 assert(arm_float_abi == "" || arm_float_abi == "hard" || 33 assert(arm_float_abi == "" || arm_float_abi == "hard" ||
26 arm_float_abi == "soft" || arm_float_abi == "softfp") 34 arm_float_abi == "soft" || arm_float_abi == "softfp")
27 35
28 if (is_android) {
29 arm_use_neon = false
30 }
31 arm_optionally_use_neon = true
32
33 if (arm_version == 6) { 36 if (arm_version == 6) {
34 arm_arch = "armv6" 37 arm_arch = "armv6"
35 if (arm_tune != "") { 38 if (arm_tune != "") {
36 arm_tune = "" 39 arm_tune = ""
37 } 40 }
38 if (arm_float_abi == "") { 41 if (arm_float_abi == "") {
39 arm_float_abi = "softfp" 42 arm_float_abi = "softfp"
40 } 43 }
41 arm_fpu = "vfp" 44 arm_fpu = "vfp"
42 45
(...skipping 12 matching lines...) Expand all
55 58
56 arm_use_thumb = true 59 arm_use_thumb = true
57 60
58 if (arm_use_neon) { 61 if (arm_use_neon) {
59 arm_fpu = "neon" 62 arm_fpu = "neon"
60 } else { 63 } else {
61 arm_fpu = "vfpv3-d16" 64 arm_fpu = "vfpv3-d16"
62 } 65 }
63 } 66 }
64 } 67 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/secondary/third_party/openmax_dl/dl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698