blob: 30424de9fd8b452b66d6a838af3f0ea83c4adc57 [file] [log] [blame]
epoger@google.comfd03db02011-07-28 14:24:55 +00001# Copyright 2011 The Android Open Source Project
senorblanco@chromium.orgafac8882011-04-11 15:59:47 +00002#
epoger@google.comfd03db02011-07-28 14:24:55 +00003# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
senorblanco@chromium.orgafac8882011-04-11 15:59:47 +00005{
seanpaul@google.com1134f982011-09-15 14:24:33 +00006 'includes': [
7 'common_variables.gypi',
8 ],
epoger@google.com5351b372011-07-01 17:16:26 +00009 'target_defaults': {
10
epoger@google.com8846cb22011-07-01 20:20:07 +000011 # Validate the 'skia_os' setting against 'OS', because only certain
12 # combinations work. You should only override 'skia_os' for certain
13 # situations, like building for iOS on a Mac.
epoger@google.com5351b372011-07-01 17:16:26 +000014 'variables': {
epoger@google.com8846cb22011-07-01 20:20:07 +000015 'conditions': [
16 ['skia_os != OS and not (skia_os == "ios" and OS == "mac")',
17 {'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))'}],
bsalomon@google.com373a6632011-10-19 20:43:20 +000018 ['skia_mesa and skia_os not in ["mac", "linux"]',
19 {'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)'}],
epoger@google.com8846cb22011-07-01 20:20:07 +000020 ],
epoger@google.com5351b372011-07-01 17:16:26 +000021 },
seanpaul@google.com1134f982011-09-15 14:24:33 +000022 'includes': [
23 'common_conditions.gypi'
24 ],
25 'conditions': [
26 [ 'skia_scalar == "float"',
27 {
28 'defines': [
29 'SK_SCALAR_IS_FLOAT',
30 'SK_CAN_USE_FLOAT',
31 ],
32 }, { # else, skia_scalar != "float"
33 'defines': [
34 'SK_SCALAR_IS_FIXED',
35 'SK_CAN_USE_FLOAT', # we can still use floats along the way
36 ],
37 }
38 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +000039 [ 'skia_mesa', {
40 'defines': [
41 'SK_MESA',
42 ],
43 'direct_dependent_settings': {
44 'defines': [
45 'SK_MESA',
46 ],
47 },
48 }],
seanpaul@google.com1134f982011-09-15 14:24:33 +000049 ],
epoger@google.com5351b372011-07-01 17:16:26 +000050 'configurations': {
51 'Debug': {
52 'defines': [
53 'SK_DEBUG',
54 'GR_DEBUG=1',
55 ],
56 },
57 'Release': {
58 'defines': [
59 'SK_RELEASE',
60 'GR_RELEASE=1',
61 ],
62 },
63 },
epoger@google.com5351b372011-07-01 17:16:26 +000064 }, # end 'target_defaults'
senorblanco@chromium.orgafac8882011-04-11 15:59:47 +000065}
66# Local Variables:
67# tab-width:2
68# indent-tabs-mode:nil
69# End:
70# vim: set expandtab tabstop=2 shiftwidth=2: