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

Side by Side Diff: samples/mobile_emulator_sample/mobile_emulator_sample.gyp

Issue 11883013: Refactored OpenGL embedder that works on Android, Mac or Linux. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
OLDNEW
(Empty)
1 # Copyright (c) 2012, 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 # We should be able to make this work on Mac. We need:
6 # -framework OpenGL -framework GLUT -lm -L /usr/X11/lib
7
8 {
9 'targets': [
10 {
11 'target_name': 'mobile_emulator_sample',
12 'type': 'none',
13 'conditions': [
14 ['OS=="linux" or OS=="mac"',
15 {
16 'dependencies': [
17 '../../runtime/dart-runtime.gyp:emulator_embedder',
18 'mobile_emulator',
19 'copy_dart_files'
20 ]
21 }
22 ]
23 ]
24 },
25 {
26 'target_name': 'copy_dart_files',
27 'type': 'none',
28 'copies': [ {
29 'destination': '<(PRODUCT_DIR)',
30 'files': [
31 '../../runtime/embedders/openglui/common/gl.dart',
32 '../../samples/simplegl/web/raytrace.dart'
33 ],
34 }],
35 },
36 {
37 'target_name': 'mobile_emulator',
38 'type': 'executable',
39 'dependencies': [
40 '../../runtime/dart-runtime.gyp:emulator_embedder',
41 ],
42 'include_dirs': [
43 '../../runtime',
44 '/usr/X11/include',
45 ],
46 'sources': [
47 'mobile_emulator_sample.cc',
48 ],
49 'conditions': [
50 ['OS=="linux"',
51 {
52 'link_settings': {
53 'libraries': [ '-lGL', '-lglut', '-lGLU', '-lm', '-lc' ],
54 },
55 }
56 ],
57 ['OS=="mac"',
58 {
59 'ldflags': [
60 '-framework OpenGL',
61 '-framework GLUT',
62 '-L /usr/X11/lib'
63 ],
64 }
65 ]
66 ]
67 }
68 ]
69 }
70
OLDNEW
« no previous file with comments | « samples/mobile_emulator_sample/mobile_emulator_sample.cc ('k') | samples/simplegl/web/gl_driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698