epoger@google.com | fd03db0 | 2011-07-28 14:24:55 +0000 | [diff] [blame] | 1 | # Copyright 2011 The Android Open Source Project |
senorblanco@chromium.org | afac888 | 2011-04-11 15:59:47 +0000 | [diff] [blame] | 2 | # |
epoger@google.com | fd03db0 | 2011-07-28 14:24:55 +0000 | [diff] [blame] | 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
senorblanco@chromium.org | afac888 | 2011-04-11 15:59:47 +0000 | [diff] [blame] | 5 | { |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 6 | 'includes': [ |
| 7 | 'common_variables.gypi', |
| 8 | ], |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 9 | 'target_defaults': { |
| 10 | |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 11 | # 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.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 14 | 'variables': { |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 15 | '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.com | 373a663 | 2011-10-19 20:43:20 +0000 | [diff] [blame] | 18 | ['skia_mesa and skia_os not in ["mac", "linux"]', |
| 19 | {'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)'}], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 20 | ], |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 21 | }, |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 22 | '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.com | 373a663 | 2011-10-19 20:43:20 +0000 | [diff] [blame] | 39 | [ 'skia_mesa', { |
| 40 | 'defines': [ |
| 41 | 'SK_MESA', |
| 42 | ], |
| 43 | 'direct_dependent_settings': { |
| 44 | 'defines': [ |
| 45 | 'SK_MESA', |
| 46 | ], |
| 47 | }, |
| 48 | }], |
seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame] | 49 | ], |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 50 | '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.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 64 | }, # end 'target_defaults' |
senorblanco@chromium.org | afac888 | 2011-04-11 15:59:47 +0000 | [diff] [blame] | 65 | } |
| 66 | # Local Variables: |
| 67 | # tab-width:2 |
| 68 | # indent-tabs-mode:nil |
| 69 | # End: |
| 70 | # vim: set expandtab tabstop=2 shiftwidth=2: |