blob: d8c421dd9bba35abbf26789ad141c0e17b645926 [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
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',
junov@google.com4370aed2012-01-18 16:21:08 +000047 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000048 '../src/utils/SkDumpCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../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',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000066
bungeman@google.com9df621d2011-06-23 21:43:52 +000067 #sdl
bungeman@google.com63aab2f2011-06-01 16:15:43 +000068 '../src/utils/SDL/SkOSWindow_SDL.cpp',
69
bungeman@google.com9df621d2011-06-23 21:43:52 +000070 #*nix
bungeman@google.com63aab2f2011-06-01 16:15:43 +000071 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000072 '../src/utils/unix/SkOSWindow_Unix.cpp',
73
bungeman@google.com9df621d2011-06-23 21:43:52 +000074 #windows
75 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000076 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000077 '../include/utils/win/SkIStream.h',
78 '../include/utils/win/SkTScopedComPtr.h',
79 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000080 '../src/utils/win/skia_win.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/SkOSWindow_win.cpp',
84 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000085 ],
86 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000087 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 ],
89 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000090 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000091 'link_settings': {
92 'libraries': [
93 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
94 ],
95 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000096 'direct_dependent_settings': {
97 'include_dirs': [
98 '../include/utils/mac',
99 ],
100 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000101 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000102 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000103 '../include/utils/mac',
104 ],
105 'sources!': [
106 '../include/utils/mac/SkCGUtils.h',
107 '../src/utils/mac/SkCreateCGImageRef.cpp',
yangsu@google.coma8540412011-08-30 14:40:49 +0000108 '../src/utils/mac/skia_mac.mm',
109 '../src/utils/mac/SkOSWindow_Mac.mm',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000110 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000111 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000112 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000113 'link_settings': {
114 'libraries': [
115 '-lGL',
116 '-lGLU',
117 ],
118 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000119 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000120 'include_dirs!': [
121 '../include/utils/unix',
122 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000123 'sources!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000124 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000125 '../src/utils/unix/SkOSWindow_Unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000126 ],
127 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000128 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000129 'direct_dependent_settings': {
130 'include_dirs': [
131 '../include/utils/win',
132 ],
133 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000134 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000135 'include_dirs!': [
136 '../include/utils/win',
137 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000138 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000139 'sources!': [
140 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000141 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000142 '../include/utils/win/SkIStream.h',
143 '../include/utils/win/SkTScopedComPtr.h',
144 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000145 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000146 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000147 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000148 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000149 ],
150 'direct_dependent_settings': {
151 'include_dirs': [
152 '../include/utils',
153 ],
154 },
155 },
156 ],
157}
158
159# Local Variables:
160# tab-width:2
161# indent-tabs-mode:nil
162# End:
163# vim: set expandtab tabstop=2 shiftwidth=2: