blob: 9a3683f41201222a81646b3569ddb0b421df4d8f [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
2 'includes': [
3 'target_defaults.gypi',
4 ],
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',
67 '../src/utils/mac/skia_mac.cpp',
68 '../src/utils/mac/SkOSWindow_Mac.cpp',
69
bungeman@google.com9df621d2011-06-23 21:43:52 +000070 #mesa
bungeman@google.com63aab2f2011-06-01 16:15:43 +000071 '../src/utils/mesa/SkEGLContext_Mesa.cpp',
72
bungeman@google.com9df621d2011-06-23 21:43:52 +000073 #sdl
bungeman@google.com63aab2f2011-06-01 16:15:43 +000074 '../src/utils/SDL/SkOSWindow_SDL.cpp',
75
bungeman@google.com9df621d2011-06-23 21:43:52 +000076 #*nix
bungeman@google.com63aab2f2011-06-01 16:15:43 +000077 '../src/utils/unix/keysym2ucs.c',
78 '../src/utils/unix/SkEGLContext_Unix.cpp',
79 '../src/utils/unix/SkOSWindow_Unix.cpp',
80
bungeman@google.com9df621d2011-06-23 21:43:52 +000081 #windows
82 '../include/utils/win/SkAutoCoInitialize.h',
83 '../include/utils/win/SkIStream.h',
84 '../include/utils/win/SkTScopedComPtr.h',
85 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000086 '../src/utils/win/skia_win.cpp',
bungeman@google.com3b0a8da2011-06-02 15:38:06 +000087 '../src/utils/win/SkEGLContext_Win.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': [
bungeman@google.com3b0a8da2011-06-02 15:38:06 +000096 [ 'OS == "mac"', {
97 '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.com9df621d2011-06-23 21:43:52 +0000105 },{ #else if 'OS != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000106 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000107 '../include/utils/mac',
108 ],
109 'sources!': [
110 '../include/utils/mac/SkCGUtils.h',
111 '../src/utils/mac/SkCreateCGImageRef.cpp',
112 '../src/utils/mac/SkEGLContext_mac.cpp',
113 '../src/utils/mac/skia_mac.cpp',
114 '../src/utils/mac/SkOSWindow_Mac.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000115 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000116 }],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000117 [ 'OS in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000118 'sources!': [
119 '../src/utils/SkEGLContext_none.cpp',
120 ],
epoger@google.com161933b2011-06-03 17:21:21 +0000121 'link_settings': {
122 'libraries': [
123 '-lGL',
124 '-lGLU',
125 ],
126 },
bungeman@google.com9df621d2011-06-23 21:43:52 +0000127 },{ #else if 'OS not in ["linux", "freebsd", "openbsd", "solaris"]'
128 'include_dirs!': [
129 '../include/utils/unix',
130 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000131 'sources!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000132 '../src/utils/unix/keysym2ucs.c',
133 '../src/utils/unix/SkEGLContext_Unix.cpp',
134 '../src/utils/unix/SkOSWindow_Unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000135 ],
136 }],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000137 [ 'OS == "win"', {
138 'sources!': [
139 '../src/utils/SkEGLContext_none.cpp',
140 ],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000141 'direct_dependent_settings': {
142 'include_dirs': [
143 '../include/utils/win',
144 ],
145 },
146 },{ #else if 'OS != "win"'
147 'include_dirs!': [
148 '../include/utils/win',
149 ],
150 'sources!': [
151 '../include/utils/win/SkAutoCoInitialize.h',
152 '../include/utils/win/SkIStream.h',
153 '../include/utils/win/SkTScopedComPtr.h',
154 '../src/utils/win/SkAutoCoInitialize.cpp',
155 '../src/utils/win/skia_win.cpp',
156 '../src/utils/win/SkEGLContext_Win.cpp',
157 '../src/utils/win/SkIStream.cpp',
158 '../src/utils/win/SkOSWindow_Win.cpp',
159 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000160 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000161 ],
162 'direct_dependent_settings': {
163 'include_dirs': [
164 '../include/utils',
165 ],
166 },
167 },
168 ],
169}
170
171# Local Variables:
172# tab-width:2
173# indent-tabs-mode:nil
174# End:
175# vim: set expandtab tabstop=2 shiftwidth=2: