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.
11 # GN version: //chrome/browser/ui/libgtk2ui
12 'target_name': 'gtk2ui',
13 'type': '<(component)',
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 '../../../../build/linux/system.gyp:x11',
22 '../../../../components/components_resources.gyp:components_resources',
23 '../../../../content/content.gyp:content',
24 '../../../../printing/printing.gyp:cups',
25 '../../../../printing/printing.gyp:printing',
26 '../../../../skia/skia.gyp:skia',
27 '../../../../ui/aura/aura.gyp:aura',
28 '../../../../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
29 '../../../../ui/base/ui_base.gyp:ui_base',
30 '../../../../ui/events/events.gyp:events',
31 '../../../../ui/events/events.gyp:events_base',
32 '../../../../ui/gfx/gfx.gyp:gfx',
33 '../../../../ui/gfx/x/gfx_x11.gyp:gfx_x11',
34 '../../../../ui/native_theme/native_theme.gyp:native_theme',
35 '../../../../ui/resources/ui_resources.gyp:ui_resources',
36 '../../../../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
37 '../../../../ui/strings/ui_strings.gyp:ui_strings',
38 '../../../../ui/views/views.gyp:views',
39 '../../../chrome_resources.gyp:chrome_extra_resources',
40 '../../../chrome_resources.gyp:chrome_resources',
41 '../../../chrome_resources.gyp:chrome_strings',
42 '../../../chrome_resources.gyp:theme_resources',
45 'LIBGTK2UI_IMPLEMENTATION',
47 # Several of our source files are named _gtk2.cc. This isn't to
48 # differentiate them from their source files (ninja and make are sane
49 # build systems, unlike MSVS). It is instead to get around the rest of
50 # the normal, global gtk exclusion rules, as we are otherwise using gtk
53 # Note: sources list duplicated in GN build.
54 'app_indicator_icon.cc',
55 'app_indicator_icon.h',
56 'app_indicator_icon_menu.cc',
57 'app_indicator_icon_menu.h',
58 'chrome_gtk_frame.cc',
60 'chrome_gtk_menu_subclasses.cc',
61 'chrome_gtk_menu_subclasses.h',
62 'g_object_destructor_filo.cc',
63 'g_object_destructor_filo.h',
70 'gtk2_key_bindings_handler.cc',
71 'gtk2_key_bindings_handler.h',
72 'gtk2_signal_registrar.cc',
73 'gtk2_signal_registrar.h',
74 'gtk2_status_icon.cc',
83 'native_theme_gtk2.cc',
84 'native_theme_gtk2.h',
85 'owned_widget_gtk2.cc',
86 'owned_widget_gtk2.h',
87 'print_dialog_gtk2.cc',
88 'print_dialog_gtk2.h',
89 'printing_gtk2_util.cc',
90 'printing_gtk2_util.h',
91 'select_file_dialog_impl.cc',
92 'select_file_dialog_impl.h',
93 'select_file_dialog_impl_gtk2.cc',
94 'select_file_dialog_impl_kde.cc',
99 'x11_input_method_context_impl_gtk2.cc',
100 'x11_input_method_context_impl_gtk2.h',
111 # G_DEFINE_TYPE automatically generates a *get_instance_private inline function after glib 2.37.
112 # That's unused. Prevent to complain about it.
113 '-Wno-unused-function',
115 # G_STATIC_ASSERT uses a typedef as a static_assert.
116 '-Wno-unused-local-typedef',