skia2/gyp/common.gypi
reed 28d5bdd97e Revert of Repurpose Release_Developer BUILDTYPE and remove SK_DEVELOPER. (patchset #2 id:20001 of https://codereview.chromium.org/1927583002/ )
Reason for revert:
still blocking DEPS roll

Original issue's description:
> Repurpose Release_Developer BUILDTYPE and remove SK_DEVELOPER.
>
> The Release_Developer build type is now used to build Skia with
> release level optimizations but still enable SK_DEBUG. This in turn
> means that SkASSERTS and SkRTConf are available in this mode.
>
> Further we can then remove SK_DEVELOPER as a define as it is true
> iff SK_DEBUG is true.
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1927583002
> DOCS_PREVIEW= https://skia.org/?cl=1927583002
>
> Committed: https://skia.googlesource.com/skia/+/48d6f88479e72efaf9b9d8f9c0769acb1ba773db

TBR=bungeman@gmail.com,bungeman@google.com,benjaminwagner@google.com,djsollen@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review-Url: https://codereview.chromium.org/1918253006
2016-04-28 08:12:55 -07:00

111 lines
3.1 KiB
Python

# Copyright 2011 The Android Open Source Project
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This file is automatically included by gyp_skia when building any target.
{
'includes': [
'common_variables.gypi',
],
'target_defaults': {
'defines': [
'SK_INTERNAL',
'SK_GAMMA_SRGB',
'SK_GAMMA_APPLY_TO_A8',
'QT_NO_KEYWORDS',
# The discardable resource cache is tested via a special bot. This is
# disabled here so we test the non-discardable use case.
# 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE',
],
# Validate the 'skia_os' setting against 'OS', because only certain
# combinations work. You should only override 'skia_os' for certain
# situations, like building for iOS on a Mac.
'variables': {
'conditions': [
[ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \
(skia_os == "chromeos" and OS == "linux"))', {
'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))',
}],
[ 'skia_mesa and skia_os not in ["mac", "linux"]', {
'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)',
}],
[ 'skia_angle and not (skia_os == "win" or skia_os == "linux" or skia_os == "mac")', {
'error': '<!(skia_angle=1 only supported with skia_os="win" or skia_os="linux" or skia_os="mac".)',
}],
[ 'skia_os == "chromeos" and OS != "linux"', {
'error': '<!(Skia ChromeOS build is only supported on Linux.)',
}],
],
},
'includes': [
'common_conditions.gypi',
],
'conditions': [
[ 'skia_mesa', {
'defines': [
'SK_MESA',
],
'direct_dependent_settings': {
'defines': [
'SK_MESA',
],
},
}],
[ 'skia_angle', {
'defines': [
'SK_ANGLE',
],
'direct_dependent_settings': {
'defines': [
'SK_ANGLE',
],
},
}],
[ 'skia_vulkan', {
'defines': [
'SK_VULKAN',
],
'direct_dependent_settings': {
'defines': [
'SK_VULKAN',
],
},
}],
[ 'skia_command_buffer', {
'defines': [
'SK_COMMAND_BUFFER',
],
'direct_dependent_settings': {
'defines': [
'SK_COMMAND_BUFFER',
],
},
}],
[ 'skia_win_debuggers_path and skia_os == "win"',
{
'defines': [
'SK_USE_CDB',
],
},
],
[ 'skia_android_framework==0', {
# These defines are not used for skia_android_framework, where we build
# one makefile and allow someone to add SK_DEBUG etc for their own
# debugging purposes.
'configurations': {
'Debug': { 'defines': [ 'SK_DEVELOPER=1' ] },
'Release': { 'defines': [ 'NDEBUG' ] },
'Release_Developer': {
'inherit_from': ['Release'],
'defines': [ 'SK_DEVELOPER=1' ],
},
},
}],
],
}, # end 'target_defaults'
}