Home | History | Annotate | Download | only in mojo
      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
      3 # found in the LICENSE file.
      4 
      5 {
      6   'targets': [
      7     {
      8       'target_name': 'mojo_sample_app',
      9       'type': 'shared_library',
     10       'dependencies': [
     11         # TODO(darin): we should not be linking against these libraries!
     12         '../ui/events/events.gyp:events',
     13         '../ui/gfx/gfx.gyp:gfx_geometry',
     14         'mojo_application',
     15         'mojo_cpp_bindings',
     16         'mojo_environment_standalone',
     17         'mojo_geometry_bindings',
     18         'mojo_gles2',
     19         'mojo_native_viewport_bindings',
     20         'mojo_system',
     21         'mojo_utility',
     22       ],
     23       'sources': [
     24         'examples/sample_app/gles2_client_impl.cc',
     25         'examples/sample_app/gles2_client_impl.cc',
     26         'examples/sample_app/sample_app.cc',
     27         'examples/sample_app/spinning_cube.cc',
     28         'examples/sample_app/spinning_cube.h',
     29         'public/cpp/application/lib/mojo_main_standalone.cc',
     30       ],
     31     },
     32     {
     33       'target_name': 'package_mojo_sample_app',
     34       'variables': {
     35         'app_name': 'mojo_sample_app',
     36       },
     37       'includes': [ 'build/package_app.gypi' ],
     38     },
     39     {
     40       'target_name': 'mojo_compositor_app',
     41       'type': 'shared_library',
     42       'dependencies': [
     43         '../base/base.gyp:base',
     44         '../cc/cc.gyp:cc',
     45         '../ui/gfx/gfx.gyp:gfx',
     46         '../ui/gfx/gfx.gyp:gfx_geometry',
     47         'mojo_application',
     48         'mojo_cc_support',
     49         'mojo_common_lib',
     50         'mojo_environment_chromium',
     51         'mojo_geometry_bindings',
     52         'mojo_geometry_lib',
     53         'mojo_gles2',
     54         'mojo_native_viewport_bindings',
     55         'mojo_system_impl',
     56       ],
     57       'sources': [
     58         'examples/compositor_app/compositor_app.cc',
     59         'examples/compositor_app/compositor_host.cc',
     60         'examples/compositor_app/compositor_host.h',
     61         'public/cpp/application/lib/mojo_main_chromium.cc',
     62       ],
     63     },
     64     {
     65       'target_name': 'package_mojo_compositor_app',
     66       'variables': {
     67         'app_name': 'mojo_compositor_app',
     68       },
     69       'includes': [ 'build/package_app.gypi' ],
     70     },
     71     {
     72       'target_name': 'mojo_wget',
     73       'type': 'shared_library',
     74       'dependencies': [
     75         'mojo_application',
     76         'mojo_cpp_bindings',
     77         'mojo_environment_standalone',
     78         'mojo_network_bindings',
     79         'mojo_system',
     80         'mojo_utility',
     81       ],
     82       'sources': [
     83         'examples/wget/wget.cc',
     84         'public/cpp/application/lib/mojo_main_standalone.cc',
     85       ],
     86     },
     87     {
     88       'target_name': 'package_mojo_wget',
     89       'variables': {
     90         'app_name': 'mojo_wget',
     91       },
     92       'includes': [ 'build/package_app.gypi' ],
     93     },
     94     {
     95       'target_name': 'mojo_html_viewer',
     96       'type': 'shared_library',
     97       'dependencies': [
     98         '../net/net.gyp:net',
     99         '../skia/skia.gyp:skia',
    100         '../third_party/WebKit/public/blink.gyp:blink',
    101         '../url/url.gyp:url_lib',
    102         'mojo_application',
    103         'mojo_cpp_bindings',
    104         'mojo_environment_chromium',
    105         'mojo_navigation_bindings',
    106         'mojo_network_bindings',
    107         'mojo_launcher_bindings',
    108         'mojo_system_impl',
    109         'mojo_utility',
    110         'mojo_view_manager_lib',
    111       ],
    112       'include_dirs': [
    113         'third_party/WebKit'
    114       ],
    115       'sources': [
    116         'examples/html_viewer/blink_platform_impl.cc',
    117         'examples/html_viewer/blink_platform_impl.h',
    118         'examples/html_viewer/html_viewer.cc',
    119         'examples/html_viewer/html_document_view.cc',
    120         'examples/html_viewer/html_document_view.h',
    121         'examples/html_viewer/webmimeregistry_impl.cc',
    122         'examples/html_viewer/webmimeregistry_impl.h',
    123         'examples/html_viewer/webthread_impl.cc',
    124         'examples/html_viewer/webthread_impl.h',
    125         'examples/html_viewer/weburlloader_impl.cc',
    126         'examples/html_viewer/weburlloader_impl.h',
    127         'public/cpp/application/lib/mojo_main_chromium.cc',
    128       ],
    129     },
    130     {
    131       'target_name': 'mojo_image_viewer',
    132       'type': 'shared_library',
    133       'dependencies': [
    134         '../skia/skia.gyp:skia',
    135         '../ui/gfx/gfx.gyp:gfx',
    136         'mojo_application',
    137         'mojo_cpp_bindings',
    138         'mojo_environment_chromium',
    139         'mojo_navigation_bindings',
    140         'mojo_network_bindings',
    141         'mojo_launcher_bindings',
    142         'mojo_system_impl',
    143         'mojo_utility',
    144         'mojo_view_manager_lib',
    145       ],
    146       'sources': [
    147         'examples/image_viewer/image_viewer.cc',
    148         'public/cpp/application/lib/mojo_main_chromium.cc',
    149       ],
    150     },
    151     {
    152       'target_name': 'mojo_pepper_container_app',
    153       'type': 'shared_library',
    154       'dependencies': [
    155         '../base/base.gyp:base',
    156         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
    157         '../gpu/gpu.gyp:command_buffer_common',
    158         '../ppapi/ppapi.gyp:ppapi_c',
    159         '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube',
    160         '../ui/events/events.gyp:events_base',
    161         'mojo_application',
    162         'mojo_common_lib',
    163         'mojo_environment_chromium',
    164         'mojo_geometry_bindings',
    165         'mojo_gles2',
    166         'mojo_native_viewport_bindings',
    167         'mojo_system_impl',
    168       ],
    169       'defines': [
    170         # We don't really want to export. We could change how
    171         # ppapi_{shared,thunk}_export.h are defined to avoid this.
    172         'PPAPI_SHARED_IMPLEMENTATION',
    173         'PPAPI_THUNK_IMPLEMENTATION',
    174       ],
    175       'sources': [
    176         # Source files from ppapi/.
    177         # An alternative is to depend on
    178         # '../ppapi/ppapi_internal.gyp:ppapi_shared', but that target includes
    179         # a lot of things that we don't need.
    180         # TODO(yzshen): Consider extracting these files into a separate target
    181         # which mojo_pepper_container_app and ppapi_shared both depend on.
    182         '../ppapi/shared_impl/api_id.h',
    183         '../ppapi/shared_impl/callback_tracker.cc',
    184         '../ppapi/shared_impl/callback_tracker.h',
    185         '../ppapi/shared_impl/host_resource.cc',
    186         '../ppapi/shared_impl/host_resource.h',
    187         '../ppapi/shared_impl/id_assignment.cc',
    188         '../ppapi/shared_impl/id_assignment.h',
    189         '../ppapi/shared_impl/ppapi_globals.cc',
    190         '../ppapi/shared_impl/ppapi_globals.h',
    191         '../ppapi/shared_impl/ppapi_shared_export.h',
    192         '../ppapi/shared_impl/ppb_message_loop_shared.cc',
    193         '../ppapi/shared_impl/ppb_message_loop_shared.h',
    194         '../ppapi/shared_impl/ppb_view_shared.cc',
    195         '../ppapi/shared_impl/ppb_view_shared.h',
    196         '../ppapi/shared_impl/proxy_lock.cc',
    197         '../ppapi/shared_impl/proxy_lock.h',
    198         '../ppapi/shared_impl/resource.cc',
    199         '../ppapi/shared_impl/resource.h',
    200         '../ppapi/shared_impl/resource_tracker.cc',
    201         '../ppapi/shared_impl/resource_tracker.h',
    202         '../ppapi/shared_impl/scoped_pp_resource.cc',
    203         '../ppapi/shared_impl/scoped_pp_resource.h',
    204         '../ppapi/shared_impl/singleton_resource_id.h',
    205         '../ppapi/shared_impl/tracked_callback.cc',
    206         '../ppapi/shared_impl/tracked_callback.h',
    207         '../ppapi/thunk/enter.cc',
    208         '../ppapi/thunk/enter.h',
    209         '../ppapi/thunk/interfaces_ppb_private.h',
    210         '../ppapi/thunk/interfaces_ppb_private_flash.h',
    211         '../ppapi/thunk/interfaces_ppb_private_no_permissions.h',
    212         '../ppapi/thunk/interfaces_ppb_public_dev.h',
    213         '../ppapi/thunk/interfaces_ppb_public_dev_channel.h',
    214         '../ppapi/thunk/interfaces_ppb_public_stable.h',
    215         '../ppapi/thunk/interfaces_preamble.h',
    216         '../ppapi/thunk/ppapi_thunk_export.h',
    217         '../ppapi/thunk/ppb_graphics_3d_api.h',
    218         '../ppapi/thunk/ppb_graphics_3d_thunk.cc',
    219         '../ppapi/thunk/ppb_instance_api.h',
    220         '../ppapi/thunk/ppb_instance_thunk.cc',
    221         '../ppapi/thunk/ppb_message_loop_api.h',
    222         '../ppapi/thunk/ppb_view_api.h',
    223         '../ppapi/thunk/ppb_view_thunk.cc',
    224         '../ppapi/thunk/resource_creation_api.h',
    225         '../ppapi/thunk/thunk.h',
    226 
    227         'examples/pepper_container_app/graphics_3d_resource.cc',
    228         'examples/pepper_container_app/graphics_3d_resource.h',
    229         'examples/pepper_container_app/interface_list.cc',
    230         'examples/pepper_container_app/interface_list.h',
    231         'examples/pepper_container_app/mojo_ppapi_globals.cc',
    232         'examples/pepper_container_app/mojo_ppapi_globals.h',
    233         'examples/pepper_container_app/pepper_container_app.cc',
    234         'examples/pepper_container_app/plugin_instance.cc',
    235         'examples/pepper_container_app/plugin_instance.h',
    236         'examples/pepper_container_app/plugin_module.cc',
    237         'examples/pepper_container_app/plugin_module.h',
    238         'examples/pepper_container_app/ppb_core_thunk.cc',
    239         'examples/pepper_container_app/ppb_opengles2_thunk.cc',
    240         'examples/pepper_container_app/resource_creation_impl.cc',
    241         'examples/pepper_container_app/resource_creation_impl.h',
    242         'examples/pepper_container_app/thunk.h',
    243         'examples/pepper_container_app/type_converters.h',
    244         'public/cpp/application/lib/mojo_main_chromium.cc',
    245       ],
    246     },
    247   ],
    248   'conditions': [
    249     ['use_aura==1', {
    250       'targets': [
    251         {
    252           'target_name': 'mojo_aura_demo',
    253           'type': 'shared_library',
    254           'dependencies': [
    255             '../base/base.gyp:base',
    256             '../cc/cc.gyp:cc',
    257             '../ui/aura/aura.gyp:aura',
    258             '../ui/base/ui_base.gyp:ui_base',
    259             '../ui/compositor/compositor.gyp:compositor',
    260             '../ui/gfx/gfx.gyp:gfx',
    261             '../ui/gfx/gfx.gyp:gfx_geometry',
    262             'mojo_application',
    263             'mojo_aura_support',
    264             'mojo_common_lib',
    265             'mojo_environment_chromium',
    266             'mojo_geometry_bindings',
    267             'mojo_geometry_lib',
    268             'mojo_system_impl',
    269             'mojo_view_manager_lib',
    270           ],
    271           'sources': [
    272             'examples/aura_demo/aura_demo.cc',
    273             'public/cpp/application/lib/mojo_main_chromium.cc',
    274           ],
    275         },
    276         {
    277           'target_name': 'mojo_aura_demo_init',
    278           'type': 'shared_library',
    279           'dependencies': [
    280             '../base/base.gyp:base',
    281             'mojo_application',
    282             'mojo_environment_chromium',
    283             'mojo_system_impl',
    284             'mojo_view_manager_bindings',
    285           ],
    286           'sources': [
    287             'examples/aura_demo/view_manager_init.cc',
    288             'public/cpp/application/lib/mojo_main_chromium.cc',
    289           ],
    290         },
    291         {
    292           'target_name': 'mojo_browser',
    293           'type': 'shared_library',
    294           'dependencies': [
    295             '../base/base.gyp:base',
    296             '../cc/cc.gyp:cc',
    297             '../third_party/icu/icu.gyp:icui18n',
    298             '../third_party/icu/icu.gyp:icuuc',
    299             '../ui/aura/aura.gyp:aura',
    300             '../ui/base/ui_base.gyp:ui_base',
    301             '../ui/compositor/compositor.gyp:compositor',
    302             '../ui/gfx/gfx.gyp:gfx',
    303             '../ui/gfx/gfx.gyp:gfx_geometry',
    304             '../ui/resources/ui_resources.gyp:ui_resources',
    305             '../ui/resources/ui_resources.gyp:ui_test_pak',
    306             '../ui/views/views.gyp:views',
    307             '../url/url.gyp:url_lib',
    308             'mojo_application',
    309             'mojo_aura_support',
    310             'mojo_common_lib',
    311             'mojo_environment_chromium',
    312             'mojo_geometry_bindings',
    313             'mojo_geometry_lib',
    314             'mojo_input_events_lib',
    315             'mojo_navigation_bindings',
    316             'mojo_system_impl',
    317             'mojo_views_support',
    318             'mojo_view_manager_bindings',
    319             'mojo_view_manager_lib',
    320           ],
    321           'sources': [
    322             'examples/browser/browser.cc',
    323             'public/cpp/application/lib/mojo_main_chromium.cc',
    324           ],
    325         },
    326         {
    327           'target_name': 'package_mojo_aura_demo',
    328           'variables': {
    329             'app_name': 'mojo_aura_demo',
    330           },
    331           'includes': [ 'build/package_app.gypi' ],
    332         },
    333         {
    334           'target_name': 'mojo_demo_launcher',
    335           'type': 'shared_library',
    336           'dependencies': [
    337             '../base/base.gyp:base',
    338             '../skia/skia.gyp:skia',
    339             '../ui/gfx/gfx.gyp:gfx',
    340             '../ui/gfx/gfx.gyp:gfx_geometry',
    341             '../ui/gl/gl.gyp:gl',
    342             'mojo_application',
    343             'mojo_cpp_bindings',
    344             'mojo_environment_chromium',
    345             'mojo_geometry_bindings',
    346             'mojo_gles2',
    347             'mojo_view_manager_bindings',
    348             'mojo_system_impl',
    349             'mojo_utility',
    350           ],
    351           'sources': [
    352             'examples/demo_launcher/demo_launcher.cc',
    353             'public/cpp/application/lib/mojo_main_chromium.cc',
    354           ],
    355         },
    356         {
    357           'target_name': 'mojo_window_manager_bindings',
    358           'type': 'static_library',
    359           'sources': [
    360             'examples/window_manager/window_manager.mojom',
    361           ],
    362           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
    363           'export_dependent_settings': [
    364             'mojo_cpp_bindings',
    365           ],
    366           'dependencies': [
    367             'mojo_cpp_bindings',
    368           ],
    369         },
    370         {
    371           'target_name': 'mojo_window_manager',
    372           'type': 'shared_library',
    373           'dependencies': [
    374             '../base/base.gyp:base',
    375             '../ui/gfx/gfx.gyp:gfx_geometry',
    376             '../ui/gl/gl.gyp:gl',
    377             'mojo_application',
    378             'mojo_cpp_bindings',
    379             'mojo_environment_chromium',
    380             'mojo_geometry_bindings',
    381             'mojo_gles2',
    382             'mojo_launcher_bindings',
    383             'mojo_navigation_bindings',
    384             'mojo_view_manager_lib',
    385             'mojo_window_manager_bindings',
    386             'mojo_system_impl',
    387             'mojo_utility',
    388           ],
    389           'sources': [
    390             'examples/window_manager/window_manager.cc',
    391             'public/cpp/application/lib/mojo_main_chromium.cc',
    392           ],
    393         },
    394         {
    395           'target_name': 'mojo_embedded_app',
    396           'type': 'shared_library',
    397           'dependencies': [
    398             '../base/base.gyp:base',
    399             '../ui/gfx/gfx.gyp:gfx_geometry',
    400             '../ui/gl/gl.gyp:gl',
    401             '../url/url.gyp:url_lib',
    402             'mojo_application',
    403             'mojo_cpp_bindings',
    404             'mojo_environment_chromium',
    405             'mojo_geometry_bindings',
    406             'mojo_gles2',
    407             'mojo_navigation_bindings',
    408             'mojo_view_manager_lib',
    409             'mojo_window_manager_bindings',
    410             'mojo_system_impl',
    411             'mojo_utility',
    412           ],
    413           'sources': [
    414             'examples/embedded_app/embedded_app.cc',
    415             'public/cpp/application/lib/mojo_main_chromium.cc',
    416           ],
    417         },
    418         {
    419           'target_name': 'mojo_nesting_app',
    420           'type': 'shared_library',
    421           'dependencies': [
    422             '../base/base.gyp:base',
    423             '../ui/gfx/gfx.gyp:gfx_geometry',
    424             '../ui/gl/gl.gyp:gl',
    425             '../url/url.gyp:url_lib',
    426             'mojo_application',
    427             'mojo_cpp_bindings',
    428             'mojo_environment_chromium',
    429             'mojo_geometry_bindings',
    430             'mojo_gles2',
    431             'mojo_navigation_bindings',
    432             'mojo_view_manager_lib',
    433             'mojo_window_manager_bindings',
    434             'mojo_system_impl',
    435             'mojo_utility',
    436           ],
    437           'sources': [
    438             'examples/nesting_app/nesting_app.cc',
    439             'public/cpp/application/lib/mojo_main_chromium.cc',
    440           ],
    441         },
    442       ],
    443     }],
    444     ['OS=="linux"', {
    445       'targets': [
    446         {
    447           'target_name': 'mojo_dbus_echo',
    448           'type': 'shared_library',
    449           'dependencies': [
    450             '../base/base.gyp:base',
    451             'mojo_application',
    452             'mojo_cpp_bindings',
    453             'mojo_environment_standalone',
    454             'mojo_echo_bindings',
    455             'mojo_system',
    456             'mojo_utility',
    457           ],
    458           'sources': [
    459             'examples/dbus_echo/dbus_echo_app.cc',
    460             'public/cpp/application/lib/mojo_main_standalone.cc',
    461           ],
    462         },
    463       ],
    464     }],
    465   ],
    466 }
    467