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

Side by Side Diff: mojo/mojo_examples.gypi

Issue 316223002: Include mojo_main_{chromium,standalone}.cc instead of using a target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment Created 6 years, 6 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
« no previous file with comments | « no previous file | mojo/mojo_public.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'mojo_sample_app', 8 'target_name': 'mojo_sample_app',
9 'type': 'shared_library', 9 'type': 'shared_library',
10 'dependencies': [ 10 'dependencies': [
11 # TODO(darin): we should not be linking against these libraries! 11 # TODO(darin): we should not be linking against these libraries!
12 '../ui/events/events.gyp:events', 12 '../ui/events/events.gyp:events',
13 '../ui/gfx/gfx.gyp:gfx_geometry', 13 '../ui/gfx/gfx.gyp:gfx_geometry',
14 'mojo_application',
14 'mojo_cpp_bindings', 15 'mojo_cpp_bindings',
15 'mojo_environment_standalone', 16 'mojo_environment_standalone',
16 'mojo_geometry_bindings', 17 'mojo_geometry_bindings',
17 'mojo_gles2', 18 'mojo_gles2',
18 'mojo_main_standalone',
19 'mojo_native_viewport_bindings', 19 'mojo_native_viewport_bindings',
20 'mojo_system', 20 'mojo_system',
21 'mojo_utility', 21 'mojo_utility',
22 ], 22 ],
23 'sources': [ 23 'sources': [
24 'examples/sample_app/gles2_client_impl.cc', 24 'examples/sample_app/gles2_client_impl.cc',
25 'examples/sample_app/gles2_client_impl.cc', 25 'examples/sample_app/gles2_client_impl.cc',
26 'examples/sample_app/sample_app.cc', 26 'examples/sample_app/sample_app.cc',
27 'examples/sample_app/spinning_cube.cc', 27 'examples/sample_app/spinning_cube.cc',
28 'examples/sample_app/spinning_cube.h', 28 'examples/sample_app/spinning_cube.h',
29 '<(mojo_main_standalone)',
29 ], 30 ],
30 }, 31 },
31 { 32 {
32 'target_name': 'package_mojo_sample_app', 33 'target_name': 'package_mojo_sample_app',
33 'variables': { 34 'variables': {
34 'app_name': 'mojo_sample_app', 35 'app_name': 'mojo_sample_app',
35 }, 36 },
36 'includes': [ 'build/package_app.gypi' ], 37 'includes': [ 'build/package_app.gypi' ],
37 }, 38 },
38 { 39 {
39 'target_name': 'mojo_compositor_app', 40 'target_name': 'mojo_compositor_app',
40 'type': 'shared_library', 41 'type': 'shared_library',
41 'dependencies': [ 42 'dependencies': [
42 '../base/base.gyp:base', 43 '../base/base.gyp:base',
43 '../cc/cc.gyp:cc', 44 '../cc/cc.gyp:cc',
44 '../ui/gfx/gfx.gyp:gfx', 45 '../ui/gfx/gfx.gyp:gfx',
45 '../ui/gfx/gfx.gyp:gfx_geometry', 46 '../ui/gfx/gfx.gyp:gfx_geometry',
47 'mojo_application',
46 'mojo_cc_support', 48 'mojo_cc_support',
47 'mojo_common_lib', 49 'mojo_common_lib',
48 'mojo_environment_chromium', 50 'mojo_environment_chromium',
49 'mojo_geometry_bindings', 51 'mojo_geometry_bindings',
50 'mojo_geometry_lib', 52 'mojo_geometry_lib',
51 'mojo_gles2', 53 'mojo_gles2',
52 'mojo_main_chromium',
53 'mojo_native_viewport_bindings', 54 'mojo_native_viewport_bindings',
54 'mojo_system_impl', 55 'mojo_system_impl',
55 ], 56 ],
56 'sources': [ 57 'sources': [
57 'examples/compositor_app/compositor_app.cc', 58 'examples/compositor_app/compositor_app.cc',
58 'examples/compositor_app/compositor_host.cc', 59 'examples/compositor_app/compositor_host.cc',
59 'examples/compositor_app/compositor_host.h', 60 'examples/compositor_app/compositor_host.h',
61 '<(mojo_main_chromium)',
60 ], 62 ],
61 }, 63 },
62 { 64 {
63 'target_name': 'package_mojo_compositor_app', 65 'target_name': 'package_mojo_compositor_app',
64 'variables': { 66 'variables': {
65 'app_name': 'mojo_compositor_app', 67 'app_name': 'mojo_compositor_app',
66 }, 68 },
67 'includes': [ 'build/package_app.gypi' ], 69 'includes': [ 'build/package_app.gypi' ],
68 }, 70 },
69 { 71 {
70 'target_name': 'mojo_wget', 72 'target_name': 'mojo_wget',
71 'type': 'shared_library', 73 'type': 'shared_library',
72 'dependencies': [ 74 'dependencies': [
75 'mojo_application',
73 'mojo_cpp_bindings', 76 'mojo_cpp_bindings',
74 'mojo_environment_standalone', 77 'mojo_environment_standalone',
75 'mojo_main_standalone',
76 'mojo_network_bindings', 78 'mojo_network_bindings',
77 'mojo_system', 79 'mojo_system',
78 'mojo_utility', 80 'mojo_utility',
79 ], 81 ],
80 'sources': [ 82 'sources': [
81 'examples/wget/wget.cc', 83 'examples/wget/wget.cc',
84 '<(mojo_main_standalone)',
82 ], 85 ],
83 }, 86 },
84 { 87 {
85 'target_name': 'package_mojo_wget', 88 'target_name': 'package_mojo_wget',
86 'variables': { 89 'variables': {
87 'app_name': 'mojo_wget', 90 'app_name': 'mojo_wget',
88 }, 91 },
89 'includes': [ 'build/package_app.gypi' ], 92 'includes': [ 'build/package_app.gypi' ],
90 }, 93 },
91 { 94 {
92 'target_name': 'mojo_pepper_container_app', 95 'target_name': 'mojo_pepper_container_app',
93 'type': 'shared_library', 96 'type': 'shared_library',
94 'dependencies': [ 97 'dependencies': [
95 '../base/base.gyp:base', 98 '../base/base.gyp:base',
96 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 99 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
97 '../gpu/gpu.gyp:command_buffer_common', 100 '../gpu/gpu.gyp:command_buffer_common',
98 '../ppapi/ppapi.gyp:ppapi_c', 101 '../ppapi/ppapi.gyp:ppapi_c',
99 '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube', 102 '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube',
100 '../ui/events/events.gyp:events_base', 103 '../ui/events/events.gyp:events_base',
104 'mojo_application',
101 'mojo_common_lib', 105 'mojo_common_lib',
102 'mojo_environment_chromium', 106 'mojo_environment_chromium',
103 'mojo_geometry_bindings', 107 'mojo_geometry_bindings',
104 'mojo_gles2', 108 'mojo_gles2',
105 'mojo_main_chromium',
106 'mojo_native_viewport_bindings', 109 'mojo_native_viewport_bindings',
107 'mojo_system_impl', 110 'mojo_system_impl',
108 ], 111 ],
109 'defines': [ 112 'defines': [
110 # We don't really want to export. We could change how 113 # We don't really want to export. We could change how
111 # ppapi_{shared,thunk}_export.h are defined to avoid this. 114 # ppapi_{shared,thunk}_export.h are defined to avoid this.
112 'PPAPI_SHARED_IMPLEMENTATION', 115 'PPAPI_SHARED_IMPLEMENTATION',
113 'PPAPI_THUNK_IMPLEMENTATION', 116 'PPAPI_THUNK_IMPLEMENTATION',
114 ], 117 ],
115 'sources': [ 118 'sources': [
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 'examples/pepper_container_app/plugin_instance.cc', 177 'examples/pepper_container_app/plugin_instance.cc',
175 'examples/pepper_container_app/plugin_instance.h', 178 'examples/pepper_container_app/plugin_instance.h',
176 'examples/pepper_container_app/plugin_module.cc', 179 'examples/pepper_container_app/plugin_module.cc',
177 'examples/pepper_container_app/plugin_module.h', 180 'examples/pepper_container_app/plugin_module.h',
178 'examples/pepper_container_app/ppb_core_thunk.cc', 181 'examples/pepper_container_app/ppb_core_thunk.cc',
179 'examples/pepper_container_app/ppb_opengles2_thunk.cc', 182 'examples/pepper_container_app/ppb_opengles2_thunk.cc',
180 'examples/pepper_container_app/resource_creation_impl.cc', 183 'examples/pepper_container_app/resource_creation_impl.cc',
181 'examples/pepper_container_app/resource_creation_impl.h', 184 'examples/pepper_container_app/resource_creation_impl.h',
182 'examples/pepper_container_app/thunk.h', 185 'examples/pepper_container_app/thunk.h',
183 'examples/pepper_container_app/type_converters.h', 186 'examples/pepper_container_app/type_converters.h',
187 '<(mojo_main_chromium)',
184 ], 188 ],
185 }, 189 },
186 ], 190 ],
187 'conditions': [ 191 'conditions': [
188 ['use_aura==1', { 192 ['use_aura==1', {
189 'targets': [ 193 'targets': [
190 { 194 {
191 'target_name': 'mojo_aura_demo', 195 'target_name': 'mojo_aura_demo',
192 'type': 'shared_library', 196 'type': 'shared_library',
193 'dependencies': [ 197 'dependencies': [
(...skipping 12 matching lines...) Expand all
206 'mojo_geometry_lib', 210 'mojo_geometry_lib',
207 'mojo_system_impl', 211 'mojo_system_impl',
208 'mojo_view_manager_bindings', 212 'mojo_view_manager_bindings',
209 ], 213 ],
210 'sources': [ 214 'sources': [
211 'examples/aura_demo/context_factory_view_manager.cc', 215 'examples/aura_demo/context_factory_view_manager.cc',
212 'examples/aura_demo/context_factory_view_manager.h', 216 'examples/aura_demo/context_factory_view_manager.h',
213 'examples/aura_demo/window_tree_host_view_manager.cc', 217 'examples/aura_demo/window_tree_host_view_manager.cc',
214 'examples/aura_demo/window_tree_host_view_manager.h', 218 'examples/aura_demo/window_tree_host_view_manager.h',
215 'examples/aura_demo/aura_demo.cc', 219 'examples/aura_demo/aura_demo.cc',
216 'public/cpp/application/lib/mojo_main_chromium.cc', 220 '<(mojo_main_chromium)',
217 ], 221 ],
218 }, 222 },
219 { 223 {
220 'target_name': 'mojo_aura_demo_init', 224 'target_name': 'mojo_aura_demo_init',
221 'type': 'shared_library', 225 'type': 'shared_library',
222 'dependencies': [ 226 'dependencies': [
223 '../base/base.gyp:base', 227 '../base/base.gyp:base',
224 'mojo_application', 228 'mojo_application',
225 'mojo_environment_chromium', 229 'mojo_environment_chromium',
226 'mojo_system_impl', 230 'mojo_system_impl',
227 'mojo_view_manager_bindings', 231 'mojo_view_manager_bindings',
228 ], 232 ],
229 'sources': [ 233 'sources': [
230 'examples/aura_demo/view_manager_init.cc', 234 'examples/aura_demo/view_manager_init.cc',
231 'public/cpp/application/lib/mojo_main_chromium.cc', 235 '<(mojo_main_chromium)',
232 ], 236 ],
233 }, 237 },
234 { 238 {
235 'target_name': 'package_mojo_aura_demo', 239 'target_name': 'package_mojo_aura_demo',
236 'variables': { 240 'variables': {
237 'app_name': 'mojo_aura_demo', 241 'app_name': 'mojo_aura_demo',
238 }, 242 },
239 'includes': [ 'build/package_app.gypi' ], 243 'includes': [ 'build/package_app.gypi' ],
240 }, 244 },
241 { 245 {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 'mojo_cpp_bindings', 305 'mojo_cpp_bindings',
302 'mojo_environment_chromium', 306 'mojo_environment_chromium',
303 'mojo_geometry_bindings', 307 'mojo_geometry_bindings',
304 'mojo_gles2', 308 'mojo_gles2',
305 'mojo_view_manager_bindings', 309 'mojo_view_manager_bindings',
306 'mojo_system_impl', 310 'mojo_system_impl',
307 'mojo_utility', 311 'mojo_utility',
308 ], 312 ],
309 'sources': [ 313 'sources': [
310 'examples/demo_launcher/demo_launcher.cc', 314 'examples/demo_launcher/demo_launcher.cc',
311 'public/cpp/application/lib/mojo_main_chromium.cc', 315 '<(mojo_main_chromium)',
312 ], 316 ],
313 }, 317 },
314 { 318 {
315 'target_name': 'mojo_window_manager', 319 'target_name': 'mojo_window_manager',
316 'type': 'shared_library', 320 'type': 'shared_library',
317 'dependencies': [ 321 'dependencies': [
318 '../base/base.gyp:base', 322 '../base/base.gyp:base',
319 '../ui/gfx/gfx.gyp:gfx_geometry', 323 '../ui/gfx/gfx.gyp:gfx_geometry',
320 '../ui/gl/gl.gyp:gl', 324 '../ui/gl/gl.gyp:gl',
321 'mojo_application', 325 'mojo_application',
322 'mojo_cpp_bindings', 326 'mojo_cpp_bindings',
323 'mojo_environment_chromium', 327 'mojo_environment_chromium',
324 'mojo_geometry_bindings', 328 'mojo_geometry_bindings',
325 'mojo_gles2', 329 'mojo_gles2',
326 'mojo_view_manager_lib', 330 'mojo_view_manager_lib',
327 'mojo_system_impl', 331 'mojo_system_impl',
328 'mojo_utility', 332 'mojo_utility',
329 ], 333 ],
330 'sources': [ 334 'sources': [
331 'examples/window_manager/window_manager.cc', 335 'examples/window_manager/window_manager.cc',
332 'public/cpp/application/lib/mojo_main_chromium.cc', 336 '<(mojo_main_chromium)',
333 ], 337 ],
334 }, 338 },
335 { 339 {
336 'target_name': 'mojo_embedded_app', 340 'target_name': 'mojo_embedded_app',
337 'type': 'shared_library', 341 'type': 'shared_library',
338 'dependencies': [ 342 'dependencies': [
339 '../base/base.gyp:base', 343 '../base/base.gyp:base',
340 '../ui/gfx/gfx.gyp:gfx_geometry', 344 '../ui/gfx/gfx.gyp:gfx_geometry',
341 '../ui/gl/gl.gyp:gl', 345 '../ui/gl/gl.gyp:gl',
342 'mojo_application', 346 'mojo_application',
343 'mojo_cpp_bindings', 347 'mojo_cpp_bindings',
344 'mojo_environment_chromium', 348 'mojo_environment_chromium',
345 'mojo_geometry_bindings', 349 'mojo_geometry_bindings',
346 'mojo_gles2', 350 'mojo_gles2',
347 'mojo_view_manager_lib', 351 'mojo_view_manager_lib',
348 'mojo_system_impl', 352 'mojo_system_impl',
349 'mojo_utility', 353 'mojo_utility',
350 ], 354 ],
351 'sources': [ 355 'sources': [
352 'examples/embedded_app/embedded_app.cc', 356 'examples/embedded_app/embedded_app.cc',
353 'public/cpp/application/lib/mojo_main_chromium.cc', 357 '<(mojo_main_chromium)',
354 ], 358 ],
355 }, 359 },
356 ], 360 ],
357 }], 361 }],
358 ['OS=="linux"', { 362 ['OS=="linux"', {
359 'targets': [ 363 'targets': [
360 { 364 {
361 'target_name': 'mojo_dbus_echo', 365 'target_name': 'mojo_dbus_echo',
362 'type': 'shared_library', 366 'type': 'shared_library',
363 'dependencies': [ 367 'dependencies': [
364 '../base/base.gyp:base', 368 '../base/base.gyp:base',
369 'mojo_application',
365 'mojo_cpp_bindings', 370 'mojo_cpp_bindings',
366 'mojo_environment_standalone', 371 'mojo_environment_standalone',
367 'mojo_echo_bindings', 372 'mojo_echo_bindings',
368 'mojo_main_standalone',
369 'mojo_system', 373 'mojo_system',
370 'mojo_utility', 374 'mojo_utility',
371 ], 375 ],
372 'sources': [ 376 'sources': [
373 'examples/dbus_echo/dbus_echo_app.cc', 377 'examples/dbus_echo/dbus_echo_app.cc',
378 '<(mojo_main_standalone)',
darin (slow to review) 2014/06/05 18:02:47 why not just path/to/mojo_main_standalone.cc? woul
jamesr 2014/06/05 18:12:18 +infinity. using a gyp variable makes things real
DaveMoore 2014/06/05 20:18:42 Done.
DaveMoore 2014/06/05 20:18:42 Done.
374 ], 379 ],
375 }, 380 },
376 ], 381 ],
377 }], 382 }],
378 ], 383 ],
379 } 384 }
OLDNEW
« no previous file with comments | « no previous file | mojo/mojo_public.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698