blob: bdfcc6c8175639c4fbac626fd613bc903af4fca2 [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',
35 '../include/utils/SkSfntUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000036 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000037 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000038
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000039 '../src/utils/SkBase64.cpp',
40 '../src/utils/SkBase64.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000041 '../src/utils/SkBitSet.cpp',
42 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../src/utils/SkBoundaryPatch.cpp',
44 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000045 '../src/utils/SkCubicInterval.cpp',
46 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000047 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../src/utils/SkDumpCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/utils/SkInterpolator.cpp',
50 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000051 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../src/utils/SkMeshUtils.cpp',
53 '../src/utils/SkNinePatch.cpp',
54 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000055 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000056 '../src/utils/SkOSFile.cpp',
57 '../src/utils/SkParse.cpp',
58 '../src/utils/SkParseColor.cpp',
59 '../src/utils/SkParsePath.cpp',
60 '../src/utils/SkProxyCanvas.cpp',
61 '../src/utils/SkSfntUtils.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000062 '../src/utils/SkThreadUtils.h',
63 '../src/utils/SkThreadUtils_pthread.cpp',
64 '../src/utils/SkThreadUtils_pthread.h',
65 '../src/utils/SkThreadUtils_pthread_linux.cpp',
66 '../src/utils/SkThreadUtils_pthread_mach.cpp',
67 '../src/utils/SkThreadUtils_pthread_other.cpp',
68 '../src/utils/SkThreadUtils_win.cpp',
69 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000070 '../src/utils/SkUnitMappers.cpp',
71
bungeman@google.com9df621d2011-06-23 21:43:52 +000072 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000073 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000074 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000075
bungeman@google.com9df621d2011-06-23 21:43:52 +000076 #windows
77 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000078 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000079 '../include/utils/win/SkIStream.h',
80 '../include/utils/win/SkTScopedComPtr.h',
81 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +000082 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000083 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000084 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000085 ],
86 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000087 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 ],
89 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000090 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000091 'link_settings': {
92 'libraries': [
93 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
94 ],
95 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000096 'direct_dependent_settings': {
97 'include_dirs': [
98 '../include/utils/mac',
99 ],
100 },
bungeman@google.com55487522012-05-14 14:09:24 +0000101 'sources!': [
102 '../src/utils/SkThreadUtils_pthread_other.cpp',
103 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000104 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000105 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000106 '../include/utils/mac',
107 ],
108 'sources!': [
109 '../include/utils/mac/SkCGUtils.h',
110 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000111 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000112 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000113 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000114 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000115 'link_settings': {
116 'libraries': [
117 '-lGL',
118 '-lGLU',
119 ],
120 },
bungeman@google.com55487522012-05-14 14:09:24 +0000121 'sources!': [
122 '../src/utils/SkThreadUtils_pthread_other.cpp',
123 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000124 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000125 'include_dirs!': [
126 '../include/utils/unix',
127 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000128 'sources!': [
129 '../src/utils/SkThreadUtils_pthread_linux.cpp',
130 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000131 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000132 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000133 'direct_dependent_settings': {
134 'include_dirs': [
135 '../include/utils/win',
136 ],
137 },
bungeman@google.com55487522012-05-14 14:09:24 +0000138 'sources!': [
139 '../src/utils/SkThreadUtils_pthread.cpp',
140 '../src/utils/SkThreadUtils_pthread.h',
141 '../src/utils/SkThreadUtils_pthread_other.cpp',
142 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000143 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000144 'include_dirs!': [
145 '../include/utils/win',
146 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000147 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000148 'sources!': [
149 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000150 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000151 '../include/utils/win/SkIStream.h',
152 '../include/utils/win/SkTScopedComPtr.h',
153 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000154 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000155 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000156 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000157 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000158 ],
159 'direct_dependent_settings': {
160 'include_dirs': [
161 '../include/utils',
162 ],
163 },
164 },
165 ],
166}
167
168# Local Variables:
169# tab-width:2
170# indent-tabs-mode:nil
171# End:
172# vim: set expandtab tabstop=2 shiftwidth=2: