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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/mobile_emulator_sample/mobile_emulator_sample.gyp
===================================================================
--- samples/mobile_emulator_sample/mobile_emulator_sample.gyp (revision 0)
+++ samples/mobile_emulator_sample/mobile_emulator_sample.gyp (revision 0)
@@ -0,0 +1,70 @@
+# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+# We should be able to make this work on Mac. We need:
+# -framework OpenGL -framework GLUT -lm -L /usr/X11/lib
+
+{
+ 'targets': [
+ {
+ 'target_name': 'mobile_emulator_sample',
+ 'type': 'none',
+ 'conditions': [
+ ['OS=="linux" or OS=="mac"',
+ {
+ 'dependencies': [
+ '../../runtime/dart-runtime.gyp:emulator_embedder',
+ 'mobile_emulator',
+ 'copy_dart_files'
+ ]
+ }
+ ]
+ ]
+ },
+ {
+ 'target_name': 'copy_dart_files',
+ 'type': 'none',
+ 'copies': [ {
+ 'destination': '<(PRODUCT_DIR)',
+ 'files': [
+ '../../runtime/embedders/openglui/common/gl.dart',
+ '../../samples/simplegl/web/raytrace.dart'
+ ],
+ }],
+ },
+ {
+ 'target_name': 'mobile_emulator',
+ 'type': 'executable',
+ 'dependencies': [
+ '../../runtime/dart-runtime.gyp:emulator_embedder',
+ ],
+ 'include_dirs': [
+ '../../runtime',
+ '/usr/X11/include',
+ ],
+ 'sources': [
+ 'mobile_emulator_sample.cc',
+ ],
+ 'conditions': [
+ ['OS=="linux"',
+ {
+ 'link_settings': {
+ 'libraries': [ '-lGL', '-lglut', '-lGLU', '-lm', '-lc' ],
+ },
+ }
+ ],
+ ['OS=="mac"',
+ {
+ 'ldflags': [
+ '-framework OpenGL',
+ '-framework GLUT',
+ '-L /usr/X11/lib'
+ ],
+ }
+ ]
+ ]
+ }
+ ]
+}
+
« 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