blob: 1b51b18c10a95a9684029a4253084852e1b80572 [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,
epoger@google.comae85aea2011-05-31 13:50:51 +00009 'include_dirs': [
borenet@google.comefb1d772012-10-10 19:45:51 +000010 '../include/config',
11 '../include/core',
junov@chromium.org77eec242012-07-18 17:54:45 +000012 '../include/effects',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000013 '../include/images',
scroggo@google.comf1754ec2013-06-28 21:32:00 +000014 '../include/lazy',
junov@chromium.org77eec242012-07-18 17:54:45 +000015 '../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',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000021 '../src/core',
bungeman@google.come8f05922012-08-16 16:13:40 +000022 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 ],
24 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000025 # Classes for a threadpool.
26 '../include/utils/SkCondVar.h',
27 '../include/utils/SkCountdown.h',
28 '../include/utils/SkRunnable.h',
29 '../include/utils/SkThreadPool.h',
30 '../src/utils/SkCondVar.cpp',
31 '../src/utils/SkCountdown.cpp',
32 '../src/utils/SkThreadPool.cpp',
33
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../include/utils/SkBoundaryPatch.h',
35 '../include/utils/SkCamera.h',
36 '../include/utils/SkCubicInterval.h',
37 '../include/utils/SkCullPoints.h',
humper@google.com5d0a7692013-02-14 18:57:59 +000038 '../include/utils/SkDebugUtils.h',
junov@google.com4370aed2012-01-18 16:21:08 +000039 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000040 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000041 '../include/utils/SkInterpolator.h',
42 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000043 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 '../include/utils/SkMeshUtils.h',
45 '../include/utils/SkNinePatch.h',
46 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000047 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../include/utils/SkParse.h',
49 '../include/utils/SkParsePaint.h',
50 '../include/utils/SkParsePath.h',
djsollen@google.comfdabcb52012-12-05 06:15:42 +000051 '../include/utils/SkPictureUtils.h',
bsalomon@google.com3bc72002013-01-25 17:49:03 +000052 '../include/utils/SkRandom.h',
humper@google.com7af56be2013-01-14 18:49:19 +000053 '../include/utils/SkRTConf.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000056 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000057
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000058 '../src/utils/SkBase64.cpp',
59 '../src/utils/SkBase64.h',
epoger@google.com908f5832013-04-12 02:23:55 +000060 '../src/utils/SkBitmapHasher.cpp',
61 '../src/utils/SkBitmapHasher.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000062 '../src/utils/SkBitSet.cpp',
63 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/utils/SkBoundaryPatch.cpp',
65 '../src/utils/SkCamera.cpp',
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',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000074 '../src/utils/SkMD5.cpp',
75 '../src/utils/SkMD5.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000076 '../src/utils/SkMeshUtils.cpp',
77 '../src/utils/SkNinePatch.cpp',
78 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000079 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000080 '../src/utils/SkOSFile.cpp',
81 '../src/utils/SkParse.cpp',
82 '../src/utils/SkParseColor.cpp',
83 '../src/utils/SkParsePath.cpp',
reed@google.comfe7b1ed2012-11-29 21:00:39 +000084 '../src/utils/SkPictureUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000085 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000086 '../src/utils/SkSHA1.cpp',
87 '../src/utils/SkSHA1.h',
humper@google.com7af56be2013-01-14 18:49:19 +000088 '../src/utils/SkRTConf.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000089 '../src/utils/SkThreadUtils.h',
90 '../src/utils/SkThreadUtils_pthread.cpp',
91 '../src/utils/SkThreadUtils_pthread.h',
92 '../src/utils/SkThreadUtils_pthread_linux.cpp',
93 '../src/utils/SkThreadUtils_pthread_mach.cpp',
94 '../src/utils/SkThreadUtils_pthread_other.cpp',
95 '../src/utils/SkThreadUtils_win.cpp',
96 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000097 '../src/utils/SkUnitMappers.cpp',
98
bungeman@google.com9df621d2011-06-23 21:43:52 +000099 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000100 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000101 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000102
bungeman@google.com9df621d2011-06-23 21:43:52 +0000103 #windows
104 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000105 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000106 '../include/utils/win/SkIStream.h',
107 '../include/utils/win/SkTScopedComPtr.h',
108 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000109 '../src/utils/win/SkDWriteFontFileStream.cpp',
110 '../src/utils/win/SkDWriteFontFileStream.h',
111 '../src/utils/win/SkDWriteGeometrySink.cpp',
112 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000113 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000114 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000115 '../src/utils/win/SkWGL_win.cpp',
skia.committer@gmail.com26da7f02013-06-01 07:01:39 +0000116
reed@google.com7edec142013-05-31 20:17:57 +0000117 #testing
118 '../src/fonts/SkGScalerContext.cpp',
119 '../src/fonts/SkGScalerContext.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000120 ],
121 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000122 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000123 ],
124 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000125 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000126 'link_settings': {
127 'libraries': [
128 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
129 ],
130 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000131 }],
132 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000133 'direct_dependent_settings': {
134 'include_dirs': [
135 '../include/utils/mac',
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 != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000142 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000143 '../include/utils/mac',
144 ],
145 'sources!': [
146 '../include/utils/mac/SkCGUtils.h',
147 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000148 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000149 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000150 }],
borenet@google.com05d550e2013-06-11 15:52:19 +0000151 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bungeman@google.com55487522012-05-14 14:09:24 +0000152 'sources!': [
153 '../src/utils/SkThreadUtils_pthread_other.cpp',
154 ],
borenet@google.com05d550e2013-06-11 15:52:19 +0000155 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000156 'include_dirs!': [
157 '../include/utils/unix',
158 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000159 'sources!': [
160 '../src/utils/SkThreadUtils_pthread_linux.cpp',
161 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000162 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000163 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000164 'direct_dependent_settings': {
165 'include_dirs': [
166 '../include/utils/win',
167 ],
168 },
bungeman@google.com55487522012-05-14 14:09:24 +0000169 'sources!': [
170 '../src/utils/SkThreadUtils_pthread.cpp',
171 '../src/utils/SkThreadUtils_pthread.h',
172 '../src/utils/SkThreadUtils_pthread_other.cpp',
173 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000174 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000175 'include_dirs!': [
176 '../include/utils/win',
177 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000178 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000179 'sources!': [
180 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000181 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000182 '../include/utils/win/SkIStream.h',
183 '../include/utils/win/SkTScopedComPtr.h',
184 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000185 '../src/utils/win/SkDWriteFontFileStream.cpp',
186 '../src/utils/win/SkDWriteFontFileStream.h',
187 '../src/utils/win/SkDWriteGeometrySink.cpp',
188 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000189 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000190 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000191 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000192 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000193 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000194 'sources': [
195 '../src/utils/SkThreadUtils_pthread_other.cpp',
196 ],
197 'sources!': [
198 '../src/utils/SkThreadUtils_pthread_linux.cpp',
199 ],
200 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000201 [ 'skia_os == "android"', {
202 'sources': [
djsollen@google.comefbe8e92013-02-07 18:58:35 +0000203 '../src/utils/android/ashmem.cpp',
djsollen@google.com276a2952012-11-19 19:34:23 +0000204 ],
205 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000206 ],
207 'direct_dependent_settings': {
208 'include_dirs': [
209 '../include/utils',
210 ],
211 },
212 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000213 ],
214}
215
216# Local Variables:
217# tab-width:2
218# indent-tabs-mode:nil
219# End:
220# vim: set expandtab tabstop=2 shiftwidth=2: