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

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

Issue 13345002: Cleaned up OpenGLUI samples and added Blasteroids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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_app',
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 'decode_png' 20 'copy_assets',
21 ] 21 ]
22 } 22 }
23 ] 23 ]
24 ] 24 ]
25 }, 25 },
26 { 26 {
27 'target_name': 'copy_dart_files', 27 'target_name': 'copy_dart_files',
28 'type': 'none', 28 'type': 'none',
29 'copies': [ { 29 'copies': [ {
30 'destination': '<(PRODUCT_DIR)', 30 'destination': '<(PRODUCT_DIR)',
31 'files': [ 31 'files': [
32 '../../../runtime/embedders/openglui/common/gl.dart', 32 '../../../runtime/embedders/openglui/common/gl.dart',
33 '../src/openglui_raytrace.dart', 33 '../src/openglui_raytrace.dart',
34 '../src/openglui_canvas_tests.dart' 34 '../src/openglui_canvas_tests.dart',
35 '../src/flashingbox.dart',
36 '../src/blasteroids.dart'
35 ], 37 ],
36 }], 38 }],
37 }, 39 },
38 { 40 {
39 'target_name': 'decode_png', 41 'target_name': 'copy_assets',
40 'type': 'none', 42 'type': 'none',
41 'actions': [ 43 'copies': [ {
42 { 44 'destination': '<(PRODUCT_DIR)',
43 'action_name': 'decode', 45 'files': [
44 'inputs': [ 46 '../web/asteroid1.png',
45 '../src/chrome.hex' 47 '../web/asteroid2.png',
46 ], 48 '../web/asteroid3.png',
47 'outputs': [ 49 '../web/asteroid4.png',
48 '<(PRODUCT_DIR)/chrome.png', 50 '../web/bg3_1.png',
49 ], 51 '../web/enemyship1.png',
50 'action': [ 'xxd', '-r', '../src/chrome.hex', 52 '../web/player.png',
51 '<(PRODUCT_DIR)/chrome.png' ] 53 '../web/shield.png',
52 } 54 ],
53 ] 55 }],
54 }, 56 },
55 { 57 {
56 'target_name': 'mobile_emulator', 58 'target_name': 'mobile_emulator',
57 'type': 'executable', 59 'type': 'executable',
58 'dependencies': [ 60 'dependencies': [
59 '../../../runtime/dart-runtime.gyp:emulator_embedder', 61 '../../../runtime/dart-runtime.gyp:emulator_embedder',
60 ], 62 ],
61 'include_dirs': [ 63 'include_dirs': [
62 '../../../runtime', 64 '../../../runtime',
63 '/usr/X11/include', 65 '/usr/X11/include',
(...skipping 21 matching lines...) Expand all
85 '-lfontconfig', 87 '-lfontconfig',
86 '-lfreetype', 88 '-lfreetype',
87 '-lGL', 89 '-lGL',
88 '-lglut', 90 '-lglut',
89 '-lGLU', 91 '-lGLU',
90 '-lpng', 92 '-lpng',
91 '-lm', 93 '-lm',
92 '-lc' ], 94 '-lc' ],
93 'ldflags': [ 95 'ldflags': [
94 '-Wall', 96 '-Wall',
95 '-g',
96 # TODO(gram): handle release mode. 97 # TODO(gram): handle release mode.
97 '-Lthird_party/skia/trunk/out/Debug', 98 '-Lthird_party/skia/trunk/out/Debug',
98 ], 99 ],
99 }, 100 },
100 } 101 }
101 ], 102 ],
102 ['OS=="mac"', 103 ['OS=="mac"',
103 { 104 {
104 'ldflags': [ 105 'ldflags': [
105 '-framework OpenGL', 106 '-framework OpenGL',
106 '-framework GLUT', 107 '-framework GLUT',
107 '-L /usr/X11/lib' 108 '-L /usr/X11/lib'
108 ], 109 ],
109 } 110 }
110 ] 111 ]
111 ] 112 ]
112 } 113 }
113 ] 114 ]
114 } 115 }
115 116
OLDNEW
« no previous file with comments | « samples/openglui/android/src/com/google/dartndk/DummyActivity.java ('k') | samples/openglui/openglui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698