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

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 '-Lthird_party/skia/trunk/out/config/android-x86/Debug/obj.targe t/gyp',
vsm 2013/02/04 18:18:41 What about Release mode? Perhaps a TODO here to c
gram 2013/02/04 22:02:28 Done.
94 '-z',
95 'muldefs',
96 '-g'
78 ], 97 ],
79 'ldflags!': [ 98 'ldflags!': [
80 '-Wl,--exclude-libs=ALL', 99 '-Wl,--exclude-libs=ALL,-shared',
100 ],
101 'libraries': [
102 '-Wl,--start-group',
103 '-lexpat',
104 '-lfreetype',
105 '-lgif',
106 '-ljpeg',
107 '-lpng',
108 '-lskia_core',
109 '-lskia_effects',
110 '-lskia_gr',
111 '-lskia_images',
112 '-lskia_opts',
113 '-lskia_pdf',
114 '-lskia_ports',
115 '-lskia_sfnt',
116 '-lskia_skgr',
117 '-lskia_utils',
118 '-lskia_views',
119 '-lskia_xml',
120 '-lzlib',
121 '-Wl,--end-group',
122 '-llog',
123 '-lc',
124 '-lz',
125 '-landroid',
126 '-lEGL',
127 '-lGLESv2',
128 '-lOpenSLES',
129 '-landroid',
81 ], 130 ],
82 }, 131 },
83 }, 132 },
133 {
134 'target_name': 'skia-android',
135 'type': 'none',
136 'actions': [
137 {
138 'action_name': 'build_skia',
139 'inputs': [
140 'build_skia.sh'
141 ],
142 'outputs': [
143 '../../../third_party/skia/trunk/out/config/android-x86/Debug/ libskia_core.a'
144 ],
145 'action': [
146 'embedders/openglui/build_skia.sh',
147 '--android',
148 '..'
149 ],
150 'message': 'Building Skia.'
151 }
152 ]
153 }
84 ], 154 ],
85 }, 155 },
86 ], 156 ],
87 ['OS=="mac" or OS=="linux"', 157 ['OS=="mac" or OS=="linux"',
88 { 158 {
89 'targets': [ 159 'targets': [
90 { 160 {
91 'target_name': 'emulator_embedder', 161 'target_name': 'emulator_embedder',
92 'type': 'shared_library', 162 'type': 'shared_library',
93 'dependencies': [ 163 'dependencies': [
164 'skia-desktop',
94 'libdart_lib_withcore', 165 'libdart_lib_withcore',
95 'libdart_vm', 166 'libdart_vm',
96 'libjscre', 167 'libjscre',
97 'libdouble_conversion', 168 'libdouble_conversion',
98 'generate_version_cc_file', 169 'generate_version_cc_file',
99 ], 170 ],
100 'include_dirs': [ 171 'include_dirs': [
101 '../..', 172 '../..',
173 '/usr/X11/include',
174 '../../../third_party/skia/trunk/include',
175 '../../../third_party/skia/trunk/include/config',
176 '../../../third_party/skia/trunk/include/core',
177 '../../../third_party/skia/trunk/include/gpu',
178 '../../../third_party/skia/trunk/include/utils',
102 ], 179 ],
103 'defines': [ 180 'defines': [
104 'DART_SHARED_LIB' 181 'DART_SHARED_LIB'
105 ], 182 ],
106 'sources': [ 183 'sources': [
107 '../../include/dart_api.h', 184 '../../include/dart_api.h',
108 '../../include/dart_debugger_api.h', 185 '../../include/dart_debugger_api.h',
109 '../../vm/dart_api_impl.cc', 186 '../../vm/dart_api_impl.cc',
110 '../../vm/debugger_api_impl.cc', 187 '../../vm/debugger_api_impl.cc',
111 '../../vm/version.h', 188 '../../vm/version.h',
189 'common/canvas_context.cc',
190 'common/canvas_context.h',
191 'common/canvas_state.cc',
192 'common/canvas_state.h',
112 'common/context.h', 193 'common/context.h',
113 'common/dart_host.cc', 194 'common/dart_host.cc',
114 'common/dart_host.h', 195 'common/dart_host.h',
115 'common/events.h', 196 'common/events.h',
116 'common/extension.cc', 197 'common/extension.cc',
117 'common/extension.h', 198 'common/extension.h',
118 'common/gl_graphics_handler.cc', 199 'common/graphics_handler.cc',
119 'common/gl_graphics_handler.h',
120 'common/graphics_handler.h', 200 'common/graphics_handler.h',
121 'common/input_handler.cc', 201 'common/input_handler.cc',
122 'common/input_handler.h', 202 'common/input_handler.h',
123 'common/isized.h', 203 'common/isized.h',
124 'common/life_cycle_handler.h', 204 'common/life_cycle_handler.h',
125 'common/log.h', 205 'common/log.h',
126 'common/opengl.h', 206 'common/opengl.h',
127 'common/resource.h', 207 'common/resource.h',
128 'common/sample.h', 208 'common/sample.h',
129 'common/sound_handler.cc', 209 'common/sound_handler.cc',
130 'common/sound_handler.h', 210 'common/sound_handler.h',
211 'common/support.h',
212 'common/support.h',
131 'common/timer.cc', 213 'common/timer.cc',
132 'common/timer.h', 214 'common/timer.h',
133 'common/types.h', 215 'common/types.h',
134 'common/vm_glue.cc', 216 'common/vm_glue.cc',
135 'common/vm_glue.h', 217 'common/vm_glue.h',
136 'emulator/emulator_embedder.cc', 218 'emulator/emulator_embedder.cc',
137 'emulator/emulator_embedder.h', 219 'emulator/emulator_embedder.h',
138 'emulator/emulator_graphics_handler.cc', 220 'emulator/emulator_graphics_handler.cc',
139 'emulator/emulator_graphics_handler.h', 221 'emulator/emulator_graphics_handler.h',
140 'emulator/emulator_resource.h', 222 'emulator/emulator_resource.h',
141 '<(version_cc_file)', 223 '<(version_cc_file)',
142 ], 224 ],
225 'link_settings': {
226 'ldflags': [
227 '-Wall',
228 '-g',
229 '-Lthird_party/skia/trunk/out/Debug',
230 '-Wl,--start-group',
231 '-lskia_effects',
232 '-lskia_images',
233 '-lskia_core',
234 '-lskia_opts',
235 '-lskia_opts_ssse3',
236 '-lskia_ports',
237 '-lskia_sfnt',
238 '-lskia_utils',
239 '-lskia_gr',
240 '-lskia_skgr',
241 '-Wl,--end-group',
242 '-lfreetype',
243 ],
244 'libraries': [
245 '-lGL',
246 '-lglut',
247 '-lGLU',
248 '-lm'
249 ],
250 },
143 'conditions': [ 251 'conditions': [
144 ['OS=="mac"', { 252 ['OS=="mac"', {
145 'xcode_settings' : { 253 'xcode_settings' : {
146 'OTHER_LDFLAGS': [ '-framework OpenGL', '-framework GLUT', '-L /usr/X11/lib' ] 254 'OTHER_LDFLAGS': [ '-framework OpenGL', '-framework GLUT', '-L /usr/X11/lib' ]
147 }, 255 },
148 }], 256 }],
149 ] 257 ]
150 }, 258 },
259 {
260 'target_name': 'skia-desktop',
261 'type': 'none',
262 'actions': [
263 {
264 'action_name': 'build_skia',
265 'inputs': [
266 'build_skia.sh'
267 ],
268 'outputs': [
269 '../../../third_party/skia/trunk/out/Debug/libskia_core.a'
270 ],
271 'action': [
272 'embedders/openglui/build_skia.sh',
273 '..'
274 ],
275 'message': 'Building Skia.'
276 }
277 ]
278 }
151 ], 279 ],
152 }, 280 },
153 ], 281 ],
154 ], 282 ],
155 } 283 }
156 284
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698