OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 # We should be able to make this work on Mac. We need: | 5 # We should be able to make this work on Mac. We need: |
6 # -framework OpenGL -framework GLUT -lm -L /usr/X11/lib | 6 # -framework OpenGL -framework GLUT -lm -L /usr/X11/lib |
7 | 7 |
8 { | 8 { |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'mobile_emulator_sample', | 11 'target_name': 'mobile_emulator_sample', |
12 'type': 'none', | 12 'type': 'none', |
13 'conditions': [ | 13 'conditions': [ |
14 ['OS=="linux" or OS=="mac"', | 14 ['OS=="linux" or OS=="mac"', |
15 { | 15 { |
16 'dependencies': [ | 16 'dependencies': [ |
17 '../../runtime/dart-runtime.gyp:emulator_embedder', | 17 '../../../runtime/dart-runtime.gyp:emulator_embedder', |
18 'mobile_emulator', | 18 'mobile_emulator', |
19 'copy_dart_files' | 19 'copy_dart_files' |
20 ] | 20 ] |
21 } | 21 } |
22 ] | 22 ] |
23 ] | 23 ] |
24 }, | 24 }, |
25 { | 25 { |
26 'target_name': 'copy_dart_files', | 26 'target_name': 'copy_dart_files', |
27 'type': 'none', | 27 'type': 'none', |
28 'copies': [ { | 28 'copies': [ { |
29 'destination': '<(PRODUCT_DIR)', | 29 'destination': '<(PRODUCT_DIR)', |
30 'files': [ | 30 'files': [ |
31 '../../runtime/embedders/openglui/common/gl.dart', | 31 '../../../runtime/embedders/openglui/common/gl.dart', |
32 '../../samples/simplegl/web/raytrace.dart' | 32 '../src/raytrace.dart' |
33 ], | 33 ], |
34 }], | 34 }], |
35 }, | 35 }, |
36 { | 36 { |
37 'target_name': 'mobile_emulator', | 37 'target_name': 'mobile_emulator', |
38 'type': 'executable', | 38 'type': 'executable', |
39 'dependencies': [ | 39 'dependencies': [ |
40 '../../runtime/dart-runtime.gyp:emulator_embedder', | 40 '../../../runtime/dart-runtime.gyp:emulator_embedder', |
41 ], | 41 ], |
42 'include_dirs': [ | 42 'include_dirs': [ |
43 '../../runtime', | 43 '../../../runtime', |
44 '/usr/X11/include', | 44 '/usr/X11/include', |
45 ], | 45 ], |
46 'sources': [ | 46 'sources': [ |
47 'mobile_emulator_sample.cc', | 47 'mobile_emulator_sample.cc', |
48 ], | 48 ], |
49 'conditions': [ | 49 'conditions': [ |
50 ['OS=="linux"', | 50 ['OS=="linux"', |
51 { | 51 { |
52 'link_settings': { | 52 'link_settings': { |
53 'libraries': [ '-lGL', '-lglut', '-lGLU', '-lm', '-lc' ], | 53 'libraries': [ '-lGL', '-lglut', '-lGLU', '-lm', '-lc' ], |
54 }, | 54 }, |
55 } | 55 } |
56 ], | 56 ], |
57 ['OS=="mac"', | 57 ['OS=="mac"', |
58 { | 58 { |
59 'ldflags': [ | 59 'ldflags': [ |
60 '-framework OpenGL', | 60 '-framework OpenGL', |
61 '-framework GLUT', | 61 '-framework GLUT', |
62 '-L /usr/X11/lib' | 62 '-L /usr/X11/lib' |
63 ], | 63 ], |
64 } | 64 } |
65 ] | 65 ] |
66 ] | 66 ] |
67 } | 67 } |
68 ] | 68 ] |
69 } | 69 } |
70 | 70 |
OLD | NEW |