| 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 21 matching lines...) Expand all Loading... |
| 32 'error': '<!(skia_angle=1 only supported with skia_os="win".)', | 32 'error': '<!(skia_angle=1 only supported with skia_os="win".)', |
| 33 }], | 33 }], |
| 34 [ 'skia_arch_width != 32 and skia_arch_width != 64', { | 34 [ '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)', | 35 'error': '<!(skia_arch_width can only be 32 or 64 bits not <(skia_arch
_width) bits)', |
| 36 }], | 36 }], |
| 37 [ 'skia_os == "nacl" and OS != "linux"', { | 37 [ 'skia_os == "nacl" and OS != "linux"', { |
| 38 'error': '<!(Skia NaCl build only currently supported on Linux.)', | 38 'error': '<!(Skia NaCl build only currently supported on Linux.)', |
| 39 }], | 39 }], |
| 40 ], | 40 ], |
| 41 }, | 41 }, |
| 42 # Validate the 'skia_os' setting against 'skia_shared_lib', because shared |
| 43 # library build is only supported on Android. |
| 44 'variables': { |
| 45 'conditions': [ |
| 46 [ 'skia_os != "android" and skia_shared_lib', { |
| 47 'error': '<!(Skia shared lib build only currently supported on Android
.)', |
| 48 }], |
| 49 ], |
| 50 }, |
| 42 'includes': [ | 51 'includes': [ |
| 43 'common_conditions.gypi', | 52 'common_conditions.gypi', |
| 44 ], | 53 ], |
| 45 'conditions': [ | 54 'conditions': [ |
| 46 [ 'skia_scalar == "float"', | 55 [ 'skia_scalar == "float"', |
| 47 { | 56 { |
| 48 'defines': [ | 57 'defines': [ |
| 49 'SK_SCALAR_IS_FLOAT', | 58 'SK_SCALAR_IS_FLOAT', |
| 50 'SK_CAN_USE_FLOAT', | 59 'SK_CAN_USE_FLOAT', |
| 51 ], | 60 ], |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 ], | 114 ], |
| 106 }, | 115 }, |
| 107 }, | 116 }, |
| 108 }, # end 'target_defaults' | 117 }, # end 'target_defaults' |
| 109 } | 118 } |
| 110 # Local Variables: | 119 # Local Variables: |
| 111 # tab-width:2 | 120 # tab-width:2 |
| 112 # indent-tabs-mode:nil | 121 # indent-tabs-mode:nil |
| 113 # End: | 122 # End: |
| 114 # vim: set expandtab tabstop=2 shiftwidth=2: | 123 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |