Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / libgtk2ui / libgtk2ui.gyp
1 # Copyright (c) 2012 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   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'gtk2ui',
12       'type': '<(component)',
13       'dependencies': [
14         '../../../../base/base.gyp:base',
15         '../../../../base/base.gyp:base_i18n',
16         '../../../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17         '../../../../build/linux/system.gyp:gconf',
18         '../../../../build/linux/system.gyp:gtk',
19         '../../../../build/linux/system.gyp:gtkprint',
20         '../../../../components/components_resources.gyp:components_resources',
21         '../../../../printing/printing.gyp:cups',
22         '../../../../skia/skia.gyp:skia',
23         '../../../../ui/base/ui_base.gyp:ui_base',
24         '../../../../ui/resources/ui_resources.gyp:ui_resources',
25         '../../../../ui/strings/ui_strings.gyp:ui_strings',
26         '../../../../ui/views/views.gyp:views',
27         '../../../chrome_resources.gyp:chrome_extra_resources',
28         '../../../chrome_resources.gyp:chrome_resources',
29         '../../../chrome_resources.gyp:chrome_strings',
30         '../../../chrome_resources.gyp:theme_resources',
31       ],
32       'defines': [
33         'LIBGTK2UI_IMPLEMENTATION',
34       ],
35       # Several of our source files are named _gtk2.cc. This isn't to
36       # differentiate them from their source files (ninja and make are sane
37       # build systems, unlike MSVS). It is instead to get around the rest of
38       # the normal, global gtk exclusion rules, as we are otherwise using gtk
39       # in a non-gtk build.
40       'sources': [
41         'app_indicator_icon.cc',
42         'app_indicator_icon.h',
43         'app_indicator_icon_menu.cc',
44         'app_indicator_icon_menu.h',
45         'chrome_gtk_frame.cc',
46         'chrome_gtk_frame.h',
47         'chrome_gtk_menu_subclasses.cc',
48         'chrome_gtk_menu_subclasses.h',
49         'g_object_destructor_filo.cc',
50         'g_object_destructor_filo.h',
51         'gconf_listener.cc',
52         'gconf_listener.h',
53         'gtk2_border.cc',
54         'gtk2_border.h',
55         'gtk2_event_loop.cc',
56         'gtk2_event_loop.h',
57         'gtk2_key_bindings_handler.cc',
58         'gtk2_key_bindings_handler.h',
59         'gtk2_signal_registrar.cc',
60         'gtk2_signal_registrar.h',
61         'gtk2_status_icon.cc',
62         'gtk2_status_icon.h',
63         'gtk2_ui.cc',
64         'gtk2_ui.h',
65         'gtk2_util.cc',
66         'gtk2_util.h',
67         'libgtk2ui_export.h',
68         'menu_util.cc',
69         'menu_util.h',
70         'native_theme_gtk2.cc',
71         'native_theme_gtk2.h',
72         'owned_widget_gtk2.cc',
73         'owned_widget_gtk2.h',
74         'print_dialog_gtk2.cc',
75         'print_dialog_gtk2.h',
76         'printing_gtk2_util.cc',
77         'printing_gtk2_util.h',
78         'select_file_dialog_impl.cc',
79         'select_file_dialog_impl.h',
80         'select_file_dialog_impl_gtk2.cc',
81         'select_file_dialog_impl_kde.cc',
82         'skia_utils_gtk2.cc',
83         'skia_utils_gtk2.h',
84         'unity_service.cc',
85         'unity_service.h',
86         'x11_input_method_context_impl_gtk2.cc',
87         'x11_input_method_context_impl_gtk2.h',
88       ],
89       'conditions': [
90         ['use_gconf==0', {
91           'sources!': [
92             'gconf_listener.cc',
93             'gconf_listener.h',
94           ],
95         }],
96         [ 'clang==1', {
97           # G_DEFINE_TYPE automatically generates a *get_instance_private inline function after glib 2.37.
98           # That's unused. Prevent to complain about it.
99           'cflags': [
100             '-Wno-unused-function',
101           ],
102         }],
103       ],
104     },
105   ],
106 }