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

Side by Side Diff: runtime/embedders/openglui/openglui_embedder.gypi

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
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.
4
5 {
6 'conditions': [
7 ['OS=="android"',
8 {
9 'targets': [
10 {
11 # Dart shared library for Android.
12 'target_name': 'android_embedder',
13 'type': 'shared_library',
14 'dependencies': [
15 'libdart_lib_withcore',
16 'libdart_vm',
17 'libjscre',
18 'libdouble_conversion',
19 'generate_version_cc_file',
20 ],
21 'include_dirs': [
22 '../..',
23 '../../../third_party/android_tools/ndk/sources/android/native_app _glue',
24 ],
25 'defines': [
26 'DART_SHARED_LIB',
27 '__ANDROID__'
28 ],
29 'sources': [
30 '../../include/dart_api.h',
31 '../../include/dart_debugger_api.h',
32 '../../vm/dart_api_impl.cc',
33 '../../vm/debugger_api_impl.cc',
34 '../../vm/version.h',
35 '../../../third_party/android_tools/ndk/sources/android/native_app _glue/android_native_app_glue.h',
36 '../../../third_party/android_tools/ndk/sources/android/native_app _glue/android_native_app_glue.c',
37 'android/android_graphics_handler.cc',
38 'android/android_graphics_handler.h',
39 'android/android_input_handler.h',
40 'android/android_resource.h',
41 'android/android_sound_handler.cc',
42 'android/android_sound_handler.h',
43 'android/eventloop.cc',
44 'android/eventloop.h',
45 'android/log.h',
46 'android/main.cc',
47 'android/support_android.cc',
48 'common/context.h',
49 'common/dart_host.cc',
50 'common/dart_host.h',
51 'common/events.h',
52 'common/extension.cc',
53 'common/extension.h',
54 'common/gl_graphics_handler.cc',
55 'common/gl_graphics_handler.h',
56 'common/graphics_handler.h',
57 'common/input_handler.cc',
58 'common/input_handler.h',
59 'common/isized.h',
60 'common/life_cycle_handler.h',
61 'common/log.h',
62 'common/opengl.h',
63 'common/resource.h',
64 'common/sample.h',
65 'common/sound_handler.cc',
66 'common/sound_handler.h',
67 'common/timer.cc',
68 'common/timer.h',
69 'common/types.h',
70 'common/vm_glue.cc',
71 'common/vm_glue.h',
72 '<(version_cc_file)',
73 ],
74 'link_settings': {
75 'libraries': [ '-llog', '-lc', '-landroid', '-lEGL', '-lGLESv2', ' -lOpenSLES', '-landroid' ],
76 'ldflags': [
77 '-z', 'muldefs'
78 ],
79 'ldflags!': [
80 '-Wl,--exclude-libs=ALL',
81 ],
82 },
83 },
84 ],
85 },
86 ],
87 ['OS=="mac" or OS=="linux"',
88 {
89 'targets': [
90 {
91 'target_name': 'emulator_embedder',
92 'type': 'shared_library',
93 'dependencies': [
94 'libdart_lib_withcore',
95 'libdart_vm',
96 'libjscre',
97 'libdouble_conversion',
98 'generate_version_cc_file',
99 ],
100 'include_dirs': [
101 '../..',
102 ],
103 'defines': [
104 'DART_SHARED_LIB'
105 ],
106 'sources': [
107 '../../include/dart_api.h',
108 '../../include/dart_debugger_api.h',
109 '../../vm/dart_api_impl.cc',
110 '../../vm/debugger_api_impl.cc',
111 '../../vm/version.h',
112 'common/context.h',
113 'common/dart_host.cc',
114 'common/dart_host.h',
115 'common/events.h',
116 'common/extension.cc',
117 'common/extension.h',
118 'common/gl_graphics_handler.cc',
119 'common/gl_graphics_handler.h',
120 'common/graphics_handler.h',
121 'common/input_handler.cc',
122 'common/input_handler.h',
123 'common/isized.h',
124 'common/life_cycle_handler.h',
125 'common/log.h',
126 'common/opengl.h',
127 'common/resource.h',
128 'common/sample.h',
129 'common/sound_handler.cc',
130 'common/sound_handler.h',
131 'common/timer.cc',
132 'common/timer.h',
133 'common/types.h',
134 'common/vm_glue.cc',
135 'common/vm_glue.h',
136 'emulator/emulator_embedder.cc',
137 'emulator/emulator_embedder.h',
138 'emulator/emulator_graphics_handler.cc',
139 'emulator/emulator_graphics_handler.h',
140 'emulator/emulator_resource.h',
141 '<(version_cc_file)',
142 ],
143 'conditions': [
144 ['OS=="mac"', {
145 'xcode_settings' : {
146 'OTHER_LDFLAGS': [ '-framework OpenGL', '-framework GLUT', '-L /usr/X11/lib' ]
147 },
148 }],
149 ]
150 },
151 ],
152 },
153 ],
154 ],
155 }
156
OLDNEW
« no previous file with comments | « runtime/embedders/openglui/emulator/emulator_resource.h ('k') | samples/android_sample/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698