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 '../../../../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',
34 'LIBGTK2UI_IMPLEMENTATION',
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
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',
49 'chrome_gtk_menu_subclasses.cc',
50 'chrome_gtk_menu_subclasses.h',
51 'g_object_destructor_filo.cc',
52 'g_object_destructor_filo.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',
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',
88 'x11_input_method_context_impl_gtk2.cc',
89 'x11_input_method_context_impl_gtk2.h',
100 # G_DEFINE_TYPE automatically generates a *get_instance_private inline function after glib 2.37.
101 # That's unused. Prevent to complain about it.
102 '-Wno-unused-function',
104 # G_STATIC_ASSERT uses a typedef as a static_assert.
105 '-Wno-unused-local-typedef',