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

Side by Side Diff: gyp/common_conditions.gypi

Issue 21096005: update gyp for ARM builds to be more well defined. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | gyp/common_variables.gypi » ('j') | gyp/opts.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # conditions used in both common.gypi and skia.gyp in chromium 1 # conditions used in both common.gypi and skia.gyp in chromium
2 # 2 #
3 { 3 {
4 'defines': [ 4 'defines': [
5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', 5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)',
6 # 'SK_SUPPORT_HINTING_SCALE_FACTOR', 6 # 'SK_SUPPORT_HINTING_SCALE_FACTOR',
7 ], 7 ],
8 'conditions' : [ 8 'conditions' : [
9 [ 'skia_gpu == 1', 9 [ 'skia_gpu == 1',
10 { 10 {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 'conditions': [ 143 'conditions': [
144 [ 'skia_warnings_as_errors', { 144 [ 'skia_warnings_as_errors', {
145 'cflags': [ 145 'cflags': [
146 '-Werror', 146 '-Werror',
147 ], 147 ],
148 }], 148 }],
149 [ 'skia_arch_type == "arm" and arm_thumb == 1', { 149 [ 'skia_arch_type == "arm" and arm_thumb == 1', {
150 'cflags': [ 150 'cflags': [
151 '-mthumb', 151 '-mthumb',
152 ], 152 ],
153 # The --fix-cortex-a8 switch enables a link-time workaround for
154 # an erratum in certain Cortex-A8 processors. The workaround is
155 # enabled by default if you target the ARM v7-A arch profile.
156 # It can be enabled otherwise by specifying --fix-cortex-a8, or
157 # disabled unconditionally by specifying --no-fix-cortex-a8.
158 #
159 # The erratum only affects Thumb-2 code.
160 'conditions': [
161 [ 'arm_version < 7', {
162 'ldflags': [
163 '-Wl,--fix-cortex-a8',
164 ],
165 }],
166 ],
153 }], 167 }],
154 [ 'skia_arch_type == "arm" and armv7 == 1', { 168 [ 'skia_arch_type == "arm" and arm_version == 7', {
mtklein 2013/07/29 20:02:16 Merge this back with below for now? Otherwise we
djsollen 2013/07/29 20:25:59 The reason I moved it out is that there is not alw
155 'variables': {
156 'arm_neon_optional%': 0,
157 },
158 'defines': [
159 '__ARM_ARCH__=7',
160 ],
161 'cflags': [ 169 'cflags': [
162 '-march=armv7-a', 170 '-march=armv7-a',
163 ], 171 ],
172 'ldflags': [
173 '-march=armv7-a',
174 ],
175 }],
176 [ 'skia_arch_type == "arm" and arm_version >= 7', {
164 'conditions': [ 177 'conditions': [
165 [ 'arm_neon == 1', { 178 [ 'arm_neon == 1', {
166 'defines': [ 179 'defines': [
167 '__ARM_HAVE_NEON', 180 '__ARM_HAVE_NEON',
168 ], 181 ],
169 'cflags': [ 182 'cflags': [
170 '-mfpu=neon', 183 '-mfpu=neon',
171 ], 184 ],
172 'ldflags': [
173 '-march=armv7-a',
174 '-Wl,--fix-cortex-a8',
175 ],
176 }], 185 }],
177 [ 'arm_neon_optional == 1', { 186 [ 'arm_neon_optional == 1', {
178 'defines': [ 187 'defines': [
179 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', 188 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
180 ], 189 ],
181 }], 190 }],
182 [ 'skia_os != "chromeos"', { 191 [ 'skia_os != "chromeos"', {
183 'cflags': [ 192 'cflags': [
184 '-mfloat-abi=softfp', 193 '-mfloat-abi=softfp',
185 ], 194 ],
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 'xcode_settings': { 480 'xcode_settings': {
472 'SYMROOT': '<(DEPTH)/xcodebuild', 481 'SYMROOT': '<(DEPTH)/xcodebuild',
473 }, 482 },
474 } 483 }
475 484
476 # Local Variables: 485 # Local Variables:
477 # tab-width:2 486 # tab-width:2
478 # indent-tabs-mode:nil 487 # indent-tabs-mode:nil
479 # End: 488 # End:
480 # vim: set expandtab tabstop=2 shiftwidth=2: 489 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | gyp/common_variables.gypi » ('j') | gyp/opts.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698