blob: 73a80eb065f5bbf328a942f088fb8842aec0d525 [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
2 'includes': [
epoger@google.com5351b372011-07-01 17:16:26 +00003 'common.gypi',
epoger@google.comae85aea2011-05-31 13:50:51 +00004 ],
5 'targets': [
6 {
7 'target_name': 'utils',
8 'type': 'static_library',
9 'include_dirs': [
10 '../include/config',
11 '../include/core',
12 '../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',
epoger@google.comae85aea2011-05-31 13:50:51 +000016 '../include/views',
17 '../include/effects',
18 '../include/xml',
19 ],
20 'sources': [
21 '../include/utils/SkBoundaryPatch.h',
22 '../include/utils/SkCamera.h',
23 '../include/utils/SkCubicInterval.h',
24 '../include/utils/SkCullPoints.h',
25 '../include/utils/SkDumpCanvas.h',
26 '../include/utils/SkEGLContext.h',
27 '../include/utils/SkGLCanvas.h',
28 '../include/utils/SkInterpolator.h',
29 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000030 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000031 '../include/utils/SkMeshUtils.h',
32 '../include/utils/SkNinePatch.h',
33 '../include/utils/SkNWayCanvas.h',
34 '../include/utils/SkParse.h',
35 '../include/utils/SkParsePaint.h',
36 '../include/utils/SkParsePath.h',
37 '../include/utils/SkProxyCanvas.h',
38 '../include/utils/SkSfntUtils.h',
39 '../include/utils/SkTextBox.h',
40 '../include/utils/SkUnitMappers.h',
41
42 '../src/utils/SkBoundaryPatch.cpp',
43 '../src/utils/SkCamera.cpp',
44 '../src/utils/SkColorMatrix.cpp',
45 '../src/utils/SkCubicInterval.cpp',
46 '../src/utils/SkCullPoints.cpp',
47 '../src/utils/SkDumpCanvas.cpp',
48 '../src/utils/SkEGLContext_none.cpp',
49 '../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',
55 '../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',
61 '../src/utils/SkUnitMappers.cpp',
62
bungeman@google.com9df621d2011-06-23 21:43:52 +000063 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000064 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000065 '../src/utils/mac/SkCreateCGImageRef.cpp',
66 '../src/utils/mac/SkEGLContext_mac.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000067
bungeman@google.com9df621d2011-06-23 21:43:52 +000068 #mesa
bungeman@google.com63aab2f2011-06-01 16:15:43 +000069 '../src/utils/mesa/SkEGLContext_Mesa.cpp',
70
bungeman@google.com9df621d2011-06-23 21:43:52 +000071 #sdl
bungeman@google.com63aab2f2011-06-01 16:15:43 +000072 '../src/utils/SDL/SkOSWindow_SDL.cpp',
73
bungeman@google.com9df621d2011-06-23 21:43:52 +000074 #*nix
bungeman@google.com63aab2f2011-06-01 16:15:43 +000075 '../src/utils/unix/keysym2ucs.c',
76 '../src/utils/unix/SkEGLContext_Unix.cpp',
77 '../src/utils/unix/SkOSWindow_Unix.cpp',
78
bungeman@google.com9df621d2011-06-23 21:43:52 +000079 #windows
80 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000081 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000082 '../include/utils/win/SkIStream.h',
83 '../include/utils/win/SkTScopedComPtr.h',
84 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000085 '../src/utils/win/skia_win.cpp',
bungeman@google.com3b0a8da2011-06-02 15:38:06 +000086 '../src/utils/win/SkEGLContext_Win.cpp',
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',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000089 '../src/utils/win/SkOSWindow_Win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000090 ],
91 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000092 '../src/utils/mesa/SkEGLContext_Mesa.cpp',
93 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 ],
95 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000096 [ 'skia_os == "mac"', {
bungeman@google.com3b0a8da2011-06-02 15:38:06 +000097 'sources!': [
98 '../src/utils/SkEGLContext_none.cpp',
99 ],
epoger@google.comc39f1752011-06-03 17:52:12 +0000100 'link_settings': {
101 'libraries': [
102 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
103 ],
104 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000105 'direct_dependent_settings': {
106 'include_dirs': [
107 '../include/utils/mac',
108 ],
109 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000110 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000111 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000112 '../include/utils/mac',
113 ],
114 'sources!': [
115 '../include/utils/mac/SkCGUtils.h',
116 '../src/utils/mac/SkCreateCGImageRef.cpp',
117 '../src/utils/mac/SkEGLContext_mac.cpp',
yangsu@google.coma8540412011-08-30 14:40:49 +0000118 '../src/utils/mac/skia_mac.mm',
119 '../src/utils/mac/SkOSWindow_Mac.mm',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000120 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000121 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000122 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000123 'sources!': [
124 '../src/utils/SkEGLContext_none.cpp',
125 ],
epoger@google.com161933b2011-06-03 17:21:21 +0000126 'link_settings': {
127 'libraries': [
128 '-lGL',
129 '-lGLU',
130 ],
131 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000132 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000133 'include_dirs!': [
134 '../include/utils/unix',
135 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000136 'sources!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000137 '../src/utils/unix/keysym2ucs.c',
138 '../src/utils/unix/SkEGLContext_Unix.cpp',
139 '../src/utils/unix/SkOSWindow_Unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000140 ],
141 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000142 [ 'skia_os == "win"', {
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000143 'sources!': [
144 '../src/utils/SkEGLContext_none.cpp',
145 ],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000146 'direct_dependent_settings': {
147 'include_dirs': [
148 '../include/utils/win',
149 ],
150 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000151 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000152 'include_dirs!': [
153 '../include/utils/win',
154 ],
155 'sources!': [
156 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000157 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000158 '../include/utils/win/SkIStream.h',
159 '../include/utils/win/SkTScopedComPtr.h',
160 '../src/utils/win/SkAutoCoInitialize.cpp',
161 '../src/utils/win/skia_win.cpp',
162 '../src/utils/win/SkEGLContext_Win.cpp',
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',
165 '../src/utils/win/SkOSWindow_Win.cpp',
166 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000167 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000168 ],
169 'direct_dependent_settings': {
170 'include_dirs': [
171 '../include/utils',
172 ],
173 },
174 },
175 ],
176}
177
178# Local Variables:
179# tab-width:2
180# indent-tabs-mode:nil
181# End:
182# vim: set expandtab tabstop=2 shiftwidth=2: