1 # Copyright 2011 The Android Open Source Project 2 # 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 { 6 'includes': [ 7 'common_variables.gypi', 8 ], 9 'target_defaults': { 10 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. 14 'variables': { 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 ['skia_mesa and skia_os not in ["mac", "linux"]', 19 {'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)'}], 20 ], 21 }, 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 ], 39 [ 'skia_mesa', { 40 'defines': [ 41 'SK_MESA', 42 ], 43 'direct_dependent_settings': { 44 'defines': [ 45 'SK_MESA', 46 ], 47 }, 48 }], 49 ], 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 }, 64 }, # end 'target_defaults' 65 } 66 # Local Variables: 67 # tab-width:2 68 # indent-tabs-mode:nil 69 # End: 70 # vim: set expandtab tabstop=2 shiftwidth=2: 71