OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # conditions used in both common.gypi and skia.gyp in chromium | 6 # conditions used in both common.gypi and skia.gyp in chromium |
7 # | 7 # |
8 { | 8 { |
9 'defines': [ | 9 'defines': [ |
10 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', | 10 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |
11 'SK_SUPPORT_GPU=<(skia_gpu)', | 11 'SK_SUPPORT_GPU=<(skia_gpu)', |
12 'SK_FORCE_DISTANCE_FIELD_TEXT=<(skia_force_distance_field_text)', | 12 'SK_FORCE_DISTANCE_FIELD_TEXT=<(skia_force_distance_field_text)', |
13 | 13 |
14 # Indicate that all dependency libraries are present. Clients that | 14 # Indicate that all dependency libraries are present. Clients that |
15 # are missing some of the required decoding libraries may choose | 15 # are missing some of the required decoding libraries may choose |
16 # not to define these. This will disable some decoder and encoder | 16 # not to define these. This will disable some decoder and encoder |
17 # features. | 17 # features. |
18 'SK_HAS_GIF_LIBRARY', | 18 'SK_HAS_GIF_LIBRARY', |
19 'SK_HAS_JPEG_LIBRARY', | 19 'SK_HAS_JPEG_LIBRARY', |
20 'SK_HAS_PNG_LIBRARY', | 20 'SK_HAS_PNG_LIBRARY', |
21 'SK_HAS_WEBP_LIBRARY', | 21 'SK_HAS_WEBP_LIBRARY', |
22 | |
23 # Temporarily test against the QCMS library. | |
24 'SK_TEST_QCMS', | |
25 ], | 22 ], |
26 'conditions' : [ | 23 'conditions' : [ |
27 [ 'skia_is_bot', { | 24 [ 'skia_is_bot', { |
28 'defines': [ 'SK_IS_BOT' ], | 25 'defines': [ 'SK_IS_BOT' ], |
29 }], | 26 }], |
30 [ 'skia_codec_decodes_raw', { | 27 [ 'skia_codec_decodes_raw', { |
31 'defines': [ | 28 'defines': [ |
32 'SK_CODEC_DECODES_RAW', | 29 'SK_CODEC_DECODES_RAW', |
33 ], | 30 ], |
34 }], | 31 }], |
| 32 [ 'skia_android_framework == 0', { |
| 33 'defines': [ |
| 34 # Temporarily test against the QCMS library. |
| 35 'SK_TEST_QCMS', |
| 36 ], |
| 37 }], |
35 ['skia_pic', { | 38 ['skia_pic', { |
36 'cflags': [ | 39 'cflags': [ |
37 '-fPIC', | 40 '-fPIC', |
38 ], | 41 ], |
39 'conditions' : [ | 42 'conditions' : [ |
40 # FIXME: The reason we don't do this on Android is due to the way | 43 # FIXME: The reason we don't do this on Android is due to the way |
41 # we build the executables/skia_launcher on Android. See | 44 # we build the executables/skia_launcher on Android. See |
42 # https://codereview.chromium.org/406613003/diff/1/gyp/common_conditions.g
ypi#newcode455 | 45 # https://codereview.chromium.org/406613003/diff/1/gyp/common_conditions.g
ypi#newcode455 |
43 ['skia_os != "android"', { | 46 ['skia_os != "android"', { |
44 'target_conditions': [ | 47 'target_conditions': [ |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], | 708 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/.'], |
706 }, | 709 }, |
707 }], | 710 }], |
708 | 711 |
709 ], # end 'conditions' | 712 ], # end 'conditions' |
710 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 713 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
711 'xcode_settings': { | 714 'xcode_settings': { |
712 'SYMROOT': '<(DEPTH)/xcodebuild', | 715 'SYMROOT': '<(DEPTH)/xcodebuild', |
713 }, | 716 }, |
714 } | 717 } |
OLD | NEW |