Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(935)

Side by Side Diff: runtime/embedders/openglui/openglui_embedder.gypi

Issue 25081002: Remove openglui embedder code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/embedders/openglui/emulator/emulator_resource.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file.
4
5 {
6 # TODO(gram) : figure out how to make this be autoconfigured.
7 # I've tried a bunch of things with no success yet.
8 'variables': {
9 'skia_build_flag' : '--release',
10 'skia_libs_location_android': '-Lthird_party/skia/trunk/out/config/android-x 86/Release/obj.target/gyp',
11 'skia_libs_location_desktop': '-Lthird_party/skia/trunk/out/Release',
12 },
13 'conditions': [
14 ['OS=="android"',
15 {
16 'targets': [
17 {
18 # Dart shared library for Android.
19 'target_name': 'android_embedder',
20 'type': 'shared_library',
21 'dependencies': [
22 'skia-android',
23 'libdart_lib_withcore',
24 'libdart_vm',
25 'libjscre',
26 'libdouble_conversion',
27 'generate_version_cc_file#host',
28 ],
29 'include_dirs': [
30 '../..',
31 '../../../third_party/android_tools/ndk/sources/android/native_app _glue',
32 '../../../third_party/skia/trunk/include',
33 '../../../third_party/skia/trunk/include/config',
34 '../../../third_party/skia/trunk/include/core',
35 '../../../third_party/skia/trunk/include/gpu',
36 '../../../third_party/skia/trunk/include/lazy',
37 '../../../third_party/skia/trunk/include/utils',
38 ],
39 'defines': [
40 'DART_SHARED_LIB',
41 '__ANDROID__',
42 'SK_BUILD_FOR_ANDROID',
43 'SK_BUILD_FOR_ANDROID_NDK',
44 ],
45 'sources': [
46 '../../include/dart_api.h',
47 '../../include/dart_debugger_api.h',
48 '../../vm/dart_api_impl.cc',
49 '../../vm/debugger_api_impl.cc',
50 '../../vm/version.h',
51 '../../../third_party/android_tools/ndk/sources/android/native_app _glue/android_native_app_glue.h',
52 '../../../third_party/android_tools/ndk/sources/android/native_app _glue/android_native_app_glue.c',
53 '../../../third_party/skia/trunk/src/core/SkPaintOptionsAndroid.cp p',
54 'android/android_graphics_handler.cc',
55 'android/android_graphics_handler.h',
56 'android/android_input_handler.h',
57 'android/android_resource.h',
58 'android/android_sound_handler.cc',
59 'android/android_sound_handler.h',
60 'android/eventloop.cc',
61 'android/eventloop.h',
62 'android/log.h',
63 'android/main.cc',
64 'android/support_android.cc',
65 'common/canvas_context.cc',
66 'common/canvas_context.h',
67 'common/canvas_state.cc',
68 'common/canvas_state.h',
69 'common/context.h',
70 'common/dart_host.cc',
71 'common/dart_host.h',
72 'common/events.h',
73 'common/extension.cc',
74 'common/extension.h',
75 'common/graphics_handler.cc',
76 'common/graphics_handler.h',
77 'common/image_cache.cc',
78 'common/image_cache.h',
79 'common/input_handler.cc',
80 'common/input_handler.h',
81 'common/isized.h',
82 'common/life_cycle_handler.h',
83 'common/log.h',
84 'common/opengl.h',
85 'common/resource.h',
86 'common/sample.h',
87 'common/sound_handler.cc',
88 'common/sound_handler.h',
89 'common/support.h',
90 'common/timer.cc',
91 'common/timer.h',
92 'common/types.h',
93 'common/vm_glue.cc',
94 'common/vm_glue.h',
95 '<(version_cc_file)',
96 ],
97 'link_settings': {
98 'ldflags': [
99 # The libraries we need should all be in
100 # Lthird_party/skia/trunk/out/config/android-x86/Debug but
101 # As I (gram) want to avoid patching the Skia gyp files to build
102 # real libraries we'll just point to the location of the 'thin'
103 # libraries used by the Skia build for now.
104 # TODO(gram): We need to support debug vs release modes.
105 '<(skia_libs_location_android)',
106 '-z',
107 'muldefs',
108 ],
109 'ldflags!': [
110 '-Wl,--exclude-libs=ALL,-shared',
111 ],
112 'libraries': [
113 '-Wl,--start-group',
114 '-lexpat',
115 '-lfreetype',
116 '-lgif',
117 '-ljpeg',
118 '-lpng',
119 '-lwebp_dec',
120 '-lwebp_utils',
121 '-lwebp_dsp',
122 '-lwebp_enc',
123 '-lskia_core',
124 '-lskia_effects',
125 '-lskia_gr',
126 '-lskia_images',
127 '-lskia_opts',
128 '-lskia_pdf',
129 '-lskia_ports',
130 '-lskia_sfnt',
131 '-lskia_skgr',
132 '-lskia_utils',
133 '-lskia_views',
134 '-lskia_xml',
135 '-lzlib',
136 '-Wl,--end-group',
137 '-llog',
138 '-lc',
139 '-lz',
140 '-landroid',
141 '-lEGL',
142 '-lGLESv2',
143 '-lOpenSLES',
144 '-landroid',
145 ],
146 },
147 },
148 {
149 'target_name': 'skia-android',
150 'type': 'none',
151 'actions': [
152 {
153 'action_name': 'build_skia',
154 'inputs': [
155 'build_skia.sh'
156 ],
157 'outputs': [
158 'dummy' # To force re-execution every time.
159 ],
160 # For now we drive the build from a shell
161 # script, to get us going. Eventually we will
162 # want to either fork Skia or incorporate its
163 # gclient settings into ours, and include its
164 # gyp files within ours, so that it gets built
165 # as part of our tree.
166 'action': [
167 'embedders/openglui/build_skia.sh',
168 '--android',
169 '<(skia_build_flag)',
170 '..'
171 ],
172 'message': 'Building Skia.'
173 }
174 ]
175 }
176 ],
177 },
178 ],
179 ['OS=="mac" or OS=="linux"',
180 {
181 'targets': [
182 {
183 'target_name': 'emulator_embedder',
184 'type': 'static_library',
185 'dependencies': [
186 'skia-desktop',
187 'libdart_lib_withcore',
188 'libdart_vm',
189 'libjscre',
190 'libdouble_conversion',
191 'generate_version_cc_file',
192 ],
193 'include_dirs': [
194 '../..',
195 '/usr/X11/include',
196 '../../../third_party/skia/trunk/include',
197 '../../../third_party/skia/trunk/include/config',
198 '../../../third_party/skia/trunk/include/core',
199 '../../../third_party/skia/trunk/include/gpu',
200 '../../../third_party/skia/trunk/include/lazy',
201 '../../../third_party/skia/trunk/include/utils',
202 ],
203 'defines': [
204 'DART_SHARED_LIB'
205 ],
206 'sources': [
207 '../../include/dart_api.h',
208 '../../include/dart_debugger_api.h',
209 '../../vm/dart_api_impl.cc',
210 '../../vm/debugger_api_impl.cc',
211 '../../vm/version.h',
212 'common/canvas_context.cc',
213 'common/canvas_context.h',
214 'common/canvas_state.cc',
215 'common/canvas_state.h',
216 'common/context.h',
217 'common/dart_host.cc',
218 'common/dart_host.h',
219 'common/events.h',
220 'common/extension.cc',
221 'common/extension.h',
222 'common/graphics_handler.cc',
223 'common/graphics_handler.h',
224 'common/image_cache.cc',
225 'common/image_cache.h',
226 'common/input_handler.cc',
227 'common/input_handler.h',
228 'common/isized.h',
229 'common/life_cycle_handler.h',
230 'common/log.h',
231 'common/opengl.h',
232 'common/resource.h',
233 'common/sample.h',
234 'common/sound_handler.cc',
235 'common/sound_handler.h',
236 'common/support.h',
237 'common/support.h',
238 'common/timer.cc',
239 'common/timer.h',
240 'common/types.h',
241 'common/vm_glue.cc',
242 'common/vm_glue.h',
243 'emulator/emulator_embedder.cc',
244 'emulator/emulator_embedder.h',
245 'emulator/emulator_graphics_handler.cc',
246 'emulator/emulator_graphics_handler.h',
247 'emulator/emulator_resource.h',
248 '<(version_cc_file)',
249 ],
250 'link_settings': {
251 'ldflags': [
252 '-Wall',
253 '<(skia_libs_location_desktop)',
254 '-Wl,--start-group',
255 '-lskia_core',
256 '-lskia_effects',
257 '-lskia_gr',
258 '-lskia_images',
259 '-lskia_opts',
260 '-lskia_opts_ssse3',
261 '-lskia_ports',
262 '-lskia_sfnt',
263 '-lskia_skgr',
264 '-lskia_utils',
265 '-Wl,--end-group',
266 '-lfreetype',
267 ],
268 'libraries': [
269 '-lGL',
270 '-lglut',
271 '-lGLU',
272 '-lm',
273 '-lwebp'
274 ],
275 },
276 'conditions': [
277 ['OS=="mac"', {
278 'xcode_settings' : {
279 'OTHER_LDFLAGS': [ '-framework OpenGL', '-framework GLUT', '-L /usr/X11/lib' ]
280 },
281 }],
282 ]
283 },
284 {
285 'target_name': 'skia-desktop',
286 'type': 'none',
287 'actions': [
288 {
289 'action_name': 'build_skia',
290 'inputs': [
291 'build_skia.sh'
292 ],
293 'outputs': [
294 'dummy' # To force re-execution every time.
295 ],
296 'action': [
297 'embedders/openglui/build_skia.sh',
298 '<(skia_build_flag)',
299 '..'
300 ],
301 'message': 'Building Skia.'
302 }
303 ]
304 }
305 ],
306 },
307 ],
308 ],
309 }
310
OLDNEW
« no previous file with comments | « runtime/embedders/openglui/emulator/emulator_resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698