blob: 5e6fa85484990466e96c83b8c919e76c83091e7b [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',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 '../include/utils/SkInterpolator.h',
27 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000028 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000029 '../include/utils/SkMeshUtils.h',
30 '../include/utils/SkNinePatch.h',
31 '../include/utils/SkNWayCanvas.h',
32 '../include/utils/SkParse.h',
33 '../include/utils/SkParsePaint.h',
34 '../include/utils/SkParsePath.h',
35 '../include/utils/SkProxyCanvas.h',
36 '../include/utils/SkSfntUtils.h',
37 '../include/utils/SkTextBox.h',
38 '../include/utils/SkUnitMappers.h',
39
40 '../src/utils/SkBoundaryPatch.cpp',
41 '../src/utils/SkCamera.cpp',
42 '../src/utils/SkColorMatrix.cpp',
43 '../src/utils/SkCubicInterval.cpp',
44 '../src/utils/SkCullPoints.cpp',
45 '../src/utils/SkDumpCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../src/utils/SkInterpolator.cpp',
47 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000048 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/utils/SkMeshUtils.cpp',
50 '../src/utils/SkNinePatch.cpp',
51 '../src/utils/SkNWayCanvas.cpp',
52 '../src/utils/SkOSFile.cpp',
53 '../src/utils/SkParse.cpp',
54 '../src/utils/SkParseColor.cpp',
55 '../src/utils/SkParsePath.cpp',
56 '../src/utils/SkProxyCanvas.cpp',
57 '../src/utils/SkSfntUtils.cpp',
58 '../src/utils/SkUnitMappers.cpp',
59
bungeman@google.com9df621d2011-06-23 21:43:52 +000060 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000061 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000062 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000063
bungeman@google.com9df621d2011-06-23 21:43:52 +000064 #sdl
bungeman@google.com63aab2f2011-06-01 16:15:43 +000065 '../src/utils/SDL/SkOSWindow_SDL.cpp',
66
bungeman@google.com9df621d2011-06-23 21:43:52 +000067 #*nix
bungeman@google.com63aab2f2011-06-01 16:15:43 +000068 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000069 '../src/utils/unix/SkOSWindow_Unix.cpp',
70
bungeman@google.com9df621d2011-06-23 21:43:52 +000071 #windows
72 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000073 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000074 '../include/utils/win/SkIStream.h',
75 '../include/utils/win/SkTScopedComPtr.h',
76 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000077 '../src/utils/win/skia_win.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +000078 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000079 '../src/utils/win/SkIStream.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000080 '../src/utils/win/SkOSWindow_Win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000081 ],
82 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000083 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000084 ],
85 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000086 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000087 'link_settings': {
88 'libraries': [
89 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
90 ],
91 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000092 'direct_dependent_settings': {
93 'include_dirs': [
94 '../include/utils/mac',
95 ],
96 },
epoger@google.com8846cb22011-07-01 20:20:07 +000097 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000098 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +000099 '../include/utils/mac',
100 ],
101 'sources!': [
102 '../include/utils/mac/SkCGUtils.h',
103 '../src/utils/mac/SkCreateCGImageRef.cpp',
yangsu@google.coma8540412011-08-30 14:40:49 +0000104 '../src/utils/mac/skia_mac.mm',
105 '../src/utils/mac/SkOSWindow_Mac.mm',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000106 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000107 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000108 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000109 'link_settings': {
110 'libraries': [
111 '-lGL',
112 '-lGLU',
113 ],
114 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000115 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000116 'include_dirs!': [
117 '../include/utils/unix',
118 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000119 'sources!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000120 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000121 '../src/utils/unix/SkOSWindow_Unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000122 ],
123 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000124 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000125 'direct_dependent_settings': {
126 'include_dirs': [
127 '../include/utils/win',
128 ],
129 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000130 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000131 'include_dirs!': [
132 '../include/utils/win',
133 ],
134 'sources!': [
135 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000136 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000137 '../include/utils/win/SkIStream.h',
138 '../include/utils/win/SkTScopedComPtr.h',
139 '../src/utils/win/SkAutoCoInitialize.cpp',
140 '../src/utils/win/skia_win.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000141 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000142 '../src/utils/win/SkIStream.cpp',
143 '../src/utils/win/SkOSWindow_Win.cpp',
144 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000145 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000146 ],
147 'direct_dependent_settings': {
148 'include_dirs': [
149 '../include/utils',
150 ],
151 },
152 },
153 ],
154}
155
156# Local Variables:
157# tab-width:2
158# indent-tabs-mode:nil
159# End:
160# vim: set expandtab tabstop=2 shiftwidth=2: