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_GAMMA_SRGB', | 15 'SK_GAMMA_SRGB', |
16 'SK_GAMMA_APPLY_TO_A8', | 16 'SK_GAMMA_APPLY_TO_A8', |
17 ], | 17 ], |
18 | 18 |
19 # Validate the 'skia_os' setting against 'OS', because only certain | 19 # Validate the 'skia_os' setting against 'OS', because only certain |
20 # combinations work. You should only override 'skia_os' for certain | 20 # combinations work. You should only override 'skia_os' for certain |
21 # situations, like building for iOS on a Mac. | 21 # situations, like building for iOS on a Mac. |
22 'variables': { | 22 'variables': { |
23 'conditions': [ | 23 'conditions': [ |
24 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \ | 24 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \ |
25 (skia_os == "nacl" and OS == "linux"))', { | 25 (skia_os == "nacl" and OS == "linux") or \ |
| 26 (skia_os == "chromeos" and OS == "linux"))', { |
26 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))', | 27 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))', |
27 }], | 28 }], |
28 [ 'skia_mesa and skia_os not in ["mac", "linux"]', { | 29 [ 'skia_mesa and skia_os not in ["mac", "linux"]', { |
29 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".
)', | 30 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".
)', |
30 }], | 31 }], |
31 [ 'skia_angle and not skia_os == "win"', { | 32 [ 'skia_angle and not skia_os == "win"', { |
32 'error': '<!(skia_angle=1 only supported with skia_os="win".)', | 33 'error': '<!(skia_angle=1 only supported with skia_os="win".)', |
33 }], | 34 }], |
34 [ 'skia_arch_width != 32 and skia_arch_width != 64', { | 35 [ 'skia_arch_width != 32 and skia_arch_width != 64', { |
35 'error': '<!(skia_arch_width can only be 32 or 64 bits not <(skia_arch
_width) bits)', | 36 'error': '<!(skia_arch_width can only be 32 or 64 bits not <(skia_arch
_width) bits)', |
36 }], | 37 }], |
37 [ 'skia_os == "nacl" and OS != "linux"', { | 38 [ 'skia_os == "nacl" and OS != "linux"', { |
38 'error': '<!(Skia NaCl build only currently supported on Linux.)', | 39 'error': '<!(Skia NaCl build only currently supported on Linux.)', |
39 }], | 40 }], |
40 [ 'skia_os == "chromeos" and OS != "linux"', { | 41 [ 'skia_os == "chromeos" and OS != "linux"', { |
41 'error': '<!(Skia ChromeOS build is only supported on Linux.)', | 42 'error': '<!(Skia ChromeOS build is only supported on Linux.)', |
42 }], | 43 }], |
43 [ 'skia_os == "chromeos" and not skia_cros_target', { | |
44 'error': '<!(skia_cros_target must be defined for ChromeOS)', | |
45 }], | |
46 ], | 44 ], |
47 }, | 45 }, |
48 'includes': [ | 46 'includes': [ |
49 'common_conditions.gypi', | 47 'common_conditions.gypi', |
50 ], | 48 ], |
51 'conditions': [ | 49 'conditions': [ |
52 [ 'skia_scalar == "float"', | 50 [ 'skia_scalar == "float"', |
53 { | 51 { |
54 'defines': [ | 52 'defines': [ |
55 'SK_SCALAR_IS_FLOAT', | 53 'SK_SCALAR_IS_FLOAT', |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 ], | 109 ], |
112 }, | 110 }, |
113 }, | 111 }, |
114 }, # end 'target_defaults' | 112 }, # end 'target_defaults' |
115 } | 113 } |
116 # Local Variables: | 114 # Local Variables: |
117 # tab-width:2 | 115 # tab-width:2 |
118 # indent-tabs-mode:nil | 116 # indent-tabs-mode:nil |
119 # End: | 117 # End: |
120 # vim: set expandtab tabstop=2 shiftwidth=2: | 118 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |