blob: 8d2415ad677fc14622afef7971129360fe36d35e [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',
junov@google.com4370aed2012-01-18 16:21:08 +000025 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000026 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000027 '../include/utils/SkInterpolator.h',
28 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000029 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../include/utils/SkMeshUtils.h',
31 '../include/utils/SkNinePatch.h',
32 '../include/utils/SkNWayCanvas.h',
33 '../include/utils/SkParse.h',
34 '../include/utils/SkParsePaint.h',
35 '../include/utils/SkParsePath.h',
36 '../include/utils/SkProxyCanvas.h',
37 '../include/utils/SkSfntUtils.h',
38 '../include/utils/SkTextBox.h',
39 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000040 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000041
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000042 '../src/utils/SkBase64.cpp',
43 '../src/utils/SkBase64.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 '../src/utils/SkBoundaryPatch.cpp',
45 '../src/utils/SkCamera.cpp',
46 '../src/utils/SkColorMatrix.cpp',
47 '../src/utils/SkCubicInterval.cpp',
48 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000049 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/utils/SkDumpCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../src/utils/SkInterpolator.cpp',
52 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000053 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../src/utils/SkMeshUtils.cpp',
55 '../src/utils/SkNinePatch.cpp',
56 '../src/utils/SkNWayCanvas.cpp',
57 '../src/utils/SkOSFile.cpp',
58 '../src/utils/SkParse.cpp',
59 '../src/utils/SkParseColor.cpp',
60 '../src/utils/SkParsePath.cpp',
61 '../src/utils/SkProxyCanvas.cpp',
62 '../src/utils/SkSfntUtils.cpp',
63 '../src/utils/SkUnitMappers.cpp',
64
bungeman@google.com9df621d2011-06-23 21:43:52 +000065 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000066 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000067 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000068
bungeman@google.com9df621d2011-06-23 21:43:52 +000069 #sdl
bungeman@google.com63aab2f2011-06-01 16:15:43 +000070 '../src/utils/SDL/SkOSWindow_SDL.cpp',
71
bungeman@google.com9df621d2011-06-23 21:43:52 +000072 #*nix
bungeman@google.com63aab2f2011-06-01 16:15:43 +000073 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000074 '../src/utils/unix/SkOSWindow_Unix.cpp',
75
bungeman@google.com9df621d2011-06-23 21:43:52 +000076 #windows
77 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000078 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000079 '../include/utils/win/SkIStream.h',
80 '../include/utils/win/SkTScopedComPtr.h',
81 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000082 '../src/utils/win/skia_win.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +000083 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000084 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000085 '../src/utils/win/SkOSWindow_win.cpp',
86 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000087 ],
88 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000089 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000090 ],
91 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000092 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000093 'link_settings': {
94 'libraries': [
95 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
96 ],
97 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000098 'direct_dependent_settings': {
99 'include_dirs': [
100 '../include/utils/mac',
101 ],
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',
yangsu@google.coma8540412011-08-30 14:40:49 +0000110 '../src/utils/mac/skia_mac.mm',
111 '../src/utils/mac/SkOSWindow_Mac.mm',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000112 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000113 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000114 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000115 'link_settings': {
116 'libraries': [
117 '-lGL',
118 '-lGLU',
119 ],
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.com63aab2f2011-06-01 16:15:43 +0000125 'sources!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000126 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000127 '../src/utils/unix/SkOSWindow_Unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000128 ],
129 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000130 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000131 'direct_dependent_settings': {
132 'include_dirs': [
133 '../include/utils/win',
134 ],
135 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000136 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000137 'include_dirs!': [
138 '../include/utils/win',
139 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000140 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000141 'sources!': [
142 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000143 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000144 '../include/utils/win/SkIStream.h',
145 '../include/utils/win/SkTScopedComPtr.h',
146 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000147 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000148 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000149 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000150 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000151 ],
152 'direct_dependent_settings': {
153 'include_dirs': [
154 '../include/utils',
155 ],
156 },
157 },
158 ],
159}
160
161# Local Variables:
162# tab-width:2
163# indent-tabs-mode:nil
164# End:
165# vim: set expandtab tabstop=2 shiftwidth=2: