Home | History | Annotate | Download | only in examples
      1 # Copyright 2014 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   'variables': {
      6     'chromium_code': 1,
      7   },
      8   'targets': [
      9     {
     10       'target_name': 'views_examples_lib',
     11       'type': '<(component)',
     12       'dependencies': [
     13         '../../../base/base.gyp:base',
     14         '../../../skia/skia.gyp:skia',
     15         '../../../third_party/icu/icu.gyp:icui18n',
     16         '../../../third_party/icu/icu.gyp:icuuc',
     17         '../../base/ui_base.gyp:ui_base',
     18         '../../events/events.gyp:events',
     19         '../../gfx/gfx.gyp:gfx',
     20         '../../gfx/gfx.gyp:gfx_geometry',
     21         '../../resources/ui_resources.gyp:ui_resources',
     22         '../../resources/ui_resources.gyp:ui_test_pak',
     23         '../views.gyp:views',
     24       ],
     25       'include_dirs': [
     26         '../../..',
     27       ],
     28       'defines': [
     29         'VIEWS_EXAMPLES_IMPLEMENTATION',
     30       ],
     31       'sources': [
     32         'bubble_example.cc',
     33         'bubble_example.h',
     34         'button_example.cc',
     35         'button_example.h',
     36         'checkbox_example.cc',
     37         'checkbox_example.h',
     38         'combobox_example.cc',
     39         'combobox_example.h',
     40         'double_split_view_example.cc',
     41         'double_split_view_example.h',
     42         'example_base.cc',
     43         'example_base.h',
     44         'example_combobox_model.cc',
     45         'example_combobox_model.h',
     46         'examples_window.cc',
     47         'examples_window.h',
     48         'label_example.cc',
     49         'label_example.h',
     50         'link_example.cc',
     51         'link_example.h',
     52         'message_box_example.cc',
     53         'message_box_example.h',
     54         'menu_example.cc',
     55         'menu_example.h',
     56         'multiline_example.cc',
     57         'multiline_example.h',
     58         'progress_bar_example.cc',
     59         'progress_bar_example.h',
     60         'radio_button_example.cc',
     61         'radio_button_example.h',
     62         'scroll_view_example.cc',
     63         'scroll_view_example.h',
     64         'single_split_view_example.cc',
     65         'single_split_view_example.h',
     66         'slider_example.cc',
     67         'slider_example.h',
     68         'tabbed_pane_example.cc',
     69         'tabbed_pane_example.h',
     70         'table_example.cc',
     71         'table_example.h',
     72         'text_example.cc',
     73         'text_example.h',
     74         'textfield_example.cc',
     75         'textfield_example.h',
     76         'throbber_example.cc',
     77         'throbber_example.h',
     78         'tree_view_example.cc',
     79         'tree_view_example.h',
     80         'views_examples_export.h',
     81         'widget_example.cc',
     82         'widget_example.h',
     83       ],
     84       'conditions': [
     85         ['OS=="win"', {
     86           'include_dirs': [
     87             '../../../third_party/wtl/include',
     88           ],
     89           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     90           'msvs_disabled_warnings': [ 4267, ],
     91         }],
     92         ['use_aura==1', {
     93           'dependencies': [
     94             '../../aura/aura.gyp:aura',
     95           ],
     96         }],
     97       ],
     98     },  # target_name: views_examples_lib
     99     {
    100       'target_name': 'views_examples_exe',
    101       'type': 'executable',
    102       'dependencies': [
    103         '../../../base/base.gyp:base',
    104         '../../../base/base.gyp:base_i18n',
    105         '../../base/ui_base.gyp:ui_base',
    106         '../../compositor/compositor.gyp:compositor',
    107         '../../compositor/compositor.gyp:compositor_test_support',
    108         '../../gfx/gfx.gyp:gfx',
    109         '../../resources/ui_resources.gyp:ui_test_pak',
    110         '../views.gyp:views',
    111         '../views.gyp:views_test_support',
    112         'views_examples_lib',
    113       ],
    114       'sources': [
    115         'examples_main.cc',
    116       ],
    117       'conditions': [
    118         ['use_aura==1', {
    119           'dependencies': [
    120             '../../aura/aura.gyp:aura',
    121           ],
    122         }],
    123       ],
    124     },  # target_name: views_examples_exe
    125     {
    126       'target_name': 'views_examples_with_content_lib',
    127       'type': '<(component)',
    128       'dependencies': [
    129         '../../../base/base.gyp:base',
    130         '../../../content/content.gyp:content',
    131         '../../../skia/skia.gyp:skia',
    132         '../../../url/url.gyp:url_lib',
    133         '../../events/events.gyp:events',
    134         '../controls/webview/webview.gyp:webview',
    135         '../views.gyp:views',
    136         'views_examples_lib',
    137       ],
    138       'defines': [
    139         'VIEWS_EXAMPLES_WITH_CONTENT_IMPLEMENTATION',
    140       ],
    141       'sources': [
    142         'examples_window_with_content.cc',
    143         'examples_window_with_content.h',
    144         'views_examples_with_content_export.h',
    145         'webview_example.cc',
    146         'webview_example.h',
    147       ],
    148     },  # target_name: views_examples_with_content_lib
    149     {
    150       'target_name': 'views_examples_with_content_exe',
    151       'type': 'executable',
    152       'dependencies': [
    153         '../../../base/base.gyp:base',
    154         '../../../content/content.gyp:content',
    155         '../../views_content_client/views_content_client.gyp:views_content_client',
    156         'views_examples_with_content_lib',
    157       ],
    158       'sources': [
    159         '../../../content/app/startup_helper_win.cc',
    160         'examples_with_content_main_exe.cc',
    161       ],
    162       'conditions': [
    163         ['OS=="win"', {
    164           'link_settings': {
    165             'libraries': [
    166               '-limm32.lib',
    167               '-loleacc.lib',
    168             ]
    169           },
    170           'msvs_settings': {
    171             'VCManifestTool': {
    172               'AdditionalManifestFiles': [
    173                 'views_examples.exe.manifest',
    174               ],
    175             },
    176             'VCLinkerTool': {
    177               'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
    178             },
    179           },
    180           'dependencies': [
    181             '../../../sandbox/sandbox.gyp:sandbox',
    182           ],
    183         }],
    184       ],
    185     },  # target_name: views_examples_with_content_exe
    186   ],
    187 }
    188