blob: 51d68e877800da793b7fd0bd1f370df34573bbaf [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))'}],
18 ],
epoger@google.com5351b372011-07-01 17:16:26 +000019 },
seanpaul@google.com1134f982011-09-15 14:24:33 +000020 'includes': [
21 'common_conditions.gypi'
22 ],
23 'conditions': [
24 [ 'skia_scalar == "float"',
25 {
26 'defines': [
27 'SK_SCALAR_IS_FLOAT',
28 'SK_CAN_USE_FLOAT',
29 ],
30 }, { # else, skia_scalar != "float"
31 'defines': [
32 'SK_SCALAR_IS_FIXED',
33 'SK_CAN_USE_FLOAT', # we can still use floats along the way
34 ],
35 }
36 ],
37 ],
epoger@google.com5351b372011-07-01 17:16:26 +000038 'configurations': {
39 'Debug': {
40 'defines': [
41 'SK_DEBUG',
42 'GR_DEBUG=1',
43 ],
44 },
45 'Release': {
46 'defines': [
47 'SK_RELEASE',
48 'GR_RELEASE=1',
49 ],
50 },
51 },
epoger@google.com5351b372011-07-01 17:16:26 +000052 }, # end 'target_defaults'
senorblanco@chromium.orgafac8882011-04-11 15:59:47 +000053}
54# Local Variables:
55# tab-width:2
56# indent-tabs-mode:nil
57# End:
58# vim: set expandtab tabstop=2 shiftwidth=2: