blob: ef2a0d84234d0e1b4e5d082880fd049f476d0ade [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
epoger@google.comae85aea2011-05-31 13:50:51 +00002 'targets': [
3 {
4 'target_name': 'utils',
borenet@google.comefb1d772012-10-10 19:45:51 +00005 'product_name': 'skia_utils',
epoger@google.comae85aea2011-05-31 13:50:51 +00006 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00007 'standalone_static_library': 1,
epoger@google.comae85aea2011-05-31 13:50:51 +00008 'include_dirs': [
borenet@google.comefb1d772012-10-10 19:45:51 +00009 '../include/config',
10 '../include/core',
junov@chromium.org77eec242012-07-18 17:54:45 +000011 '../include/effects',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000012 '../include/images',
junov@chromium.org77eec242012-07-18 17:54:45 +000013 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000014 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000015 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000016 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000017 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000018 '../include/xml',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000019 '../src/core',
bungeman@google.come8f05922012-08-16 16:13:40 +000020 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000021 ],
22 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000023 # Classes for a threadpool.
24 '../include/utils/SkCondVar.h',
25 '../include/utils/SkCountdown.h',
26 '../include/utils/SkRunnable.h',
27 '../include/utils/SkThreadPool.h',
28 '../src/utils/SkCondVar.cpp',
29 '../src/utils/SkCountdown.cpp',
30 '../src/utils/SkThreadPool.cpp',
31
epoger@google.comae85aea2011-05-31 13:50:51 +000032 '../include/utils/SkBoundaryPatch.h',
33 '../include/utils/SkCamera.h',
34 '../include/utils/SkCubicInterval.h',
35 '../include/utils/SkCullPoints.h',
humper@google.com5d0a7692013-02-14 18:57:59 +000036 '../include/utils/SkDebugUtils.h',
junov@google.com4370aed2012-01-18 16:21:08 +000037 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 '../include/utils/SkInterpolator.h',
40 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000041 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../include/utils/SkMeshUtils.h',
43 '../include/utils/SkNinePatch.h',
44 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000045 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../include/utils/SkParse.h',
47 '../include/utils/SkParsePaint.h',
48 '../include/utils/SkParsePath.h',
djsollen@google.comfdabcb52012-12-05 06:15:42 +000049 '../include/utils/SkPictureUtils.h',
bsalomon@google.com3bc72002013-01-25 17:49:03 +000050 '../include/utils/SkRandom.h',
humper@google.com7af56be2013-01-14 18:49:19 +000051 '../include/utils/SkRTConf.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000054 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000055
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000056 '../src/utils/SkBase64.cpp',
57 '../src/utils/SkBase64.h',
epoger@google.com908f5832013-04-12 02:23:55 +000058 '../src/utils/SkBitmapHasher.cpp',
59 '../src/utils/SkBitmapHasher.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000060 '../src/utils/SkBitSet.cpp',
61 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000062 '../src/utils/SkBoundaryPatch.cpp',
63 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/utils/SkCubicInterval.cpp',
65 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000066 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000067 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000068 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000069 '../src/utils/SkInterpolator.cpp',
70 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000071 '../src/utils/SkMatrix44.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000072 '../src/utils/SkMD5.cpp',
73 '../src/utils/SkMD5.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000074 '../src/utils/SkMeshUtils.cpp',
75 '../src/utils/SkNinePatch.cpp',
76 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000077 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000078 '../src/utils/SkOSFile.cpp',
79 '../src/utils/SkParse.cpp',
80 '../src/utils/SkParseColor.cpp',
81 '../src/utils/SkParsePath.cpp',
reed@google.comfe7b1ed2012-11-29 21:00:39 +000082 '../src/utils/SkPictureUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000083 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000084 '../src/utils/SkSHA1.cpp',
85 '../src/utils/SkSHA1.h',
humper@google.com7af56be2013-01-14 18:49:19 +000086 '../src/utils/SkRTConf.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000087 '../src/utils/SkThreadUtils.h',
88 '../src/utils/SkThreadUtils_pthread.cpp',
89 '../src/utils/SkThreadUtils_pthread.h',
90 '../src/utils/SkThreadUtils_pthread_linux.cpp',
91 '../src/utils/SkThreadUtils_pthread_mach.cpp',
92 '../src/utils/SkThreadUtils_pthread_other.cpp',
93 '../src/utils/SkThreadUtils_win.cpp',
94 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000095 '../src/utils/SkUnitMappers.cpp',
96
bungeman@google.com9df621d2011-06-23 21:43:52 +000097 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000098 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000099 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000100
bungeman@google.com9df621d2011-06-23 21:43:52 +0000101 #windows
102 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000103 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000104 '../include/utils/win/SkIStream.h',
105 '../include/utils/win/SkTScopedComPtr.h',
106 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000107 '../src/utils/win/SkDWriteFontFileStream.cpp',
108 '../src/utils/win/SkDWriteFontFileStream.h',
109 '../src/utils/win/SkDWriteGeometrySink.cpp',
110 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000111 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000112 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000113 '../src/utils/win/SkWGL_win.cpp',
skia.committer@gmail.com26da7f02013-06-01 07:01:39 +0000114
reed@google.com7edec142013-05-31 20:17:57 +0000115 #testing
116 '../src/fonts/SkGScalerContext.cpp',
117 '../src/fonts/SkGScalerContext.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000118 ],
119 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000120 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000121 ],
122 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000123 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000124 'link_settings': {
125 'libraries': [
126 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
127 ],
128 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000129 }],
130 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000131 'direct_dependent_settings': {
132 'include_dirs': [
133 '../include/utils/mac',
134 ],
135 },
bungeman@google.com55487522012-05-14 14:09:24 +0000136 'sources!': [
137 '../src/utils/SkThreadUtils_pthread_other.cpp',
138 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000139 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000140 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000141 '../include/utils/mac',
142 ],
143 'sources!': [
144 '../include/utils/mac/SkCGUtils.h',
145 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000146 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000147 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000148 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000149 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.com55487522012-05-14 14:09:24 +0000150 'sources!': [
151 '../src/utils/SkThreadUtils_pthread_other.cpp',
152 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000153 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000154 'include_dirs!': [
155 '../include/utils/unix',
156 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000157 'sources!': [
158 '../src/utils/SkThreadUtils_pthread_linux.cpp',
159 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000160 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000161 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000162 'direct_dependent_settings': {
163 'include_dirs': [
164 '../include/utils/win',
165 ],
166 },
bungeman@google.com55487522012-05-14 14:09:24 +0000167 'sources!': [
168 '../src/utils/SkThreadUtils_pthread.cpp',
169 '../src/utils/SkThreadUtils_pthread.h',
170 '../src/utils/SkThreadUtils_pthread_other.cpp',
171 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000172 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000173 'include_dirs!': [
174 '../include/utils/win',
175 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000176 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000177 'sources!': [
178 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000179 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000180 '../include/utils/win/SkIStream.h',
181 '../include/utils/win/SkTScopedComPtr.h',
182 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000183 '../src/utils/win/SkDWriteFontFileStream.cpp',
184 '../src/utils/win/SkDWriteFontFileStream.h',
185 '../src/utils/win/SkDWriteGeometrySink.cpp',
186 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000187 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000188 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000189 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000190 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000191 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000192 'sources': [
193 '../src/utils/SkThreadUtils_pthread_other.cpp',
194 ],
195 'sources!': [
196 '../src/utils/SkThreadUtils_pthread_linux.cpp',
197 ],
198 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000199 [ 'skia_os == "android"', {
200 'sources': [
djsollen@google.comefbe8e92013-02-07 18:58:35 +0000201 '../src/utils/android/ashmem.cpp',
djsollen@google.com276a2952012-11-19 19:34:23 +0000202 ],
203 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000204 ],
205 'direct_dependent_settings': {
206 'include_dirs': [
207 '../include/utils',
208 ],
209 },
210 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000211 ],
212}
213
214# Local Variables:
215# tab-width:2
216# indent-tabs-mode:nil
217# End:
218# vim: set expandtab tabstop=2 shiftwidth=2: