blob: 61cfd127b7c13a631bacc68b512a776857ee79cd [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',
12 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000013 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000014 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000015 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000016 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000017 '../include/xml',
bungeman@google.come8f05922012-08-16 16:13:40 +000018 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000019 ],
20 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000021 # Classes for a threadpool.
22 '../include/utils/SkCondVar.h',
23 '../include/utils/SkCountdown.h',
24 '../include/utils/SkRunnable.h',
25 '../include/utils/SkThreadPool.h',
26 '../src/utils/SkCondVar.cpp',
27 '../src/utils/SkCountdown.cpp',
28 '../src/utils/SkThreadPool.cpp',
29
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../include/utils/SkBoundaryPatch.h',
31 '../include/utils/SkCamera.h',
32 '../include/utils/SkCubicInterval.h',
33 '../include/utils/SkCullPoints.h',
junov@google.com4370aed2012-01-18 16:21:08 +000034 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000035 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000036 '../include/utils/SkInterpolator.h',
37 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000038 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 '../include/utils/SkMeshUtils.h',
40 '../include/utils/SkNinePatch.h',
41 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000042 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../include/utils/SkParse.h',
44 '../include/utils/SkParsePaint.h',
45 '../include/utils/SkParsePath.h',
46 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000048 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000049
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000050 '../src/utils/SkBase64.cpp',
51 '../src/utils/SkBase64.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000052 '../src/utils/SkBitSet.cpp',
53 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../src/utils/SkBoundaryPatch.cpp',
55 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000056 '../src/utils/SkCubicInterval.cpp',
57 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000058 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000059 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000060 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000061 '../src/utils/SkInterpolator.cpp',
62 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000063 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/utils/SkMeshUtils.cpp',
65 '../src/utils/SkNinePatch.cpp',
66 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000067 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000068 '../src/utils/SkOSFile.cpp',
69 '../src/utils/SkParse.cpp',
70 '../src/utils/SkParseColor.cpp',
71 '../src/utils/SkParsePath.cpp',
72 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000073 '../src/utils/SkThreadUtils.h',
74 '../src/utils/SkThreadUtils_pthread.cpp',
75 '../src/utils/SkThreadUtils_pthread.h',
76 '../src/utils/SkThreadUtils_pthread_linux.cpp',
77 '../src/utils/SkThreadUtils_pthread_mach.cpp',
78 '../src/utils/SkThreadUtils_pthread_other.cpp',
79 '../src/utils/SkThreadUtils_win.cpp',
80 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000081 '../src/utils/SkUnitMappers.cpp',
82
bungeman@google.com9df621d2011-06-23 21:43:52 +000083 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000084 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000085 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +000086
bungeman@google.com9df621d2011-06-23 21:43:52 +000087 #windows
88 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000089 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000090 '../include/utils/win/SkIStream.h',
91 '../include/utils/win/SkTScopedComPtr.h',
92 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000093 '../src/utils/win/SkDWriteFontFileStream.cpp',
94 '../src/utils/win/SkDWriteFontFileStream.h',
95 '../src/utils/win/SkDWriteGeometrySink.cpp',
96 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000097 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000098 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000099 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000100 ],
101 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000102 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000103 ],
104 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000105 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000106 'link_settings': {
107 'libraries': [
108 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
109 ],
110 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000111 }],
112 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000113 'direct_dependent_settings': {
114 'include_dirs': [
115 '../include/utils/mac',
116 ],
117 },
bungeman@google.com55487522012-05-14 14:09:24 +0000118 'sources!': [
119 '../src/utils/SkThreadUtils_pthread_other.cpp',
120 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000121 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000122 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000123 '../include/utils/mac',
124 ],
125 'sources!': [
126 '../include/utils/mac/SkCGUtils.h',
127 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000128 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000129 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000130 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000131 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000132 'link_settings': {
133 'libraries': [
134 '-lGL',
135 '-lGLU',
136 ],
137 },
bungeman@google.com55487522012-05-14 14:09:24 +0000138 'sources!': [
139 '../src/utils/SkThreadUtils_pthread_other.cpp',
140 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000141 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000142 'include_dirs!': [
143 '../include/utils/unix',
144 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000145 'sources!': [
146 '../src/utils/SkThreadUtils_pthread_linux.cpp',
147 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000148 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000149 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000150 'direct_dependent_settings': {
151 'include_dirs': [
152 '../include/utils/win',
153 ],
154 },
bungeman@google.com55487522012-05-14 14:09:24 +0000155 'sources!': [
156 '../src/utils/SkThreadUtils_pthread.cpp',
157 '../src/utils/SkThreadUtils_pthread.h',
158 '../src/utils/SkThreadUtils_pthread_other.cpp',
scroggo@google.com4177ef42012-10-31 15:52:16 +0000159
160 # SkThreadPool and related currently depend on pthread.
161 '../include/utils/SkCondVar.h',
162 '../include/utils/SkCountdown.h',
163 '../include/utils/SkRunnable.h',
164 '../include/utils/SkThreadPool.h',
165 '../src/utils/SkCondVar.cpp',
166 '../src/utils/SkCountdown.cpp',
167 '../src/utils/SkThreadPool.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000168 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000169 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000170 'include_dirs!': [
171 '../include/utils/win',
172 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000173 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000174 'sources!': [
175 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000176 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000177 '../include/utils/win/SkIStream.h',
178 '../include/utils/win/SkTScopedComPtr.h',
179 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000180 '../src/utils/win/SkDWriteFontFileStream.cpp',
181 '../src/utils/win/SkDWriteFontFileStream.h',
182 '../src/utils/win/SkDWriteGeometrySink.cpp',
183 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000184 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000185 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000186 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000187 }],
borenet@google.coma98eb912012-09-04 21:09:40 +0000188 [ 'skia_nacl == 1', {
189 'sources': [
190 '../src/utils/SkThreadUtils_pthread_other.cpp',
191 ],
192 'sources!': [
193 '../src/utils/SkThreadUtils_pthread_linux.cpp',
194 ],
195 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000196 ],
197 'direct_dependent_settings': {
198 'include_dirs': [
199 '../include/utils',
200 ],
201 },
202 },
203 ],
204}
205
206# Local Variables:
207# tab-width:2
208# indent-tabs-mode:nil
209# End:
210# vim: set expandtab tabstop=2 shiftwidth=2: