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

Side by Side Diff: gyp/common_conditions.gypi

Issue 369813003: Enable 32/64-bit gyp switch on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
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_GPU=<(skia_gpu)', 6 'SK_SUPPORT_GPU=<(skia_gpu)',
7 'SK_SUPPORT_OPENCL=<(skia_opencl)', 7 'SK_SUPPORT_OPENCL=<(skia_opencl)',
8 'SK_FORCE_DISTANCEFIELD_FONTS=<(skia_force_distancefield_fonts)', 8 'SK_FORCE_DISTANCEFIELD_FONTS=<(skia_force_distancefield_fonts)',
9 ], 9 ],
10 'conditions' : [ 10 'conditions' : [
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 '-Wpointer-arith', 184 '-Wpointer-arith',
185 185
186 '-Wno-unused-parameter', 186 '-Wno-unused-parameter',
187 ], 187 ],
188 'cflags_cc': [ 188 'cflags_cc': [
189 '-fno-rtti', 189 '-fno-rtti',
190 '-Wnon-virtual-dtor', 190 '-Wnon-virtual-dtor',
191 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i s POD. 191 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i s POD.
192 ], 192 ],
193 'conditions': [ 193 'conditions': [
194 [ 'skia_os != "chromeos"', {
195 'conditions': [
196 [ 'skia_arch_width == 64 and skia_arch_type == "x86"', {
197 'cflags': [
198 '-m64',
199 ],
200 'ldflags': [
201 '-m64',
202 ],
203 }],
204 [ 'skia_arch_width == 32 and skia_arch_type == "x86"', {
205 'cflags': [
206 '-m32',
207 ],
208 'ldflags': [
209 '-m32',
210 ],
211 }],
212 ],
213 }],
194 [ 'skia_android_framework==0', { 214 [ 'skia_android_framework==0', {
195 'cflags': [ 215 'cflags': [
196 # This flag is not supported by Android build system. 216 # This flag is not supported by Android build system.
197 '-Wno-c++11-extensions', 217 '-Wno-c++11-extensions',
198 ], 218 ],
199 }], 219 }],
200 [ 'skia_warnings_as_errors', { 220 [ 'skia_warnings_as_errors', {
201 'cflags': [ 221 'cflags': [
202 '-Werror', 222 '-Werror',
203 ], 223 ],
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 ], 435 ],
416 }, 436 },
417 }, { # skia_os != "nacl" 437 }, { # skia_os != "nacl"
418 'link_settings': { 438 'link_settings': {
419 'ldflags': [ 439 'ldflags': [
420 '-lstdc++', 440 '-lstdc++',
421 '-lm', 441 '-lm',
422 ], 442 ],
423 }, 443 },
424 }], 444 }],
425 [ 'skia_os != "chromeos"', {
426 'conditions': [
427 [ 'skia_arch_width == 64 and skia_arch_type == "x86"', {
428 'cflags': [
429 '-m64',
430 ],
431 'ldflags': [
432 '-m64',
433 ],
434 }],
435 [ 'skia_arch_width == 32 and skia_arch_type == "x86"', {
436 'cflags': [
437 '-m32',
438 ],
439 'ldflags': [
440 '-m32',
441 ],
442 }],
443 ],
444 }],
445 # Enable asan, tsan, etc. 445 # Enable asan, tsan, etc.
446 [ 'skia_sanitizer', { 446 [ 'skia_sanitizer', {
447 'cflags': [ 447 'cflags': [
448 '-fsanitize=<(skia_sanitizer)', 448 '-fsanitize=<(skia_sanitizer)',
449 ], 449 ],
450 'ldflags': [ 450 'ldflags': [
451 '-fsanitize=<(skia_sanitizer)', 451 '-fsanitize=<(skia_sanitizer)',
452 ], 452 ],
453 'conditions' : [ 453 'conditions' : [
454 [ 'skia_sanitizer == "thread"', { 454 [ 'skia_sanitizer == "thread"', {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d 696 # add flags here (e.g. SK_SUPPORT_LEGACY_...) needed by moz2d
697 ], 697 ],
698 }], 698 }],
699 699
700 ], # end 'conditions' 700 ], # end 'conditions'
701 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details 701 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details
702 'xcode_settings': { 702 'xcode_settings': {
703 'SYMROOT': '<(DEPTH)/xcodebuild', 703 'SYMROOT': '<(DEPTH)/xcodebuild',
704 }, 704 },
705 } 705 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698