blob: 4e3f6d45e519421d4ba17dc6344593aa30ca2431 [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.com0bba6bd2012-12-07 15:12:01 +00008 'dependencies': [
9 'cityhash',
10 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000011 'include_dirs': [
borenet@google.comefb1d772012-10-10 19:45:51 +000012 '../include/config',
13 '../include/core',
junov@chromium.org77eec242012-07-18 17:54:45 +000014 '../include/effects',
15 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000016 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000017 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000018 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000019 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000020 '../include/xml',
bungeman@google.come8f05922012-08-16 16:13:40 +000021 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000022 ],
23 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000024 # Classes for a threadpool.
25 '../include/utils/SkCondVar.h',
26 '../include/utils/SkCountdown.h',
27 '../include/utils/SkRunnable.h',
28 '../include/utils/SkThreadPool.h',
29 '../src/utils/SkCondVar.cpp',
30 '../src/utils/SkCountdown.cpp',
31 '../src/utils/SkThreadPool.cpp',
32
epoger@google.comae85aea2011-05-31 13:50:51 +000033 '../include/utils/SkBoundaryPatch.h',
34 '../include/utils/SkCamera.h',
35 '../include/utils/SkCubicInterval.h',
36 '../include/utils/SkCullPoints.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',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000052 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000053
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000054 '../src/utils/SkBase64.cpp',
55 '../src/utils/SkBase64.h',
epoger@google.com31114c62012-12-12 17:22:23 +000056 '../src/utils/SkBitmapChecksummer.cpp',
57 '../src/utils/SkBitmapChecksummer.h',
58 '../src/utils/SkBitmapTransformer.cpp',
59 '../src/utils/SkBitmapTransformer.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.com7346df52012-12-07 19:06:11 +000064 '../src/utils/SkCityHash.cpp',
65 '../src/utils/SkCityHash.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000066 '../src/utils/SkCubicInterval.cpp',
67 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000068 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000069 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000070 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000071 '../src/utils/SkInterpolator.cpp',
72 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000073 '../src/utils/SkMatrix44.cpp',
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.com55487522012-05-14 14:09:24 +000084 '../src/utils/SkThreadUtils.h',
85 '../src/utils/SkThreadUtils_pthread.cpp',
86 '../src/utils/SkThreadUtils_pthread.h',
87 '../src/utils/SkThreadUtils_pthread_linux.cpp',
88 '../src/utils/SkThreadUtils_pthread_mach.cpp',
89 '../src/utils/SkThreadUtils_pthread_other.cpp',
90 '../src/utils/SkThreadUtils_win.cpp',
91 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000092 '../src/utils/SkUnitMappers.cpp',
93
bungeman@google.com9df621d2011-06-23 21:43:52 +000094 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000095 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000096 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +000097
bungeman@google.com9df621d2011-06-23 21:43:52 +000098 #windows
99 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000100 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000101 '../include/utils/win/SkIStream.h',
102 '../include/utils/win/SkTScopedComPtr.h',
103 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000104 '../src/utils/win/SkDWriteFontFileStream.cpp',
105 '../src/utils/win/SkDWriteFontFileStream.h',
106 '../src/utils/win/SkDWriteGeometrySink.cpp',
107 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000108 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000109 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000110 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000111 ],
112 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000113 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000114 ],
115 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000116 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000117 'link_settings': {
118 'libraries': [
119 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
120 ],
121 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000122 }],
123 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000124 'direct_dependent_settings': {
125 'include_dirs': [
126 '../include/utils/mac',
127 ],
128 },
bungeman@google.com55487522012-05-14 14:09:24 +0000129 'sources!': [
130 '../src/utils/SkThreadUtils_pthread_other.cpp',
131 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000132 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000133 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000134 '../include/utils/mac',
135 ],
136 'sources!': [
137 '../include/utils/mac/SkCGUtils.h',
138 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000139 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000140 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000141 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000142 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
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 not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000147 'include_dirs!': [
148 '../include/utils/unix',
149 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000150 'sources!': [
151 '../src/utils/SkThreadUtils_pthread_linux.cpp',
152 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000153 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000154 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000155 'direct_dependent_settings': {
156 'include_dirs': [
157 '../include/utils/win',
158 ],
159 },
bungeman@google.com55487522012-05-14 14:09:24 +0000160 'sources!': [
161 '../src/utils/SkThreadUtils_pthread.cpp',
162 '../src/utils/SkThreadUtils_pthread.h',
163 '../src/utils/SkThreadUtils_pthread_other.cpp',
164 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000165 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000166 'include_dirs!': [
167 '../include/utils/win',
168 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000169 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000170 'sources!': [
171 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000172 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000173 '../include/utils/win/SkIStream.h',
174 '../include/utils/win/SkTScopedComPtr.h',
175 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000176 '../src/utils/win/SkDWriteFontFileStream.cpp',
177 '../src/utils/win/SkDWriteFontFileStream.h',
178 '../src/utils/win/SkDWriteGeometrySink.cpp',
179 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000180 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000181 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000182 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000183 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000184 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000185 'sources': [
186 '../src/utils/SkThreadUtils_pthread_other.cpp',
187 ],
188 'sources!': [
189 '../src/utils/SkThreadUtils_pthread_linux.cpp',
190 ],
191 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000192 [ 'skia_os == "android"', {
193 'sources': [
194 '../src/utils/android/ashmem.c',
195 ],
196 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000197 ],
198 'direct_dependent_settings': {
199 'include_dirs': [
200 '../include/utils',
201 ],
202 },
203 },
epoger@google.com0bba6bd2012-12-07 15:12:01 +0000204 {
205 'target_name': 'cityhash',
206 'type': 'static_library',
207 'standalone_static_library': 1,
208 'include_dirs': [
209 '../include/config',
210 '../include/core',
211 '../src/utils/cityhash',
212 '../third_party/externals/cityhash/src',
213 ],
214 'sources': [
215 '../third_party/externals/cityhash/src/city.cc',
216 ],
217 'direct_dependent_settings': {
218 'include_dirs': [
219 '../third_party/externals/cityhash/src',
220 ],
221 },
222 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000223 ],
224}
225
226# Local Variables:
227# tab-width:2
228# indent-tabs-mode:nil
229# End:
230# vim: set expandtab tabstop=2 shiftwidth=2: