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' |
+ ], |
+ } |
+ ] |
+ ] |
+ } |
+ ] |
+} |
+ |