OLD | NEW |
1 # Copyright 2011 The Android Open Source Project | 1 # Copyright 2011 The Android Open Source Project |
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 # This file is automatically included by gyp_skia when building any target. | 6 # This file is automatically included by gyp_skia when building any target. |
7 | 7 |
8 { | 8 { |
9 'includes': [ | 9 'includes': [ |
10 'common_variables.gypi', | 10 'common_variables.gypi', |
11 ], | 11 ], |
12 | 12 |
13 'target_defaults': { | 13 'target_defaults': { |
14 'defines': [ | 14 'defines': [ |
15 'SK_INTERNAL', | 15 'SK_INTERNAL', |
16 'SK_GAMMA_SRGB', | 16 'SK_GAMMA_SRGB', |
17 'SK_GAMMA_APPLY_TO_A8', | 17 'SK_GAMMA_APPLY_TO_A8', |
18 'QT_NO_KEYWORDS', | 18 'QT_NO_KEYWORDS', |
19 # The discardable resource cache is tested via a special bot. This is | 19 # The discardable resource cache is tested via a special bot. This is |
20 # disabled here so we test the non-discardable use case. | 20 # disabled here so we test the non-discardable use case. |
21 # 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE', | 21 # 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE', |
22 ], | 22 ], |
23 | 23 |
24 # Validate the 'skia_os' setting against 'OS', because only certain | 24 # Validate the 'skia_os' setting against 'OS', because only certain |
25 # combinations work. You should only override 'skia_os' for certain | 25 # combinations work. You should only override 'skia_os' for certain |
26 # situations, like building for iOS on a Mac. | 26 # situations, like building for iOS on a Mac. |
27 'variables': { | 27 'variables': { |
28 'conditions': [ | 28 'conditions': [ |
29 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \ | 29 [ 'skia_os != OS and not (skia_os == "ios" and OS == "mac")', { |
30 (skia_os == "chromeos" and OS == "linux"))', { | |
31 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))', | 30 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))', |
32 }], | 31 }], |
33 [ 'skia_mesa and skia_os not in ["mac", "linux"]', { | 32 [ 'skia_mesa and skia_os not in ["mac", "linux"]', { |
34 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".
)', | 33 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".
)', |
35 }], | 34 }], |
36 [ 'skia_angle and not (skia_os == "win" or skia_os == "linux" or skia_os
== "mac")', { | 35 [ 'skia_angle and not (skia_os == "win" or skia_os == "linux" or skia_os
== "mac")', { |
37 'error': '<!(skia_angle=1 only supported with skia_os="win" or skia_os
="linux" or skia_os="mac".)', | 36 'error': '<!(skia_angle=1 only supported with skia_os="win" or skia_os
="linux" or skia_os="mac".)', |
38 }], | 37 }], |
39 [ 'skia_os == "chromeos" and OS != "linux"', { | |
40 'error': '<!(Skia ChromeOS build is only supported on Linux.)', | |
41 }], | |
42 ], | 38 ], |
43 }, | 39 }, |
44 'includes': [ | 40 'includes': [ |
45 'common_conditions.gypi', | 41 'common_conditions.gypi', |
46 ], | 42 ], |
47 'conditions': [ | 43 'conditions': [ |
48 [ 'skia_mesa', { | 44 [ 'skia_mesa', { |
49 'defines': [ | 45 'defines': [ |
50 'SK_MESA', | 46 'SK_MESA', |
51 ], | 47 ], |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 'Release': { 'defines': [ 'NDEBUG' ] }, | 97 'Release': { 'defines': [ 'NDEBUG' ] }, |
102 'Release_Developer': { | 98 'Release_Developer': { |
103 'inherit_from': ['Release'], | 99 'inherit_from': ['Release'], |
104 'defines': [ 'SK_DEVELOPER=1' ], | 100 'defines': [ 'SK_DEVELOPER=1' ], |
105 }, | 101 }, |
106 }, | 102 }, |
107 }], | 103 }], |
108 ], | 104 ], |
109 }, # end 'target_defaults' | 105 }, # end 'target_defaults' |
110 } | 106 } |
OLD | NEW |