blob: cc253490450330fb7fa120318fa3141f20e3b362 [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': [
21 '../include/utils/SkBoundaryPatch.h',
22 '../include/utils/SkCamera.h',
23 '../include/utils/SkCubicInterval.h',
24 '../include/utils/SkCullPoints.h',
junov@google.com4370aed2012-01-18 16:21:08 +000025 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000027 '../include/utils/SkInterpolator.h',
28 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000029 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../include/utils/SkMeshUtils.h',
31 '../include/utils/SkNinePatch.h',
32 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000033 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../include/utils/SkParse.h',
35 '../include/utils/SkParsePaint.h',
36 '../include/utils/SkParsePath.h',
37 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000039 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000040
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000041 '../src/utils/SkBase64.cpp',
42 '../src/utils/SkBase64.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000043 '../src/utils/SkBitSet.cpp',
44 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000045 '../src/utils/SkBoundaryPatch.cpp',
46 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../src/utils/SkCubicInterval.cpp',
48 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000049 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000051 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../src/utils/SkInterpolator.cpp',
53 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000054 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../src/utils/SkMeshUtils.cpp',
56 '../src/utils/SkNinePatch.cpp',
57 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000058 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000059 '../src/utils/SkOSFile.cpp',
60 '../src/utils/SkParse.cpp',
61 '../src/utils/SkParseColor.cpp',
62 '../src/utils/SkParsePath.cpp',
63 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000064 '../src/utils/SkThreadUtils.h',
65 '../src/utils/SkThreadUtils_pthread.cpp',
66 '../src/utils/SkThreadUtils_pthread.h',
67 '../src/utils/SkThreadUtils_pthread_linux.cpp',
68 '../src/utils/SkThreadUtils_pthread_mach.cpp',
69 '../src/utils/SkThreadUtils_pthread_other.cpp',
70 '../src/utils/SkThreadUtils_win.cpp',
71 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000072 '../src/utils/SkUnitMappers.cpp',
73
bungeman@google.com9df621d2011-06-23 21:43:52 +000074 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000075 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000076 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +000077
bungeman@google.com9df621d2011-06-23 21:43:52 +000078 #windows
79 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000080 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000081 '../include/utils/win/SkIStream.h',
82 '../include/utils/win/SkTScopedComPtr.h',
83 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000084 '../src/utils/win/SkDWriteFontFileStream.cpp',
85 '../src/utils/win/SkDWriteFontFileStream.h',
86 '../src/utils/win/SkDWriteGeometrySink.cpp',
87 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000088 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000089 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000090 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000091 ],
92 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000093 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 ],
95 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000096 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000097 'link_settings': {
98 'libraries': [
99 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
100 ],
101 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000102 }],
103 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000104 'direct_dependent_settings': {
105 'include_dirs': [
106 '../include/utils/mac',
107 ],
108 },
bungeman@google.com55487522012-05-14 14:09:24 +0000109 'sources!': [
110 '../src/utils/SkThreadUtils_pthread_other.cpp',
111 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000112 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000113 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000114 '../include/utils/mac',
115 ],
116 'sources!': [
117 '../include/utils/mac/SkCGUtils.h',
118 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000119 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000120 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000121 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000122 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000123 'link_settings': {
124 'libraries': [
125 '-lGL',
126 '-lGLU',
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 not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000133 'include_dirs!': [
134 '../include/utils/unix',
135 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000136 'sources!': [
137 '../src/utils/SkThreadUtils_pthread_linux.cpp',
138 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000139 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000140 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000141 'direct_dependent_settings': {
142 'include_dirs': [
143 '../include/utils/win',
144 ],
145 },
bungeman@google.com55487522012-05-14 14:09:24 +0000146 'sources!': [
147 '../src/utils/SkThreadUtils_pthread.cpp',
148 '../src/utils/SkThreadUtils_pthread.h',
149 '../src/utils/SkThreadUtils_pthread_other.cpp',
150 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000151 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000152 'include_dirs!': [
153 '../include/utils/win',
154 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000155 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000156 'sources!': [
157 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000158 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000159 '../include/utils/win/SkIStream.h',
160 '../include/utils/win/SkTScopedComPtr.h',
161 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000162 '../src/utils/win/SkDWriteFontFileStream.cpp',
163 '../src/utils/win/SkDWriteFontFileStream.h',
164 '../src/utils/win/SkDWriteGeometrySink.cpp',
165 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000166 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000167 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000168 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000169 }],
borenet@google.coma98eb912012-09-04 21:09:40 +0000170 [ 'skia_nacl == 1', {
171 'sources': [
172 '../src/utils/SkThreadUtils_pthread_other.cpp',
173 ],
174 'sources!': [
175 '../src/utils/SkThreadUtils_pthread_linux.cpp',
176 ],
177 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000178 ],
179 'direct_dependent_settings': {
180 'include_dirs': [
181 '../include/utils',
182 ],
183 },
184 },
185 ],
186}
187
188# Local Variables:
189# tab-width:2
190# indent-tabs-mode:nil
191# End:
192# vim: set expandtab tabstop=2 shiftwidth=2: