2011-07-28 18:24:55 +04:00
|
|
|
# Copyright 2011 The Android Open Source Project
|
2011-04-11 19:59:47 +04:00
|
|
|
#
|
2011-07-28 18:24:55 +04:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2012-03-16 17:52:49 +04:00
|
|
|
#
|
|
|
|
# This file is automatically included by gyp_skia when building any target.
|
|
|
|
|
2011-04-11 19:59:47 +04:00
|
|
|
{
|
2012-03-16 22:28:24 +04:00
|
|
|
'includes': [
|
|
|
|
'common_variables.gypi',
|
|
|
|
],
|
2012-03-16 17:52:49 +04:00
|
|
|
|
2011-07-01 21:16:26 +04:00
|
|
|
'target_defaults': {
|
|
|
|
|
2011-07-02 00:20:07 +04:00
|
|
|
# Validate the 'skia_os' setting against 'OS', because only certain
|
|
|
|
# combinations work. You should only override 'skia_os' for certain
|
|
|
|
# situations, like building for iOS on a Mac.
|
2011-07-01 21:16:26 +04:00
|
|
|
'variables': {
|
2011-07-02 00:20:07 +04:00
|
|
|
'conditions': [
|
|
|
|
['skia_os != OS and not (skia_os == "ios" and OS == "mac")',
|
|
|
|
{'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))'}],
|
2011-10-20 00:43:20 +04:00
|
|
|
['skia_mesa and skia_os not in ["mac", "linux"]',
|
|
|
|
{'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)'}],
|
2012-04-03 00:42:26 +04:00
|
|
|
['skia_angle and not skia_os == "win"',
|
|
|
|
{'error': '<!(skia_angle=1 only supported with skia_os="win".)'
|
|
|
|
}],
|
2012-06-28 20:19:03 +04:00
|
|
|
['skia_arch_width != 32 and skia_arch_width != 64',
|
2012-06-28 20:08:05 +04:00
|
|
|
{'error': '<!(skia_arch_width can only be 32 or 64 bits not <(skia_arch_width) bits)'
|
|
|
|
}],
|
2011-07-02 00:20:07 +04:00
|
|
|
],
|
2011-07-01 21:16:26 +04:00
|
|
|
},
|
2011-09-15 18:24:33 +04:00
|
|
|
'includes': [
|
2012-03-16 22:28:24 +04:00
|
|
|
'common_conditions.gypi',
|
2011-09-15 18:24:33 +04:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_scalar == "float"',
|
|
|
|
{
|
|
|
|
'defines': [
|
|
|
|
'SK_SCALAR_IS_FLOAT',
|
|
|
|
'SK_CAN_USE_FLOAT',
|
|
|
|
],
|
|
|
|
}, { # else, skia_scalar != "float"
|
|
|
|
'defines': [
|
|
|
|
'SK_SCALAR_IS_FIXED',
|
|
|
|
'SK_CAN_USE_FLOAT', # we can still use floats along the way
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
2011-10-20 00:43:20 +04:00
|
|
|
[ 'skia_mesa', {
|
|
|
|
'defines': [
|
|
|
|
'SK_MESA',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'defines': [
|
|
|
|
'SK_MESA',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2012-04-03 00:42:26 +04:00
|
|
|
[ 'skia_angle', {
|
|
|
|
'defines': [
|
|
|
|
'SK_ANGLE',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'defines': [
|
|
|
|
'SK_ANGLE',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2011-09-15 18:24:33 +04:00
|
|
|
],
|
2011-07-01 21:16:26 +04:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'defines': [
|
|
|
|
'SK_DEBUG',
|
2012-06-27 23:41:42 +04:00
|
|
|
'SK_ENABLE_INST_COUNT',
|
2011-07-01 21:16:26 +04:00
|
|
|
'GR_DEBUG=1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'Release': {
|
|
|
|
'defines': [
|
|
|
|
'SK_RELEASE',
|
|
|
|
'GR_RELEASE=1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}, # end 'target_defaults'
|
2011-04-11 19:59:47 +04:00
|
|
|
}
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|