OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 'variables': { | 9 'variables': { |
10 # .gyp files or targets should set chromium_code to 1 if they build | 10 # .gyp files or targets should set chromium_code to 1 if they build |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 # build (0). | 75 # build (0). |
76 'inside_chromium_build%': 1, | 76 'inside_chromium_build%': 1, |
77 | 77 |
78 # Set to 1 to enable fast builds. It disables debug info for fastest | 78 # Set to 1 to enable fast builds. It disables debug info for fastest |
79 # compilation. | 79 # compilation. |
80 'fastbuild%': 0, | 80 'fastbuild%': 0, |
81 | 81 |
82 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared | 82 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared |
83 # libraries on linux x86-64 and arm. | 83 # libraries on linux x86-64 and arm. |
84 'linux_fpic%': 0, | 84 'linux_fpic%': 0, |
| 85 |
| 86 # Set ARM-v7 compilation flags |
| 87 'armv7%': 0, |
| 88 |
| 89 # Set Neon compilation flags (only meaningful if armv7==1). |
| 90 'arm_neon%': 1, |
85 }, | 91 }, |
86 | 92 |
87 # Define branding and buildtype on the basis of their settings within the | 93 # Define branding and buildtype on the basis of their settings within the |
88 # variables sub-dict above, unless overridden. | 94 # variables sub-dict above, unless overridden. |
89 'branding%': '<(branding)', | 95 'branding%': '<(branding)', |
90 'buildtype%': '<(buildtype)', | 96 'buildtype%': '<(buildtype)', |
91 'target_arch%': '<(target_arch)', | 97 'target_arch%': '<(target_arch)', |
92 'host_arch%': '<(host_arch)', | 98 'host_arch%': '<(host_arch)', |
93 'toolkit_views%': '<(toolkit_views)', | 99 'toolkit_views%': '<(toolkit_views)', |
94 'chromeos%': '<(chromeos)', | 100 'chromeos%': '<(chromeos)', |
95 'inside_chromium_build%': '<(inside_chromium_build)', | 101 'inside_chromium_build%': '<(inside_chromium_build)', |
96 'fastbuild%': '<(fastbuild)', | 102 'fastbuild%': '<(fastbuild)', |
97 'linux_fpic%': '<(linux_fpic)', | 103 'linux_fpic%': '<(linux_fpic)', |
| 104 'armv7%': '<(armv7)', |
| 105 'arm_neon%': '<(arm_neon)', |
98 | 106 |
99 # The release channel that this build targets. This is used to restrict | 107 # The release channel that this build targets. This is used to restrict |
100 # channel-specific build options, like which installer packages to create. | 108 # channel-specific build options, like which installer packages to create. |
101 # The default is 'all', which does no channel-specific filtering. | 109 # The default is 'all', which does no channel-specific filtering. |
102 'channel%': 'all', | 110 'channel%': 'all', |
103 | 111 |
104 # Override chromium_mac_pch and set it to 0 to suppress the use of | 112 # Override chromium_mac_pch and set it to 0 to suppress the use of |
105 # precompiled headers on the Mac. Prefix header injection may still be | 113 # precompiled headers on the Mac. Prefix header injection may still be |
106 # used, but prefix headers will not be precompiled. This is useful when | 114 # used, but prefix headers will not be precompiled. This is useful when |
107 # using distcc to distribute a build to compile slaves that don't | 115 # using distcc to distribute a build to compile slaves that don't |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 # Enable TCMalloc. | 200 # Enable TCMalloc. |
193 'linux_use_tcmalloc%': 0, | 201 'linux_use_tcmalloc%': 0, |
194 | 202 |
195 # Set to select the Title Case versions of strings in GRD files. | 203 # Set to select the Title Case versions of strings in GRD files. |
196 'use_titlecase_in_grd_files%': 0, | 204 'use_titlecase_in_grd_files%': 0, |
197 | 205 |
198 # Used to disable Native Client at compile time, for platforms where it | 206 # Used to disable Native Client at compile time, for platforms where it |
199 # isn't supported | 207 # isn't supported |
200 'disable_nacl%': 0, | 208 'disable_nacl%': 0, |
201 | 209 |
202 # Set ARM-v7 compilation flags | |
203 'armv7%': 0, | |
204 | |
205 # Set Thumb compilation flags. | 210 # Set Thumb compilation flags. |
206 'arm_thumb%': 0, | 211 'arm_thumb%': 0, |
207 | 212 |
208 'conditions': [ | 213 'conditions': [ |
209 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 214 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
210 # This will set gcc_version to XY if you are running gcc X.Y.*. | 215 # This will set gcc_version to XY if you are running gcc X.Y.*. |
211 # This is used to tweak build flags for gcc 4.4. | 216 # This is used to tweak build flags for gcc 4.4. |
212 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 217 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
213 'conditions': [ | 218 'conditions': [ |
214 ['branding=="Chrome" or linux_chromium_breakpad==1', { | 219 ['branding=="Chrome" or linux_chromium_breakpad==1', { |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 # inline assembly that uses condition codes but it's | 902 # inline assembly that uses condition codes but it's |
898 # suboptimal. Better would be to #ifdef __thumb__ at the | 903 # suboptimal. Better would be to #ifdef __thumb__ at the |
899 # right place and have a separate thumb path. | 904 # right place and have a separate thumb path. |
900 '-Wa,-mimplicit-it=thumb', | 905 '-Wa,-mimplicit-it=thumb', |
901 ] | 906 ] |
902 }], | 907 }], |
903 ['armv7==1', { | 908 ['armv7==1', { |
904 'cflags': [ | 909 'cflags': [ |
905 '-march=armv7-a', | 910 '-march=armv7-a', |
906 '-mtune=cortex-a8', | 911 '-mtune=cortex-a8', |
907 '-mfpu=neon', | |
908 '-mfloat-abi=softfp', | 912 '-mfloat-abi=softfp', |
909 ], | 913 ], |
| 914 'conditions': [ |
| 915 ['arm_neon==1', { |
| 916 'cflags': [ '-mfpu=neon', ], |
| 917 }, { |
| 918 'cflags': [ '-mfpu=vfpv3', ], |
| 919 }] |
| 920 ], |
910 }], | 921 }], |
911 ], | 922 ], |
912 }], | 923 }], |
913 ], | 924 ], |
914 }], | 925 }], |
915 ['linux_fpic==1', { | 926 ['linux_fpic==1', { |
916 'cflags': [ | 927 'cflags': [ |
917 '-fPIC', | 928 '-fPIC', |
918 ], | 929 ], |
919 }], | 930 }], |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1216 # and therefore SYMROOT, needs to be set at the project level. | 1227 # and therefore SYMROOT, needs to be set at the project level. |
1217 'SYMROOT': '<(DEPTH)/xcodebuild', | 1228 'SYMROOT': '<(DEPTH)/xcodebuild', |
1218 }, | 1229 }, |
1219 } | 1230 } |
1220 | 1231 |
1221 # Local Variables: | 1232 # Local Variables: |
1222 # tab-width:2 | 1233 # tab-width:2 |
1223 # indent-tabs-mode:nil | 1234 # indent-tabs-mode:nil |
1224 # End: | 1235 # End: |
1225 # vim: set expandtab tabstop=2 shiftwidth=2: | 1236 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |