blob: 9b11e59f383411ed278ce0c22fc6465fc4160579 [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',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000029 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../include/utils/SkParse.h',
31 '../include/utils/SkParsePaint.h',
32 '../include/utils/SkParsePath.h',
33 '../include/utils/SkProxyCanvas.h',
34 '../include/utils/SkSfntUtils.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',
60 '../src/utils/SkSfntUtils.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000061 '../src/utils/SkThreadUtils.h',
62 '../src/utils/SkThreadUtils_pthread.cpp',
63 '../src/utils/SkThreadUtils_pthread.h',
64 '../src/utils/SkThreadUtils_pthread_linux.cpp',
65 '../src/utils/SkThreadUtils_pthread_mach.cpp',
66 '../src/utils/SkThreadUtils_pthread_other.cpp',
67 '../src/utils/SkThreadUtils_win.cpp',
68 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000069 '../src/utils/SkUnitMappers.cpp',
70
bungeman@google.com9df621d2011-06-23 21:43:52 +000071 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000072 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000073 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000074
bungeman@google.com9df621d2011-06-23 21:43:52 +000075 #windows
76 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000077 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000078 '../include/utils/win/SkIStream.h',
79 '../include/utils/win/SkTScopedComPtr.h',
80 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +000081 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000082 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000083 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000084 ],
85 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000086 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000087 ],
88 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000089 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000090 'link_settings': {
91 'libraries': [
92 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
93 ],
94 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000095 'direct_dependent_settings': {
96 'include_dirs': [
97 '../include/utils/mac',
98 ],
99 },
bungeman@google.com55487522012-05-14 14:09:24 +0000100 'sources!': [
101 '../src/utils/SkThreadUtils_pthread_other.cpp',
102 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000103 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000104 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000105 '../include/utils/mac',
106 ],
107 'sources!': [
108 '../include/utils/mac/SkCGUtils.h',
109 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000110 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000111 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000112 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000113 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000114 'link_settings': {
115 'libraries': [
116 '-lGL',
117 '-lGLU',
118 ],
119 },
bungeman@google.com55487522012-05-14 14:09:24 +0000120 'sources!': [
121 '../src/utils/SkThreadUtils_pthread_other.cpp',
122 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000123 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000124 'include_dirs!': [
125 '../include/utils/unix',
126 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000127 'sources!': [
128 '../src/utils/SkThreadUtils_pthread_linux.cpp',
129 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000130 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000131 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000132 'direct_dependent_settings': {
133 'include_dirs': [
134 '../include/utils/win',
135 ],
136 },
bungeman@google.com55487522012-05-14 14:09:24 +0000137 'sources!': [
138 '../src/utils/SkThreadUtils_pthread.cpp',
139 '../src/utils/SkThreadUtils_pthread.h',
140 '../src/utils/SkThreadUtils_pthread_other.cpp',
141 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000142 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000143 'include_dirs!': [
144 '../include/utils/win',
145 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000146 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000147 'sources!': [
148 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000149 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000150 '../include/utils/win/SkIStream.h',
151 '../include/utils/win/SkTScopedComPtr.h',
152 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000153 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000154 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000155 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000156 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000157 ],
158 'direct_dependent_settings': {
159 'include_dirs': [
160 '../include/utils',
161 ],
162 },
163 },
164 ],
165}
166
167# Local Variables:
168# tab-width:2
169# indent-tabs-mode:nil
170# End:
171# vim: set expandtab tabstop=2 shiftwidth=2: