blob: b4b2be37654837341eac3b6abcafab4aa62c6853 [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',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000039 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000040
41 '../src/utils/SkBoundaryPatch.cpp',
42 '../src/utils/SkCamera.cpp',
43 '../src/utils/SkColorMatrix.cpp',
44 '../src/utils/SkCubicInterval.cpp',
45 '../src/utils/SkCullPoints.cpp',
46 '../src/utils/SkDumpCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../src/utils/SkInterpolator.cpp',
48 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000049 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../src/utils/SkMeshUtils.cpp',
51 '../src/utils/SkNinePatch.cpp',
52 '../src/utils/SkNWayCanvas.cpp',
53 '../src/utils/SkOSFile.cpp',
54 '../src/utils/SkParse.cpp',
55 '../src/utils/SkParseColor.cpp',
56 '../src/utils/SkParsePath.cpp',
57 '../src/utils/SkProxyCanvas.cpp',
58 '../src/utils/SkSfntUtils.cpp',
59 '../src/utils/SkUnitMappers.cpp',
60
bungeman@google.com9df621d2011-06-23 21:43:52 +000061 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000062 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000063 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000064
bungeman@google.com9df621d2011-06-23 21:43:52 +000065 #sdl
bungeman@google.com63aab2f2011-06-01 16:15:43 +000066 '../src/utils/SDL/SkOSWindow_SDL.cpp',
67
bungeman@google.com9df621d2011-06-23 21:43:52 +000068 #*nix
bungeman@google.com63aab2f2011-06-01 16:15:43 +000069 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000070 '../src/utils/unix/SkOSWindow_Unix.cpp',
71
bungeman@google.com9df621d2011-06-23 21:43:52 +000072 #windows
73 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +000074 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +000075 '../include/utils/win/SkIStream.h',
76 '../include/utils/win/SkTScopedComPtr.h',
77 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000078 '../src/utils/win/skia_win.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +000079 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000080 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000081 '../src/utils/win/SkOSWindow_win.cpp',
82 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000083 ],
84 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +000085 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000086 ],
87 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000088 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +000089 'link_settings': {
90 'libraries': [
91 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
92 ],
93 },
bungeman@google.comfe5afe52011-06-24 13:58:17 +000094 'direct_dependent_settings': {
95 'include_dirs': [
96 '../include/utils/mac',
97 ],
98 },
epoger@google.com8846cb22011-07-01 20:20:07 +000099 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000100 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000101 '../include/utils/mac',
102 ],
103 'sources!': [
104 '../include/utils/mac/SkCGUtils.h',
105 '../src/utils/mac/SkCreateCGImageRef.cpp',
yangsu@google.coma8540412011-08-30 14:40:49 +0000106 '../src/utils/mac/skia_mac.mm',
107 '../src/utils/mac/SkOSWindow_Mac.mm',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000108 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000109 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000110 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.com161933b2011-06-03 17:21:21 +0000111 'link_settings': {
112 'libraries': [
113 '-lGL',
114 '-lGLU',
115 ],
116 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000117 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000118 'include_dirs!': [
119 '../include/utils/unix',
120 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000121 'sources!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000122 '../src/utils/unix/keysym2ucs.c',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000123 '../src/utils/unix/SkOSWindow_Unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000124 ],
125 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000126 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000127 'direct_dependent_settings': {
128 'include_dirs': [
129 '../include/utils/win',
130 ],
131 },
epoger@google.com8846cb22011-07-01 20:20:07 +0000132 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000133 'include_dirs!': [
134 '../include/utils/win',
135 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000136 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000137 'sources!': [
138 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000139 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000140 '../include/utils/win/SkIStream.h',
141 '../include/utils/win/SkTScopedComPtr.h',
142 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000143 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000144 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000145 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000146 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000147 ],
148 'direct_dependent_settings': {
149 'include_dirs': [
150 '../include/utils',
151 ],
152 },
153 },
154 ],
155}
156
157# Local Variables:
158# tab-width:2
159# indent-tabs-mode:nil
160# End:
161# vim: set expandtab tabstop=2 shiftwidth=2: