blob: d2c413ecbcdc09cb41c6977c4bd9e3825b6fd7fc [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',
epoger@google.comae85aea2011-05-31 13:50:51 +00009 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000010 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000011 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000012 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000013 '../include/effects',
14 '../include/xml',
epoger@google.comae85aea2011-05-31 13:50:51 +000015 ],
16 'sources': [
17 '../include/utils/SkBoundaryPatch.h',
18 '../include/utils/SkCamera.h',
19 '../include/utils/SkCubicInterval.h',
20 '../include/utils/SkCullPoints.h',
junov@google.com4370aed2012-01-18 16:21:08 +000021 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000022 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 '../include/utils/SkInterpolator.h',
24 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000025 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 '../include/utils/SkMeshUtils.h',
27 '../include/utils/SkNinePatch.h',
28 '../include/utils/SkNWayCanvas.h',
29 '../include/utils/SkParse.h',
30 '../include/utils/SkParsePaint.h',
31 '../include/utils/SkParsePath.h',
32 '../include/utils/SkProxyCanvas.h',
33 '../include/utils/SkSfntUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000035 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000036
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000037 '../src/utils/SkBase64.cpp',
38 '../src/utils/SkBase64.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000039 '../src/utils/SkBitSet.cpp',
40 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000041 '../src/utils/SkBoundaryPatch.cpp',
42 '../src/utils/SkCamera.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../src/utils/SkCubicInterval.cpp',
44 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000045 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../src/utils/SkDumpCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../src/utils/SkInterpolator.cpp',
48 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000049 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/utils/SkMeshUtils.cpp',
51 '../src/utils/SkNinePatch.cpp',
52 '../src/utils/SkNWayCanvas.cpp',
53 '../src/utils/SkOSFile.cpp',
54 '../src/utils/SkParse.cpp',
55 '../src/utils/SkParseColor.cpp',
56 '../src/utils/SkParsePath.cpp',
57 '../src/utils/SkProxyCanvas.cpp',
58 '../src/utils/SkSfntUtils.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000059 '../src/utils/SkThreadUtils.h',
60 '../src/utils/SkThreadUtils_pthread.cpp',
61 '../src/utils/SkThreadUtils_pthread.h',
62 '../src/utils/SkThreadUtils_pthread_linux.cpp',
63 '../src/utils/SkThreadUtils_pthread_mach.cpp',
64 '../src/utils/SkThreadUtils_pthread_other.cpp',
65 '../src/utils/SkThreadUtils_win.cpp',
66 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000067 '../src/utils/SkUnitMappers.cpp',
68
bungeman@google.com9df621d2011-06-23 21:43:52 +000069 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000070 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000071 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000072
bungeman@google.com9df621d2011-06-23 21:43:52 +000073 #windows
74 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000075 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000076 '../include/utils/win/SkIStream.h',
77 '../include/utils/win/SkTScopedComPtr.h',
78 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +000079 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000080 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000081 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000082 ],
83 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000084 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000085 ],
86 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000087 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000088 'link_settings': {
89 'libraries': [
90 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
91 ],
92 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000093 'direct_dependent_settings': {
94 'include_dirs': [
95 '../include/utils/mac',
96 ],
97 },
bungeman@google.com55487522012-05-14 14:09:24 +000098 'sources!': [
99 '../src/utils/SkThreadUtils_pthread_other.cpp',
100 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000101 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000102 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000103 '../include/utils/mac',
104 ],
105 'sources!': [
106 '../include/utils/mac/SkCGUtils.h',
107 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000108 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000109 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000110 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000111 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000112 'link_settings': {
113 'libraries': [
114 '-lGL',
115 '-lGLU',
116 ],
117 },
bungeman@google.com55487522012-05-14 14:09:24 +0000118 'sources!': [
119 '../src/utils/SkThreadUtils_pthread_other.cpp',
120 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000121 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000122 'include_dirs!': [
123 '../include/utils/unix',
124 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000125 'sources!': [
126 '../src/utils/SkThreadUtils_pthread_linux.cpp',
127 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000128 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000129 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000130 'direct_dependent_settings': {
131 'include_dirs': [
132 '../include/utils/win',
133 ],
134 },
bungeman@google.com55487522012-05-14 14:09:24 +0000135 'sources!': [
136 '../src/utils/SkThreadUtils_pthread.cpp',
137 '../src/utils/SkThreadUtils_pthread.h',
138 '../src/utils/SkThreadUtils_pthread_other.cpp',
139 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000140 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000141 'include_dirs!': [
142 '../include/utils/win',
143 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000144 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000145 'sources!': [
146 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000147 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000148 '../include/utils/win/SkIStream.h',
149 '../include/utils/win/SkTScopedComPtr.h',
150 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000151 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000152 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000153 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000154 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000155 ],
156 'direct_dependent_settings': {
157 'include_dirs': [
158 '../include/utils',
159 ],
160 },
161 },
162 ],
163}
164
165# Local Variables:
166# tab-width:2
167# indent-tabs-mode:nil
168# End:
169# vim: set expandtab tabstop=2 shiftwidth=2: