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:*',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'include_dirs': [
|
2012-07-18 17:54:45 +00:00
|
|
|
'../include/effects',
|
2013-04-23 18:06:23 +00:00
|
|
|
'../include/images',
|
2013-06-28 21:32:00 +00:00
|
|
|
'../include/lazy',
|
2013-07-01 17:50:29 +00:00
|
|
|
'../include/pathops',
|
2012-07-18 17:54:45 +00:00
|
|
|
'../include/pipe',
|
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',
|
2012-03-29 14:51:56 +00:00
|
|
|
'../include/xml',
|
2013-01-24 14:38:23 +00:00
|
|
|
'../src/core',
|
2012-08-16 16:13:40 +00:00
|
|
|
'../src/utils',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2012-10-31 15:52:16 +00:00
|
|
|
# Classes for a threadpool.
|
|
|
|
'../include/utils/SkCondVar.h',
|
|
|
|
'../include/utils/SkCountdown.h',
|
|
|
|
'../include/utils/SkRunnable.h',
|
|
|
|
'../include/utils/SkThreadPool.h',
|
|
|
|
'../src/utils/SkCondVar.cpp',
|
|
|
|
'../src/utils/SkCountdown.cpp',
|
|
|
|
'../src/utils/SkThreadPool.cpp',
|
|
|
|
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils/SkBoundaryPatch.h',
|
2013-09-26 21:35:39 +00:00
|
|
|
'../include/utils/SkFrontBufferedStream.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils/SkCamera.h',
|
2013-08-29 20:20:40 +00:00
|
|
|
'../include/utils/SkCanvasStateUtils.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils/SkCubicInterval.h',
|
|
|
|
'../include/utils/SkCullPoints.h',
|
2013-02-14 18:57:59 +00:00
|
|
|
'../include/utils/SkDebugUtils.h',
|
2012-01-18 16:21:08 +00:00
|
|
|
'../include/utils/SkDeferredCanvas.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils/SkDumpCanvas.h',
|
|
|
|
'../include/utils/SkInterpolator.h',
|
|
|
|
'../include/utils/SkLayer.h',
|
2011-06-13 14:58:44 +00:00
|
|
|
'../include/utils/SkMatrix44.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils/SkMeshUtils.h',
|
|
|
|
'../include/utils/SkNinePatch.h',
|
|
|
|
'../include/utils/SkNWayCanvas.h',
|
2012-06-11 15:39:15 +00:00
|
|
|
'../include/utils/SkNullCanvas.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils/SkParse.h',
|
|
|
|
'../include/utils/SkParsePaint.h',
|
|
|
|
'../include/utils/SkParsePath.h',
|
2012-12-05 06:15:42 +00:00
|
|
|
'../include/utils/SkPictureUtils.h',
|
2013-01-25 17:49:03 +00:00
|
|
|
'../include/utils/SkRandom.h',
|
2013-01-14 18:49:19 +00:00
|
|
|
'../include/utils/SkRTConf.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/utils/SkProxyCanvas.h',
|
|
|
|
'../include/utils/SkUnitMappers.h',
|
2011-12-01 16:34:28 +00:00
|
|
|
'../include/utils/SkWGL.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
|
2012-02-07 20:47:38 +00:00
|
|
|
'../src/utils/SkBase64.cpp',
|
|
|
|
'../src/utils/SkBase64.h',
|
2013-04-12 02:23:55 +00:00
|
|
|
'../src/utils/SkBitmapHasher.cpp',
|
|
|
|
'../src/utils/SkBitmapHasher.h',
|
2012-03-21 23:11:46 +00:00
|
|
|
'../src/utils/SkBitSet.cpp',
|
|
|
|
'../src/utils/SkBitSet.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkBoundaryPatch.cpp',
|
2013-09-26 21:35:39 +00:00
|
|
|
'../src/utils/SkFrontBufferedStream.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkCamera.cpp',
|
2013-09-04 17:16:00 +00:00
|
|
|
'../src/utils/SkCanvasStack.h',
|
|
|
|
'../src/utils/SkCanvasStack.cpp',
|
2013-08-29 20:20:40 +00:00
|
|
|
'../src/utils/SkCanvasStateUtils.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkCubicInterval.cpp',
|
|
|
|
'../src/utils/SkCullPoints.cpp',
|
2012-01-18 16:21:08 +00:00
|
|
|
'../src/utils/SkDeferredCanvas.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkDumpCanvas.cpp',
|
2012-08-16 16:13:40 +00:00
|
|
|
'../src/utils/SkFloatUtils.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkInterpolator.cpp',
|
|
|
|
'../src/utils/SkLayer.cpp',
|
2011-06-13 14:58:44 +00:00
|
|
|
'../src/utils/SkMatrix44.cpp',
|
2013-01-31 19:47:48 +00:00
|
|
|
'../src/utils/SkMD5.cpp',
|
|
|
|
'../src/utils/SkMD5.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkMeshUtils.cpp',
|
|
|
|
'../src/utils/SkNinePatch.cpp',
|
|
|
|
'../src/utils/SkNWayCanvas.cpp',
|
2012-06-11 15:39:15 +00:00
|
|
|
'../src/utils/SkNullCanvas.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkOSFile.cpp',
|
|
|
|
'../src/utils/SkParse.cpp',
|
|
|
|
'../src/utils/SkParseColor.cpp',
|
|
|
|
'../src/utils/SkParsePath.cpp',
|
2012-11-29 21:00:39 +00:00
|
|
|
'../src/utils/SkPictureUtils.cpp',
|
2013-07-01 17:50:29 +00:00
|
|
|
'../src/utils/SkPathUtils.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkProxyCanvas.cpp',
|
2013-01-31 19:47:48 +00:00
|
|
|
'../src/utils/SkSHA1.cpp',
|
|
|
|
'../src/utils/SkSHA1.h',
|
2013-01-14 18:49:19 +00:00
|
|
|
'../src/utils/SkRTConf.cpp',
|
2012-05-14 14:09:24 +00:00
|
|
|
'../src/utils/SkThreadUtils.h',
|
|
|
|
'../src/utils/SkThreadUtils_pthread.cpp',
|
|
|
|
'../src/utils/SkThreadUtils_pthread.h',
|
|
|
|
'../src/utils/SkThreadUtils_pthread_linux.cpp',
|
|
|
|
'../src/utils/SkThreadUtils_pthread_mach.cpp',
|
|
|
|
'../src/utils/SkThreadUtils_pthread_other.cpp',
|
|
|
|
'../src/utils/SkThreadUtils_win.cpp',
|
|
|
|
'../src/utils/SkThreadUtils_win.h',
|
2013-07-12 18:22:49 +00:00
|
|
|
'../src/utils/SkTFitsIn.h',
|
|
|
|
'../src/utils/SkTLogic.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/utils/SkUnitMappers.cpp',
|
|
|
|
|
2011-06-23 21:43:52 +00:00
|
|
|
#mac
|
2011-06-01 16:15:43 +00:00
|
|
|
'../include/utils/mac/SkCGUtils.h',
|
|
|
|
'../src/utils/mac/SkCreateCGImageRef.cpp',
|
2012-08-23 18:14:13 +00:00
|
|
|
|
2011-06-23 21:43:52 +00:00
|
|
|
#windows
|
|
|
|
'../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',
|
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-12-01 16:34:28 +00:00
|
|
|
'../src/utils/win/SkWGL_win.cpp',
|
2013-06-01 07:01:39 +00:00
|
|
|
|
2013-05-31 20:17:57 +00:00
|
|
|
#testing
|
|
|
|
'../src/fonts/SkGScalerContext.cpp',
|
|
|
|
'../src/fonts/SkGScalerContext.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources!': [
|
2011-06-01 16:15:43 +00:00
|
|
|
'../src/utils/SDL/SkOSWindow_SDL.cpp',
|
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',
|
|
|
|
],
|
|
|
|
},
|
2012-05-14 14:09:24 +00:00
|
|
|
'sources!': [
|
|
|
|
'../src/utils/SkThreadUtils_pthread_other.cpp',
|
|
|
|
],
|
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',
|
2012-05-14 14:09:24 +00:00
|
|
|
'../src/utils/SkThreadUtils_pthread_mach.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
}],
|
2013-06-11 15:52:19 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
|
2012-05-14 14:09:24 +00:00
|
|
|
'sources!': [
|
|
|
|
'../src/utils/SkThreadUtils_pthread_other.cpp',
|
|
|
|
],
|
2013-06-11 15:52:19 +00:00
|
|
|
},{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
|
2011-06-23 21:43:52 +00:00
|
|
|
'include_dirs!': [
|
|
|
|
'../include/utils/unix',
|
|
|
|
],
|
2012-05-14 14:09:24 +00:00
|
|
|
'sources!': [
|
|
|
|
'../src/utils/SkThreadUtils_pthread_linux.cpp',
|
|
|
|
],
|
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',
|
|
|
|
'../src/utils/SkThreadUtils_pthread_other.cpp',
|
|
|
|
],
|
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',
|
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
|
|
|
],
|
|
|
|
}],
|
2012-11-01 17:43:44 +00:00
|
|
|
[ 'skia_os == "nacl"', {
|
2012-09-04 21:09:40 +00:00
|
|
|
'sources': [
|
|
|
|
'../src/utils/SkThreadUtils_pthread_other.cpp',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../src/utils/SkThreadUtils_pthread_linux.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2012-11-19 19:34:23 +00:00
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'sources': [
|
2013-02-07 18:58:35 +00:00
|
|
|
'../src/utils/android/ashmem.cpp',
|
2012-11-19 19:34:23 +00:00
|
|
|
],
|
|
|
|
}],
|
2013-11-12 17:44:28 +00:00
|
|
|
['skia_run_pdfviewer_in_gm', {
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_NATIVE_PDF_RENDERER',
|
|
|
|
],
|
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/utils',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|