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

Side by Side Diff: samples/openglui/emulator/emulator.gyp

Issue 12021025: Merge the openglui samples into one. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix emulator sample build 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698