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

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

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 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/android/rules.gni ('k') | build/config/chrome_build.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 if (current_cpu == "arm" || current_cpu == "arm64") {
6 declare_args() {
7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
8 # platforms.
9 if (current_cpu == "arm64") {
10 arm_version = 8
11 } else {
12 arm_version = 7
13 }
14
15 # The ARM floating point mode. This is either the string "hard", "soft", or
16 # "softfp". An empty string means to use the default one for the
17 # arm_version.
18 arm_float_abi = ""
19
20 # The ARM variant-specific tuning mode. This will be a string like "armv6"
21 # or "cortex-a15". An empty string means to use the default for the
22 # arm_version.
23 arm_tune = ""
24
25 # Whether to use the neon FPU instruction set or not.
26 arm_use_neon = true
27
28 # Whether to enable optional NEON code paths.
29 arm_optionally_use_neon = false
30
31 if (is_android) {
32 arm_use_neon = false
33 arm_optionally_use_neon = true
34 }
35
36 if (is_ios) {
37 arm_use_neon = false
38 arm_optionally_use_neon = false
39 }
40 }
41
42 assert(arm_float_abi == "" || arm_float_abi == "hard" ||
43 arm_float_abi == "soft" || arm_float_abi == "softfp")
44
45 if (arm_version == 6) {
46 arm_arch = "armv6"
47 if (arm_tune != "") {
48 arm_tune = ""
49 }
50 if (arm_float_abi == "") {
51 arm_float_abi = "softfp"
52 }
53 arm_fpu = "vfp"
54
55 # Thumb is a reduced instruction set available on some ARM processors that
56 # has increased code density.
57 arm_use_thumb = false
58 } else if (arm_version == 7) {
59 arm_arch = "armv7-a"
60 if (arm_tune == "") {
61 arm_tune = "generic-armv7-a"
62 }
63
64 if (arm_float_abi == "") {
65 arm_float_abi = "softfp"
66 }
67
68 arm_use_thumb = true
69
70 if (arm_use_neon) {
71 arm_fpu = "neon"
72 } else {
73 arm_fpu = "vfpv3-d16"
74 }
75 }
76 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | build/config/chrome_build.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698