blob: 9cfe46eb9c53c18cb556053edb3cf7d177b88a51 [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',
bungeman@google.come8f05922012-08-16 16:13:40 +00005 'dependencies': [
6 'core.gyp:core',
7 ],
epoger@google.comae85aea2011-05-31 13:50:51 +00008 'type': 'static_library',
9 'include_dirs': [
junov@chromium.org77eec242012-07-18 17:54:45 +000010 '../include/effects',
11 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000012 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000013 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000014 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000015 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000016 '../include/xml',
bungeman@google.come8f05922012-08-16 16:13:40 +000017 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000018 ],
19 'sources': [
20 '../include/utils/SkBoundaryPatch.h',
21 '../include/utils/SkCamera.h',
22 '../include/utils/SkCubicInterval.h',
23 '../include/utils/SkCullPoints.h',
junov@google.com4370aed2012-01-18 16:21:08 +000024 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000025 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 '../include/utils/SkInterpolator.h',
27 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000028 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000029 '../include/utils/SkMeshUtils.h',
30 '../include/utils/SkNinePatch.h',
31 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000032 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000033 '../include/utils/SkParse.h',
34 '../include/utils/SkParsePaint.h',
35 '../include/utils/SkParsePath.h',
36 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000037 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000038 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000039
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000040 '../src/utils/SkBase64.cpp',
41 '../src/utils/SkBase64.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000042 '../src/utils/SkBitSet.cpp',
43 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 '../src/utils/SkBoundaryPatch.cpp',
45 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../src/utils/SkCubicInterval.cpp',
47 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000048 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000050 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/utils/SkInterpolator.cpp',
52 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000053 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../src/utils/SkMeshUtils.cpp',
55 '../src/utils/SkNinePatch.cpp',
56 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000057 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000058 '../src/utils/SkOSFile.cpp',
59 '../src/utils/SkParse.cpp',
60 '../src/utils/SkParseColor.cpp',
61 '../src/utils/SkParsePath.cpp',
62 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000063 '../src/utils/SkThreadUtils.h',
64 '../src/utils/SkThreadUtils_pthread.cpp',
65 '../src/utils/SkThreadUtils_pthread.h',
66 '../src/utils/SkThreadUtils_pthread_linux.cpp',
67 '../src/utils/SkThreadUtils_pthread_mach.cpp',
68 '../src/utils/SkThreadUtils_pthread_other.cpp',
69 '../src/utils/SkThreadUtils_win.cpp',
70 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000071 '../src/utils/SkUnitMappers.cpp',
72
bungeman@google.com9df621d2011-06-23 21:43:52 +000073 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000074 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000075 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +000076
bungeman@google.com9df621d2011-06-23 21:43:52 +000077 #windows
78 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000079 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000080 '../include/utils/win/SkIStream.h',
81 '../include/utils/win/SkTScopedComPtr.h',
82 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000083 '../src/utils/win/SkDWriteFontFileStream.cpp',
84 '../src/utils/win/SkDWriteFontFileStream.h',
85 '../src/utils/win/SkDWriteGeometrySink.cpp',
86 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000087 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000088 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000089 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000090 ],
91 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000092 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000093 ],
94 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000095 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000096 'link_settings': {
97 'libraries': [
98 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
99 ],
100 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000101 'direct_dependent_settings': {
102 'include_dirs': [
103 '../include/utils/mac',
104 ],
105 },
bungeman@google.com55487522012-05-14 14:09:24 +0000106 'sources!': [
107 '../src/utils/SkThreadUtils_pthread_other.cpp',
108 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000109 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000110 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000111 '../include/utils/mac',
112 ],
113 'sources!': [
114 '../include/utils/mac/SkCGUtils.h',
115 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000116 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000117 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000118 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000119 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000120 'link_settings': {
121 'libraries': [
122 '-lGL',
123 '-lGLU',
124 ],
125 },
bungeman@google.com55487522012-05-14 14:09:24 +0000126 'sources!': [
127 '../src/utils/SkThreadUtils_pthread_other.cpp',
128 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000129 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000130 'include_dirs!': [
131 '../include/utils/unix',
132 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000133 'sources!': [
134 '../src/utils/SkThreadUtils_pthread_linux.cpp',
135 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000136 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000137 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000138 'direct_dependent_settings': {
139 'include_dirs': [
140 '../include/utils/win',
141 ],
142 },
bungeman@google.com55487522012-05-14 14:09:24 +0000143 'sources!': [
144 '../src/utils/SkThreadUtils_pthread.cpp',
145 '../src/utils/SkThreadUtils_pthread.h',
146 '../src/utils/SkThreadUtils_pthread_other.cpp',
147 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000148 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000149 'include_dirs!': [
150 '../include/utils/win',
151 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000152 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000153 'sources!': [
154 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000155 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000156 '../include/utils/win/SkIStream.h',
157 '../include/utils/win/SkTScopedComPtr.h',
158 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000159 '../src/utils/win/SkDWriteFontFileStream.cpp',
160 '../src/utils/win/SkDWriteFontFileStream.h',
161 '../src/utils/win/SkDWriteGeometrySink.cpp',
162 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000163 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000164 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000165 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000166 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000167 ],
168 'direct_dependent_settings': {
169 'include_dirs': [
170 '../include/utils',
171 ],
172 },
173 },
174 ],
175}
176
177# Local Variables:
178# tab-width:2
179# indent-tabs-mode:nil
180# End:
181# vim: set expandtab tabstop=2 shiftwidth=2: