| 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))'}], |
| 18 | ], |
| epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 19 | }, |
| seanpaul@google.com | 1134f98 | 2011-09-15 14:24:33 +0000 | [diff] [blame^] | 20 | '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.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 38 | '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.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 52 | }, # end 'target_defaults' |
| senorblanco@chromium.org | afac888 | 2011-04-11 15:59:47 +0000 | [diff] [blame] | 53 | } |
| 54 | # Local Variables: |
| 55 | # tab-width:2 |
| 56 | # indent-tabs-mode:nil |
| 57 | # End: |
| 58 | # vim: set expandtab tabstop=2 shiftwidth=2: |