2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2013-06-28 21:32:00 +00:00
|
|
|
# Gyp for utils.
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'utils',
|
2012-10-10 19:45:51 +00:00
|
|
|
'product_name': 'skia_utils',
|
2011-05-31 13:50:51 +00:00
|
|
|
'type': 'static_library',
|
2012-10-10 19:45:51 +00:00
|
|
|
'standalone_static_library': 1,
|
2013-07-22 14:39:45 +00:00
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:*',
|
2014-08-05 14:37:26 +00:00
|
|
|
'etc1.gyp:libetc1',
|
2013-07-22 14:39:45 +00:00
|
|
|
],
|
2014-06-04 17:37:06 +00:00
|
|
|
'includes': [
|
|
|
|
'utils.gypi',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'include_dirs': [
|
2012-07-18 17:54:45 +00:00
|
|
|
'../include/effects',
|
2015-08-20 19:30:20 +00:00
|
|
|
'../include/gpu',
|
2013-04-23 18:06:23 +00:00
|
|
|
'../include/images',
|
2013-07-01 17:50:29 +00:00
|
|
|
'../include/pathops',
|
2012-07-18 17:54:45 +00:00
|
|
|
'../include/pipe',
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils',
|
2011-06-02 19:52:14 +00:00
|
|
|
'../include/utils/mac',
|
2011-06-01 20:55:45 +00:00
|
|
|
'../include/utils/unix',
|
2011-06-23 21:43:52 +00:00
|
|
|
'../include/utils/win',
|
2013-01-24 14:38:23 +00:00
|
|
|
'../src/core',
|
2015-10-09 20:36:42 +00:00
|
|
|
'../src/gpu',
|
2015-06-10 15:49:28 +00:00
|
|
|
'../src/image',
|
2014-07-14 19:00:04 +00:00
|
|
|
'../src/opts',
|
2012-08-16 16:13:40 +00:00
|
|
|
'../src/utils',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2014-06-04 17:37:06 +00:00
|
|
|
'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-06-23 21:43:52 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/AGL.framework',
|
|
|
|
],
|
|
|
|
},
|
2012-09-26 13:02:37 +00:00
|
|
|
}],
|
|
|
|
[ 'skia_os in ["mac", "ios"]', {
|
2011-06-24 13:58:17 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/utils/mac',
|
|
|
|
],
|
|
|
|
},
|
2011-07-01 20:20:07 +00:00
|
|
|
},{ #else if 'skia_os != "mac"'
|
2011-06-23 21:43:52 +00:00
|
|
|
'include_dirs!': [
|
|
|
|
'../include/utils/mac',
|
|
|
|
],
|
2011-06-01 16:15:43 +00:00
|
|
|
'sources!': [
|
|
|
|
'../include/utils/mac/SkCGUtils.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/mac/SkCreateCGImageRef.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2013-06-11 15:52:19 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
|
|
|
|
},{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
|
2011-06-23 21:43:52 +00:00
|
|
|
'include_dirs!': [
|
|
|
|
'../include/utils/unix',
|
|
|
|
],
|
2011-06-01 16:15:43 +00:00
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-06-23 21:43:52 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/utils/win',
|
2011-06-03 17:21:21 +00:00
|
|
|
],
|
|
|
|
},
|
2012-05-14 14:09:24 +00:00
|
|
|
'sources!': [
|
|
|
|
'../src/utils/SkThreadUtils_pthread.cpp',
|
|
|
|
'../src/utils/SkThreadUtils_pthread.h',
|
|
|
|
],
|
2011-07-01 20:20:07 +00:00
|
|
|
},{ #else if 'skia_os != "win"'
|
2011-06-23 21:43:52 +00:00
|
|
|
'include_dirs!': [
|
|
|
|
'../include/utils/win',
|
|
|
|
],
|
2011-12-01 16:34:28 +00:00
|
|
|
'sources/': [ ['exclude', '_win.(h|cpp)$'],],
|
2011-06-01 16:15:43 +00:00
|
|
|
'sources!': [
|
2011-06-23 21:43:52 +00:00
|
|
|
'../include/utils/win/SkAutoCoInitialize.h',
|
2011-10-10 13:19:10 +00:00
|
|
|
'../include/utils/win/SkHRESULT.h',
|
2011-06-23 21:43:52 +00:00
|
|
|
'../include/utils/win/SkIStream.h',
|
|
|
|
'../include/utils/win/SkTScopedComPtr.h',
|
|
|
|
'../src/utils/win/SkAutoCoInitialize.cpp',
|
2014-03-21 22:48:32 +00:00
|
|
|
'../src/utils/win/SkDWrite.h',
|
|
|
|
'../src/utils/win/SkDWrite.cpp',
|
2012-08-16 16:13:40 +00:00
|
|
|
'../src/utils/win/SkDWriteFontFileStream.cpp',
|
|
|
|
'../src/utils/win/SkDWriteFontFileStream.h',
|
|
|
|
'../src/utils/win/SkDWriteGeometrySink.cpp',
|
|
|
|
'../src/utils/win/SkDWriteGeometrySink.h',
|
2011-10-10 13:19:10 +00:00
|
|
|
'../src/utils/win/SkHRESULT.cpp',
|
2011-06-23 21:43:52 +00:00
|
|
|
'../src/utils/win/SkIStream.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/utils',
|
2014-02-28 20:31:31 +00:00
|
|
|
'../src/utils',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2015-03-23 19:51:20 +00:00
|
|
|
{
|
|
|
|
'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',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../src/utils/android',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
}
|