| 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 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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 '../src/raytrace.dart' | 32 '../src/openglui_raytrace.dart', |
| 33 '../src/openglui_canvas_tests.dart' |
| 33 ], | 34 ], |
| 34 }], | 35 }], |
| 35 }, | 36 }, |
| 36 { | 37 { |
| 37 'target_name': 'mobile_emulator', | 38 'target_name': 'mobile_emulator', |
| 38 'type': 'executable', | 39 'type': 'executable', |
| 39 'dependencies': [ | 40 'dependencies': [ |
| 40 '../../../runtime/dart-runtime.gyp:emulator_embedder', | 41 '../../../runtime/dart-runtime.gyp:emulator_embedder', |
| 41 ], | 42 ], |
| 42 'include_dirs': [ | 43 'include_dirs': [ |
| 43 '../../../runtime', | 44 '../../../runtime', |
| 44 '/usr/X11/include', | 45 '/usr/X11/include', |
| 45 ], | 46 ], |
| 46 'sources': [ | 47 'sources': [ |
| 47 'mobile_emulator_sample.cc', | 48 'mobile_emulator_sample.cc', |
| 48 ], | 49 ], |
| 49 'conditions': [ | 50 'conditions': [ |
| 50 ['OS=="linux"', | 51 ['OS=="linux"', |
| 51 { | 52 { |
| 52 'link_settings': { | 53 'link_settings': { |
| 53 'libraries': [ '-lGL', '-lglut', '-lGLU', '-lm', '-lc' ], | 54 'libraries': [ |
| 55 '-Wl,--start-group', |
| 56 '-lskia_effects', |
| 57 '-lskia_images', |
| 58 '-lskia_core', |
| 59 '-lskia_opts', |
| 60 '-lskia_opts_ssse3', |
| 61 '-lskia_ports', |
| 62 '-lskia_sfnt', |
| 63 '-lskia_utils', |
| 64 '-lskia_gr', |
| 65 '-lskia_skgr', |
| 66 '-Wl,--end-group', |
| 67 '-lfreetype', |
| 68 '-lGL', |
| 69 '-lglut', |
| 70 '-lGLU', |
| 71 '-lm', |
| 72 '-lc' ], |
| 73 'ldflags': [ |
| 74 '-Wall', |
| 75 '-g', |
| 76 # TODO(gram): handle release mode. |
| 77 '-Lthird_party/skia-desktop/trunk/out/Debug', |
| 78 ], |
| 54 }, | 79 }, |
| 55 } | 80 } |
| 56 ], | 81 ], |
| 57 ['OS=="mac"', | 82 ['OS=="mac"', |
| 58 { | 83 { |
| 59 'ldflags': [ | 84 'ldflags': [ |
| 60 '-framework OpenGL', | 85 '-framework OpenGL', |
| 61 '-framework GLUT', | 86 '-framework GLUT', |
| 62 '-L /usr/X11/lib' | 87 '-L /usr/X11/lib' |
| 63 ], | 88 ], |
| 64 } | 89 } |
| 65 ] | 90 ] |
| 66 ] | 91 ] |
| 67 } | 92 } |
| 68 ] | 93 ] |
| 69 } | 94 } |
| 70 | 95 |
| OLD | NEW |