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

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

Issue 12186002: Canvas API. There are still a number of things to do: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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) 2013, the Dart project authors. Please see the AUTHORS file 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 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 { 5 {
6 'conditions': [ 6 'conditions': [
7 ['OS=="android"', 7 ['OS=="android"',
8 { 8 {
9 'targets': [ 9 'targets': [
10 { 10 {
11 # Dart shared library for Android. 11 # Dart shared library for Android.
12 'target_name': 'android_embedder', 12 'target_name': 'android_embedder',
13 'type': 'shared_library', 13 'type': 'shared_library',
14 'dependencies': [ 14 'dependencies': [
15 'skia-android',
15 'libdart_lib_withcore', 16 'libdart_lib_withcore',
16 'libdart_vm', 17 'libdart_vm',
17 'libjscre', 18 'libjscre',
18 'libdouble_conversion', 19 'libdouble_conversion',
19 'generate_version_cc_file', 20 'generate_version_cc_file',
20 ], 21 ],
21 'include_dirs': [ 22 'include_dirs': [
22 '../..', 23 '../..',
23 '../../../third_party/android_tools/ndk/sources/android/native_app _glue', 24 '../../../third_party/android_tools/ndk/sources/android/native_app _glue',
25 '../../../third_party/skia/trunk/include',
26 '../../../third_party/skia/trunk/include/config',
27 '../../../third_party/skia/trunk/include/core',
28 '../../../third_party/skia/trunk/include/gpu',
29 '../../../third_party/skia/trunk/include/utils',
24 ], 30 ],
25 'defines': [ 31 'defines': [
26 'DART_SHARED_LIB', 32 'DART_SHARED_LIB',
27 '__ANDROID__' 33 '__ANDROID__',
34 'SK_BUILD_FOR_ANDROID',
35 'SK_BUILD_FOR_ANDROID_NDK',
28 ], 36 ],
29 'sources': [ 37 'sources': [
30 '../../include/dart_api.h', 38 '../../include/dart_api.h',
31 '../../include/dart_debugger_api.h', 39 '../../include/dart_debugger_api.h',
32 '../../vm/dart_api_impl.cc', 40 '../../vm/dart_api_impl.cc',
33 '../../vm/debugger_api_impl.cc', 41 '../../vm/debugger_api_impl.cc',
34 '../../vm/version.h', 42 '../../vm/version.h',
35 '../../../third_party/android_tools/ndk/sources/android/native_app _glue/android_native_app_glue.h', 43 '../../../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', 44 '../../../third_party/android_tools/ndk/sources/android/native_app _glue/android_native_app_glue.c',
37 'android/android_graphics_handler.cc', 45 'android/android_graphics_handler.cc',
38 'android/android_graphics_handler.h', 46 'android/android_graphics_handler.h',
39 'android/android_input_handler.h', 47 'android/android_input_handler.h',
40 'android/android_resource.h', 48 'android/android_resource.h',
41 'android/android_sound_handler.cc', 49 'android/android_sound_handler.cc',
42 'android/android_sound_handler.h', 50 'android/android_sound_handler.h',
43 'android/eventloop.cc', 51 'android/eventloop.cc',
44 'android/eventloop.h', 52 'android/eventloop.h',
45 'android/log.h', 53 'android/log.h',
46 'android/main.cc', 54 'android/main.cc',
47 'android/support_android.cc', 55 'android/support_android.cc',
56 'common/canvas_context.cc',
57 'common/canvas_context.h',
58 'common/canvas_state.cc',
59 'common/canvas_state.h',
48 'common/context.h', 60 'common/context.h',
49 'common/dart_host.cc', 61 'common/dart_host.cc',
50 'common/dart_host.h', 62 'common/dart_host.h',
51 'common/events.h', 63 'common/events.h',
52 'common/extension.cc', 64 'common/extension.cc',
53 'common/extension.h', 65 'common/extension.h',
54 'common/gl_graphics_handler.cc', 66 'common/graphics_handler.cc',
55 'common/gl_graphics_handler.h',
56 'common/graphics_handler.h', 67 'common/graphics_handler.h',
57 'common/input_handler.cc', 68 'common/input_handler.cc',
58 'common/input_handler.h', 69 'common/input_handler.h',
59 'common/isized.h', 70 'common/isized.h',
60 'common/life_cycle_handler.h', 71 'common/life_cycle_handler.h',
61 'common/log.h', 72 'common/log.h',
62 'common/opengl.h', 73 'common/opengl.h',
63 'common/resource.h', 74 'common/resource.h',
64 'common/sample.h', 75 'common/sample.h',
65 'common/sound_handler.cc', 76 'common/sound_handler.cc',
66 'common/sound_handler.h', 77 'common/sound_handler.h',
78 'common/support.h',
67 'common/timer.cc', 79 'common/timer.cc',
68 'common/timer.h', 80 'common/timer.h',
69 'common/types.h', 81 'common/types.h',
70 'common/vm_glue.cc', 82 'common/vm_glue.cc',
71 'common/vm_glue.h', 83 'common/vm_glue.h',
72 '<(version_cc_file)', 84 '<(version_cc_file)',
73 ], 85 ],
74 'link_settings': { 86 'link_settings': {
75 'libraries': [ '-llog', '-lc', '-landroid', '-lEGL', '-lGLESv2', ' -lOpenSLES', '-landroid' ],
76 'ldflags': [ 87 'ldflags': [
77 '-z', 'muldefs' 88 # The libraries we need should all be in
89 # Lthird_party/skia/trunk/out/config/android-x86/Debug but
90 # As I (gram) want to avoid patching the Skia gyp files to build
91 # real libraries we'll just point to the location of the 'thin'
92 # libraries used by the Skia build for now.
93 # TODO(gram): We need to support debug vs release modes.
94 '-Lthird_party/skia/trunk/out/config/android-x86/Debug/obj.targe t/gyp',
95 '-z',
96 'muldefs',
97 '-g'
78 ], 98 ],
79 'ldflags!': [ 99 'ldflags!': [
80 '-Wl,--exclude-libs=ALL', 100 '-Wl,--exclude-libs=ALL,-shared',
101 ],
102 'libraries': [
103 '-Wl,--start-group',
104 '-lexpat',
105 '-lfreetype',
106 '-lgif',
107 '-ljpeg',
108 '-lpng',
109 '-lskia_core',
110 '-lskia_effects',
111 '-lskia_gr',
112 '-lskia_images',
113 '-lskia_opts',
114 '-lskia_pdf',
115 '-lskia_ports',
116 '-lskia_sfnt',
117 '-lskia_skgr',
118 '-lskia_utils',
119 '-lskia_views',
120 '-lskia_xml',
121 '-lzlib',
122 '-Wl,--end-group',
123 '-llog',
124 '-lc',
125 '-lz',
126 '-landroid',
127 '-lEGL',
128 '-lGLESv2',
129 '-lOpenSLES',
130 '-landroid',
81 ], 131 ],
82 }, 132 },
83 }, 133 },
134 {
135 'target_name': 'skia-android',
136 'type': 'none',
137 'actions': [
138 {
139 'action_name': 'build_skia',
140 'inputs': [
141 'build_skia.sh'
142 ],
143 'outputs': [
144 '../../../third_party/skia/trunk/out/config/android-x86/Debug/ libskia_core.a'
145 ],
146 'action': [
147 'embedders/openglui/build_skia.sh',
148 '--android',
149 '..'
150 ],
151 'message': 'Building Skia.'
152 }
153 ]
154 }
84 ], 155 ],
85 }, 156 },
86 ], 157 ],
87 ['OS=="mac" or OS=="linux"', 158 ['OS=="mac" or OS=="linux"',
88 { 159 {
89 'targets': [ 160 'targets': [
90 { 161 {
91 'target_name': 'emulator_embedder', 162 'target_name': 'emulator_embedder',
92 'type': 'shared_library', 163 'type': 'shared_library',
93 'dependencies': [ 164 'dependencies': [
165 'skia-desktop',
94 'libdart_lib_withcore', 166 'libdart_lib_withcore',
95 'libdart_vm', 167 'libdart_vm',
96 'libjscre', 168 'libjscre',
97 'libdouble_conversion', 169 'libdouble_conversion',
98 'generate_version_cc_file', 170 'generate_version_cc_file',
99 ], 171 ],
100 'include_dirs': [ 172 'include_dirs': [
101 '../..', 173 '../..',
174 '/usr/X11/include',
175 '../../../third_party/skia/trunk/include',
176 '../../../third_party/skia/trunk/include/config',
177 '../../../third_party/skia/trunk/include/core',
178 '../../../third_party/skia/trunk/include/gpu',
179 '../../../third_party/skia/trunk/include/utils',
102 ], 180 ],
103 'defines': [ 181 'defines': [
104 'DART_SHARED_LIB' 182 'DART_SHARED_LIB'
105 ], 183 ],
106 'sources': [ 184 'sources': [
107 '../../include/dart_api.h', 185 '../../include/dart_api.h',
108 '../../include/dart_debugger_api.h', 186 '../../include/dart_debugger_api.h',
109 '../../vm/dart_api_impl.cc', 187 '../../vm/dart_api_impl.cc',
110 '../../vm/debugger_api_impl.cc', 188 '../../vm/debugger_api_impl.cc',
111 '../../vm/version.h', 189 '../../vm/version.h',
190 'common/canvas_context.cc',
191 'common/canvas_context.h',
192 'common/canvas_state.cc',
193 'common/canvas_state.h',
112 'common/context.h', 194 'common/context.h',
113 'common/dart_host.cc', 195 'common/dart_host.cc',
114 'common/dart_host.h', 196 'common/dart_host.h',
115 'common/events.h', 197 'common/events.h',
116 'common/extension.cc', 198 'common/extension.cc',
117 'common/extension.h', 199 'common/extension.h',
118 'common/gl_graphics_handler.cc', 200 'common/graphics_handler.cc',
119 'common/gl_graphics_handler.h',
120 'common/graphics_handler.h', 201 'common/graphics_handler.h',
121 'common/input_handler.cc', 202 'common/input_handler.cc',
122 'common/input_handler.h', 203 'common/input_handler.h',
123 'common/isized.h', 204 'common/isized.h',
124 'common/life_cycle_handler.h', 205 'common/life_cycle_handler.h',
125 'common/log.h', 206 'common/log.h',
126 'common/opengl.h', 207 'common/opengl.h',
127 'common/resource.h', 208 'common/resource.h',
128 'common/sample.h', 209 'common/sample.h',
129 'common/sound_handler.cc', 210 'common/sound_handler.cc',
130 'common/sound_handler.h', 211 'common/sound_handler.h',
212 'common/support.h',
213 'common/support.h',
131 'common/timer.cc', 214 'common/timer.cc',
132 'common/timer.h', 215 'common/timer.h',
133 'common/types.h', 216 'common/types.h',
134 'common/vm_glue.cc', 217 'common/vm_glue.cc',
135 'common/vm_glue.h', 218 'common/vm_glue.h',
136 'emulator/emulator_embedder.cc', 219 'emulator/emulator_embedder.cc',
137 'emulator/emulator_embedder.h', 220 'emulator/emulator_embedder.h',
138 'emulator/emulator_graphics_handler.cc', 221 'emulator/emulator_graphics_handler.cc',
139 'emulator/emulator_graphics_handler.h', 222 'emulator/emulator_graphics_handler.h',
140 'emulator/emulator_resource.h', 223 'emulator/emulator_resource.h',
141 '<(version_cc_file)', 224 '<(version_cc_file)',
142 ], 225 ],
226 'link_settings': {
227 'ldflags': [
228 '-Wall',
229 '-g',
230 '-Lthird_party/skia/trunk/out/Debug',
231 '-Wl,--start-group',
232 '-lskia_effects',
233 '-lskia_images',
234 '-lskia_core',
235 '-lskia_opts',
236 '-lskia_opts_ssse3',
237 '-lskia_ports',
238 '-lskia_sfnt',
239 '-lskia_utils',
240 '-lskia_gr',
241 '-lskia_skgr',
242 '-Wl,--end-group',
243 '-lfreetype',
244 ],
245 'libraries': [
246 '-lGL',
247 '-lglut',
248 '-lGLU',
249 '-lm'
250 ],
251 },
143 'conditions': [ 252 'conditions': [
144 ['OS=="mac"', { 253 ['OS=="mac"', {
145 'xcode_settings' : { 254 'xcode_settings' : {
146 'OTHER_LDFLAGS': [ '-framework OpenGL', '-framework GLUT', '-L /usr/X11/lib' ] 255 'OTHER_LDFLAGS': [ '-framework OpenGL', '-framework GLUT', '-L /usr/X11/lib' ]
147 }, 256 },
148 }], 257 }],
149 ] 258 ]
150 }, 259 },
260 {
261 'target_name': 'skia-desktop',
262 'type': 'none',
263 'actions': [
264 {
265 'action_name': 'build_skia',
266 'inputs': [
267 'build_skia.sh'
268 ],
269 'outputs': [
270 '../../../third_party/skia/trunk/out/Debug/libskia_core.a'
271 ],
272 'action': [
273 'embedders/openglui/build_skia.sh',
274 '..'
275 ],
276 'message': 'Building Skia.'
277 }
278 ]
279 }
151 ], 280 ],
152 }, 281 },
153 ], 282 ],
154 ], 283 ],
155 } 284 }
156 285
OLDNEW
« no previous file with comments | « runtime/embedders/openglui/emulator/emulator_graphics_handler.cc ('k') | samples/openglui/emulator/emulator.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698