OLD | NEW |
| (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 | |
OLD | NEW |