blob: 68bf6b6b51de91042d13e68e31978848020b8f13 [file] [log] [blame]
scroggo@google.comf1754ec2013-06-28 21:32:00 +00001# Gyp for utils.
epoger@google.comae85aea2011-05-31 13:50:51 +00002{
epoger@google.comae85aea2011-05-31 13:50:51 +00003 'targets': [
4 {
5 'target_name': 'utils',
borenet@google.comefb1d772012-10-10 19:45:51 +00006 'product_name': 'skia_utils',
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00008 'standalone_static_library': 1,
bungeman@google.comb8f36552013-07-22 14:39:45 +00009 'dependencies': [
10 'core.gyp:*',
11 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000012 'include_dirs': [
junov@chromium.org77eec242012-07-18 17:54:45 +000013 '../include/effects',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000014 '../include/images',
scroggo@google.comf1754ec2013-06-28 21:32:00 +000015 '../include/lazy',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000016 '../include/pathops',
junov@chromium.org77eec242012-07-18 17:54:45 +000017 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000018 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000019 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000020 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000021 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000022 '../include/xml',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000023 '../src/core',
bungeman@google.come8f05922012-08-16 16:13:40 +000024 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000025 ],
26 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000027 # Classes for a threadpool.
28 '../include/utils/SkCondVar.h',
29 '../include/utils/SkCountdown.h',
30 '../include/utils/SkRunnable.h',
31 '../include/utils/SkThreadPool.h',
32 '../src/utils/SkCondVar.cpp',
33 '../src/utils/SkCountdown.cpp',
34 '../src/utils/SkThreadPool.cpp',
35
epoger@google.comae85aea2011-05-31 13:50:51 +000036 '../include/utils/SkBoundaryPatch.h',
37 '../include/utils/SkCamera.h',
38 '../include/utils/SkCubicInterval.h',
39 '../include/utils/SkCullPoints.h',
humper@google.com5d0a7692013-02-14 18:57:59 +000040 '../include/utils/SkDebugUtils.h',
junov@google.com4370aed2012-01-18 16:21:08 +000041 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../include/utils/SkInterpolator.h',
44 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000045 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../include/utils/SkMeshUtils.h',
47 '../include/utils/SkNinePatch.h',
48 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000049 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../include/utils/SkParse.h',
51 '../include/utils/SkParsePaint.h',
52 '../include/utils/SkParsePath.h',
djsollen@google.comfdabcb52012-12-05 06:15:42 +000053 '../include/utils/SkPictureUtils.h',
bsalomon@google.com3bc72002013-01-25 17:49:03 +000054 '../include/utils/SkRandom.h',
humper@google.com7af56be2013-01-14 18:49:19 +000055 '../include/utils/SkRTConf.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000056 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000057 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000058 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000059
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000060 '../src/utils/SkBase64.cpp',
61 '../src/utils/SkBase64.h',
epoger@google.com908f5832013-04-12 02:23:55 +000062 '../src/utils/SkBitmapHasher.cpp',
63 '../src/utils/SkBitmapHasher.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000064 '../src/utils/SkBitSet.cpp',
65 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000066 '../src/utils/SkBoundaryPatch.cpp',
67 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000068 '../src/utils/SkCubicInterval.cpp',
69 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000070 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000071 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000072 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000073 '../src/utils/SkInterpolator.cpp',
74 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000075 '../src/utils/SkMatrix44.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000076 '../src/utils/SkMD5.cpp',
77 '../src/utils/SkMD5.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000078 '../src/utils/SkMeshUtils.cpp',
79 '../src/utils/SkNinePatch.cpp',
80 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000081 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000082 '../src/utils/SkOSFile.cpp',
83 '../src/utils/SkParse.cpp',
84 '../src/utils/SkParseColor.cpp',
85 '../src/utils/SkParsePath.cpp',
reed@google.comfe7b1ed2012-11-29 21:00:39 +000086 '../src/utils/SkPictureUtils.cpp',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000087 '../src/utils/SkPathUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000089 '../src/utils/SkSHA1.cpp',
90 '../src/utils/SkSHA1.h',
humper@google.com7af56be2013-01-14 18:49:19 +000091 '../src/utils/SkRTConf.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000092 '../src/utils/SkThreadUtils.h',
93 '../src/utils/SkThreadUtils_pthread.cpp',
94 '../src/utils/SkThreadUtils_pthread.h',
95 '../src/utils/SkThreadUtils_pthread_linux.cpp',
96 '../src/utils/SkThreadUtils_pthread_mach.cpp',
97 '../src/utils/SkThreadUtils_pthread_other.cpp',
98 '../src/utils/SkThreadUtils_win.cpp',
99 '../src/utils/SkThreadUtils_win.h',
bungeman@google.comf5cc5b12013-07-12 18:22:49 +0000100 '../src/utils/SkTFitsIn.h',
101 '../src/utils/SkTLogic.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000102 '../src/utils/SkUnitMappers.cpp',
103
bungeman@google.com9df621d2011-06-23 21:43:52 +0000104 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000105 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000106 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000107
bungeman@google.com9df621d2011-06-23 21:43:52 +0000108 #windows
109 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000110 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000111 '../include/utils/win/SkIStream.h',
112 '../include/utils/win/SkTScopedComPtr.h',
113 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000114 '../src/utils/win/SkDWriteFontFileStream.cpp',
115 '../src/utils/win/SkDWriteFontFileStream.h',
116 '../src/utils/win/SkDWriteGeometrySink.cpp',
117 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000118 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000119 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000120 '../src/utils/win/SkWGL_win.cpp',
skia.committer@gmail.com26da7f02013-06-01 07:01:39 +0000121
reed@google.com7edec142013-05-31 20:17:57 +0000122 #testing
123 '../src/fonts/SkGScalerContext.cpp',
124 '../src/fonts/SkGScalerContext.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000125 ],
126 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000127 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000128 ],
129 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000130 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000131 'link_settings': {
132 'libraries': [
133 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
134 ],
135 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000136 }],
137 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000138 'direct_dependent_settings': {
139 'include_dirs': [
140 '../include/utils/mac',
141 ],
142 },
bungeman@google.com55487522012-05-14 14:09:24 +0000143 'sources!': [
144 '../src/utils/SkThreadUtils_pthread_other.cpp',
145 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000146 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000147 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000148 '../include/utils/mac',
149 ],
150 'sources!': [
151 '../include/utils/mac/SkCGUtils.h',
152 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000153 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000154 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000155 }],
borenet@google.com05d550e2013-06-11 15:52:19 +0000156 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bungeman@google.com55487522012-05-14 14:09:24 +0000157 'sources!': [
158 '../src/utils/SkThreadUtils_pthread_other.cpp',
159 ],
borenet@google.com05d550e2013-06-11 15:52:19 +0000160 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000161 'include_dirs!': [
162 '../include/utils/unix',
163 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000164 'sources!': [
165 '../src/utils/SkThreadUtils_pthread_linux.cpp',
166 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000167 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000168 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000169 'direct_dependent_settings': {
170 'include_dirs': [
171 '../include/utils/win',
172 ],
173 },
bungeman@google.com55487522012-05-14 14:09:24 +0000174 'sources!': [
175 '../src/utils/SkThreadUtils_pthread.cpp',
176 '../src/utils/SkThreadUtils_pthread.h',
177 '../src/utils/SkThreadUtils_pthread_other.cpp',
178 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000179 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000180 'include_dirs!': [
181 '../include/utils/win',
182 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000183 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000184 'sources!': [
185 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000186 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000187 '../include/utils/win/SkIStream.h',
188 '../include/utils/win/SkTScopedComPtr.h',
189 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000190 '../src/utils/win/SkDWriteFontFileStream.cpp',
191 '../src/utils/win/SkDWriteFontFileStream.h',
192 '../src/utils/win/SkDWriteGeometrySink.cpp',
193 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000194 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000195 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000196 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000197 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000198 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000199 'sources': [
200 '../src/utils/SkThreadUtils_pthread_other.cpp',
201 ],
202 'sources!': [
203 '../src/utils/SkThreadUtils_pthread_linux.cpp',
204 ],
205 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000206 [ 'skia_os == "android"', {
207 'sources': [
djsollen@google.comefbe8e92013-02-07 18:58:35 +0000208 '../src/utils/android/ashmem.cpp',
djsollen@google.com276a2952012-11-19 19:34:23 +0000209 ],
210 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000211 ],
212 'direct_dependent_settings': {
213 'include_dirs': [
214 '../include/utils',
215 ],
216 },
217 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000218 ],
219}
220
221# Local Variables:
222# tab-width:2
223# indent-tabs-mode:nil
224# End:
225# vim: set expandtab tabstop=2 shiftwidth=2: