skia2/gyp/utils.gyp
msarett 8fd97eab1d Revert of Provides multiple implementations of Android's SkBitmapRegionDecoder (patchset #16 id:360001 of https://codereview.chromium.org/1288963002/ )
Reason for revert:
Breaking Android bots
Bad use of the utils folder

Original issue's description:
> Provides various implementations of Android's SkBitmapRegionDecoder.
>
> Implements testing in DM for these implementations.
>
> nanobench testing will follow after this.
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/76f755e6d54a32f9887ad254ce59a3a62f28bde4

TBR=scroggo@google.com,reed@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review URL: https://codereview.chromium.org/1322773004
2015-09-08 06:59:48 -07:00

140 lines
4.2 KiB
Python

# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Gyp for utils.
{
'targets': [
{
'target_name': 'utils',
'product_name': 'skia_utils',
'type': 'static_library',
'standalone_static_library': 1,
'dependencies': [
'core.gyp:*',
'etc1.gyp:libetc1',
],
'includes': [
'utils.gypi',
],
'include_dirs': [
'../include/effects',
'../include/gpu',
'../include/images',
'../include/pathops',
'../include/pipe',
'../include/private',
'../include/utils',
'../include/utils/mac',
'../include/utils/unix',
'../include/utils/win',
'../src/core',
'../src/image',
'../src/opts',
'../src/utils',
],
'sources': [
'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
],
'conditions': [
[ 'skia_os == "mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AGL.framework',
],
},
}],
[ 'skia_os in ["mac", "ios"]', {
'direct_dependent_settings': {
'include_dirs': [
'../include/utils/mac',
],
},
'sources!': [
'../src/utils/SkThreadUtils_pthread_other.cpp',
],
},{ #else if 'skia_os != "mac"'
'include_dirs!': [
'../include/utils/mac',
],
'sources!': [
'../include/utils/mac/SkCGUtils.h',
'../src/utils/mac/SkCreateCGImageRef.cpp',
'../src/utils/SkThreadUtils_pthread_mach.cpp',
],
}],
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
'sources!': [
'../src/utils/SkThreadUtils_pthread_other.cpp',
],
},{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
'include_dirs!': [
'../include/utils/unix',
],
'sources!': [
'../src/utils/SkThreadUtils_pthread_linux.cpp',
],
}],
[ 'skia_os == "win"', {
'direct_dependent_settings': {
'include_dirs': [
'../include/utils/win',
],
},
'sources!': [
'../src/utils/SkThreadUtils_pthread.cpp',
'../src/utils/SkThreadUtils_pthread.h',
'../src/utils/SkThreadUtils_pthread_other.cpp',
],
},{ #else if 'skia_os != "win"'
'include_dirs!': [
'../include/utils/win',
],
'sources/': [ ['exclude', '_win.(h|cpp)$'],],
'sources!': [
'../include/utils/win/SkAutoCoInitialize.h',
'../include/utils/win/SkHRESULT.h',
'../include/utils/win/SkIStream.h',
'../include/utils/win/SkTScopedComPtr.h',
'../src/utils/win/SkAutoCoInitialize.cpp',
'../src/utils/win/SkDWrite.h',
'../src/utils/win/SkDWrite.cpp',
'../src/utils/win/SkDWriteFontFileStream.cpp',
'../src/utils/win/SkDWriteFontFileStream.h',
'../src/utils/win/SkDWriteGeometrySink.cpp',
'../src/utils/win/SkDWriteGeometrySink.h',
'../src/utils/win/SkHRESULT.cpp',
'../src/utils/win/SkIStream.cpp',
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
'../include/utils',
'../src/utils',
],
},
},
{
'target_name': 'android_utils',
'product_name': 'skia_android_utils',
'type': 'static_library',
'standalone_static_library': 1,
'dependencies': [
'core.gyp:*',
],
'sources': [
'../src/utils/android/SkAndroidSDKCanvas.h',
'../src/utils/android/SkAndroidSDKCanvas.cpp',
'../src/utils/android/SkHwuiRenderer.h',
'../src/utils/android/SkHwuiRenderer.cpp',
],
'direct_dependent_settings': {
'include_dirs': [
'../src/utils/android',
],
},
},
],
}