1 # Copyright 2011 The Android Open Source Project
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 # This file is automatically included by gyp_skia when building any target.
10 'common_variables.gypi',
16 'SK_GAMMA_APPLY_TO_A8',
17 'SK_SCALAR_TO_FLOAT_EXCLUDED', # temporary to allow Chrome to call SkFloatToScalar
20 # Validate the 'skia_os' setting against 'OS', because only certain
21 # combinations work. You should only override 'skia_os' for certain
22 # situations, like building for iOS on a Mac.
25 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \
26 (skia_os == "nacl" and OS == "linux") or \
27 (skia_os == "chromeos" and OS == "linux"))', {
28 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))',
30 [ 'skia_mesa and skia_os not in ["mac", "linux"]', {
31 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)',
33 [ 'skia_angle and not skia_os == "win"', {
34 'error': '<!(skia_angle=1 only supported with skia_os="win".)',
36 [ 'skia_arch_width != 32 and skia_arch_width != 64', {
37 'error': '<!(skia_arch_width can only be 32 or 64 bits not <(skia_arch_width) bits)',
39 [ 'skia_os == "nacl" and OS != "linux"', {
40 'error': '<!(Skia NaCl build only currently supported on Linux.)',
42 [ 'skia_os == "chromeos" and OS != "linux"', {
43 'error': '<!(Skia ChromeOS build is only supported on Linux.)',
48 'common_conditions.gypi',
51 [ 'skia_scalar == "float"',
57 }, { # else, skia_scalar != "float"
60 'SK_CAN_USE_FLOAT', # we can still use floats along the way
68 'direct_dependent_settings': {
78 'direct_dependent_settings': {
84 [ 'skia_win_debuggers_path and skia_os == "win"',
104 'Release_Developer': {
105 'inherit_from': ['Release'],
111 }, # end 'target_defaults'