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