373a6635b7
Review URL: http://codereview.appspot.com/5307045/ git-svn-id: http://skia.googlecode.com/svn/trunk@2499 2bbb7eff-a529-9590-31e7-b0007b416f81
71 lines
1.7 KiB
Python
71 lines
1.7 KiB
Python
# Copyright 2011 The Android Open Source Project
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
{
|
|
'includes': [
|
|
'common_variables.gypi',
|
|
],
|
|
'target_defaults': {
|
|
|
|
# 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.
|
|
'variables': {
|
|
'conditions': [
|
|
['skia_os != OS and not (skia_os == "ios" and OS == "mac")',
|
|
{'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))'}],
|
|
['skia_mesa and skia_os not in ["mac", "linux"]',
|
|
{'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)'}],
|
|
],
|
|
},
|
|
'includes': [
|
|
'common_conditions.gypi'
|
|
],
|
|
'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
|
|
],
|
|
}
|
|
],
|
|
[ 'skia_mesa', {
|
|
'defines': [
|
|
'SK_MESA',
|
|
],
|
|
'direct_dependent_settings': {
|
|
'defines': [
|
|
'SK_MESA',
|
|
],
|
|
},
|
|
}],
|
|
],
|
|
'configurations': {
|
|
'Debug': {
|
|
'defines': [
|
|
'SK_DEBUG',
|
|
'GR_DEBUG=1',
|
|
],
|
|
},
|
|
'Release': {
|
|
'defines': [
|
|
'SK_RELEASE',
|
|
'GR_RELEASE=1',
|
|
],
|
|
},
|
|
},
|
|
}, # end 'target_defaults'
|
|
}
|
|
# Local Variables:
|
|
# tab-width:2
|
|
# indent-tabs-mode:nil
|
|
# End:
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|