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', |
(...skipping 27 matching lines...) Expand all Loading... |
38 'error': '<!(Skia NaCl build only currently supported on Linux.)', | 38 'error': '<!(Skia NaCl build only currently supported on Linux.)', |
39 }], | 39 }], |
40 [ 'skia_os == "chromeos" and OS != "linux"', { | 40 [ 'skia_os == "chromeos" and OS != "linux"', { |
41 'error': '<!(Skia ChromeOS build is only supported on Linux.)', | 41 'error': '<!(Skia ChromeOS build is only supported on Linux.)', |
42 }], | 42 }], |
43 [ 'skia_os == "chromeos" and not skia_cros_target', { | 43 [ 'skia_os == "chromeos" and not skia_cros_target', { |
44 'error': '<!(skia_cros_target must be defined for ChromeOS)', | 44 'error': '<!(skia_cros_target must be defined for ChromeOS)', |
45 }], | 45 }], |
46 ], | 46 ], |
47 }, | 47 }, |
48 # Validate the 'skia_os' setting against 'skia_shared_lib', because shared | |
49 # library build is only supported on Android. | |
50 'variables': { | |
51 'conditions': [ | |
52 [ 'skia_os != "android" and skia_shared_lib', { | |
53 'error': '<!(Skia shared lib build only currently supported on Android
.)', | |
54 }], | |
55 ], | |
56 }, | |
57 'includes': [ | 48 'includes': [ |
58 'common_conditions.gypi', | 49 'common_conditions.gypi', |
59 ], | 50 ], |
60 'conditions': [ | 51 'conditions': [ |
61 [ 'skia_scalar == "float"', | 52 [ 'skia_scalar == "float"', |
62 { | 53 { |
63 'defines': [ | 54 'defines': [ |
64 'SK_SCALAR_IS_FLOAT', | 55 'SK_SCALAR_IS_FLOAT', |
65 'SK_CAN_USE_FLOAT', | 56 'SK_CAN_USE_FLOAT', |
66 ], | 57 ], |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 ], | 111 ], |
121 }, | 112 }, |
122 }, | 113 }, |
123 }, # end 'target_defaults' | 114 }, # end 'target_defaults' |
124 } | 115 } |
125 # Local Variables: | 116 # Local Variables: |
126 # tab-width:2 | 117 # tab-width:2 |
127 # indent-tabs-mode:nil | 118 # indent-tabs-mode:nil |
128 # End: | 119 # End: |
129 # vim: set expandtab tabstop=2 shiftwidth=2: | 120 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |