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