blob: 8b919a31d0be7c131dc48643266b8d90736ae927 [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',
5 'type': 'static_library',
6 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +00007 '../include/config',
8 '../include/core',
junov@chromium.org77eec242012-07-18 17:54:45 +00009 '../include/effects',
10 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000011 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000012 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000013 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000014 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000015 '../include/xml',
epoger@google.comae85aea2011-05-31 13:50:51 +000016 ],
17 'sources': [
18 '../include/utils/SkBoundaryPatch.h',
19 '../include/utils/SkCamera.h',
20 '../include/utils/SkCubicInterval.h',
21 '../include/utils/SkCullPoints.h',
junov@google.com4370aed2012-01-18 16:21:08 +000022 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000024 '../include/utils/SkInterpolator.h',
25 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000026 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000027 '../include/utils/SkMeshUtils.h',
28 '../include/utils/SkNinePatch.h',
29 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000030 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000031 '../include/utils/SkParse.h',
32 '../include/utils/SkParsePaint.h',
33 '../include/utils/SkParsePath.h',
34 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000035 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000036 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000037
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000038 '../src/utils/SkBase64.cpp',
39 '../src/utils/SkBase64.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000040 '../src/utils/SkBitSet.cpp',
41 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../src/utils/SkBoundaryPatch.cpp',
43 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 '../src/utils/SkCubicInterval.cpp',
45 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000046 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../src/utils/SkDumpCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../src/utils/SkInterpolator.cpp',
49 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000050 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/utils/SkMeshUtils.cpp',
52 '../src/utils/SkNinePatch.cpp',
53 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000054 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 '../src/utils/SkOSFile.cpp',
56 '../src/utils/SkParse.cpp',
57 '../src/utils/SkParseColor.cpp',
58 '../src/utils/SkParsePath.cpp',
59 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000060 '../src/utils/SkThreadUtils.h',
61 '../src/utils/SkThreadUtils_pthread.cpp',
62 '../src/utils/SkThreadUtils_pthread.h',
63 '../src/utils/SkThreadUtils_pthread_linux.cpp',
64 '../src/utils/SkThreadUtils_pthread_mach.cpp',
65 '../src/utils/SkThreadUtils_pthread_other.cpp',
66 '../src/utils/SkThreadUtils_win.cpp',
67 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000068 '../src/utils/SkUnitMappers.cpp',
69
bungeman@google.com9df621d2011-06-23 21:43:52 +000070 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000071 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000072 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000073
bungeman@google.com9df621d2011-06-23 21:43:52 +000074 #windows
75 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000076 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000077 '../include/utils/win/SkIStream.h',
78 '../include/utils/win/SkTScopedComPtr.h',
79 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +000080 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000081 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000082 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000083 ],
84 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000085 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000086 ],
87 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000088 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000089 'link_settings': {
90 'libraries': [
91 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
92 ],
93 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000094 'direct_dependent_settings': {
95 'include_dirs': [
96 '../include/utils/mac',
97 ],
98 },
bungeman@google.com55487522012-05-14 14:09:24 +000099 'sources!': [
100 '../src/utils/SkThreadUtils_pthread_other.cpp',
101 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000102 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000103 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000104 '../include/utils/mac',
105 ],
106 'sources!': [
107 '../include/utils/mac/SkCGUtils.h',
108 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000109 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000110 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000111 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000112 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000113 'link_settings': {
114 'libraries': [
115 '-lGL',
116 '-lGLU',
117 ],
118 },
bungeman@google.com55487522012-05-14 14:09:24 +0000119 'sources!': [
120 '../src/utils/SkThreadUtils_pthread_other.cpp',
121 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000122 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000123 'include_dirs!': [
124 '../include/utils/unix',
125 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000126 'sources!': [
127 '../src/utils/SkThreadUtils_pthread_linux.cpp',
128 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000129 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000130 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000131 'direct_dependent_settings': {
132 'include_dirs': [
133 '../include/utils/win',
134 ],
135 },
bungeman@google.com55487522012-05-14 14:09:24 +0000136 'sources!': [
137 '../src/utils/SkThreadUtils_pthread.cpp',
138 '../src/utils/SkThreadUtils_pthread.h',
139 '../src/utils/SkThreadUtils_pthread_other.cpp',
140 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000141 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000142 'include_dirs!': [
143 '../include/utils/win',
144 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000145 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000146 'sources!': [
147 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000148 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000149 '../include/utils/win/SkIStream.h',
150 '../include/utils/win/SkTScopedComPtr.h',
151 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000152 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000153 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000154 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000155 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000156 ],
157 'direct_dependent_settings': {
158 'include_dirs': [
159 '../include/utils',
160 ],
161 },
162 },
163 ],
164}
165
166# Local Variables:
167# tab-width:2
168# indent-tabs-mode:nil
169# End:
170# vim: set expandtab tabstop=2 shiftwidth=2: