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.
5 assert(is_linux, "This file should only be referenced on Linux")
7 import("//build/config/features.gni")
9 component("libgtk2ui") {
11 "app_indicator_icon.cc",
12 "app_indicator_icon.h",
13 "app_indicator_icon_menu.cc",
14 "app_indicator_icon_menu.h",
15 "chrome_gtk_frame.cc",
17 "chrome_gtk_menu_subclasses.cc",
18 "chrome_gtk_menu_subclasses.h",
19 "g_object_destructor_filo.cc",
20 "g_object_destructor_filo.h",
25 "gtk2_key_bindings_handler.cc",
26 "gtk2_key_bindings_handler.h",
27 "gtk2_signal_registrar.cc",
28 "gtk2_signal_registrar.h",
29 "gtk2_status_icon.cc",
38 "native_theme_gtk2.cc",
39 "native_theme_gtk2.h",
40 "owned_widget_gtk2.cc",
41 "owned_widget_gtk2.h",
42 "print_dialog_gtk2.cc",
43 "print_dialog_gtk2.h",
44 "printing_gtk2_util.cc",
45 "printing_gtk2_util.h",
46 "select_file_dialog_impl.cc",
47 "select_file_dialog_impl.h",
48 "select_file_dialog_impl_gtk2.cc",
49 "select_file_dialog_impl_kde.cc",
54 "x11_input_method_context_impl_gtk2.cc",
55 "x11_input_method_context_impl_gtk2.h",
64 defines = [ "LIBGTK2UI_IMPLEMENTATION" ]
67 "//build/config/linux:gconf",
71 # gn orders flags on a target before flags from configs. The default config
72 # adds -Wall, and these flags have to be after -Wall -- so they need to come
73 # from a config and can't be on the target directly.
74 config("libgtk2ui_warnings") {
77 # G_DEFINE_TYPE automatically generates a *get_instance_private inline
78 # function after glib 2.37. That's unused. Prevent to complain about it.
79 "-Wno-unused-function",
81 # G_STATIC_ASSERT uses a typedef as a static_assert.
82 "-Wno-unused-local-typedef",
87 ":libgtk2ui_warnings",
88 "//build/config/linux:x11",
93 "//base/third_party/dynamic_annotations",
95 "//build/config/linux/gtk",
96 "//build/config/linux/gtk:gtkprint",
97 "//chrome/app/theme:theme_resources",
98 "//chrome:extra_resources",
101 "//components/resources",
102 "//content/public/browser",
105 "//third_party/mojo/src/mojo/edk/system",
110 "//ui/events:events_base",
115 "//ui/shell_dialogs",