Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 assert(is_linux, "This file should only be referenced on Linux") | |
| 6 | |
| 7 import("//build/config/features.gni") | |
| 8 | |
| 9 component("libgtk2ui") { | |
| 10 sources = [ | |
| 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", | |
| 16 "chrome_gtk_frame.h", | |
| 17 "chrome_gtk_menu_subclasses.cc", | |
| 18 "chrome_gtk_menu_subclasses.h", | |
| 19 "g_object_destructor_filo.cc", | |
| 20 "g_object_destructor_filo.h", | |
| 21 "gconf_listener.cc", | |
| 22 "gconf_listener.h", | |
| 23 "gtk2_border.cc", | |
| 24 "gtk2_border.h", | |
| 25 "gtk2_event_loop.cc", | |
| 26 "gtk2_event_loop.h", | |
| 27 "gtk2_key_bindings_handler.cc", | |
| 28 "gtk2_key_bindings_handler.h", | |
| 29 "gtk2_signal_registrar.cc", | |
| 30 "gtk2_signal_registrar.h", | |
| 31 "gtk2_status_icon.cc", | |
| 32 "gtk2_status_icon.h", | |
| 33 "gtk2_ui.cc", | |
| 34 "gtk2_ui.h", | |
| 35 "gtk2_util.cc", | |
| 36 "gtk2_util.h", | |
| 37 "libgtk2ui_export.h", | |
| 38 "menu_util.cc", | |
| 39 "menu_util.h", | |
| 40 "native_theme_gtk2.cc", | |
| 41 "native_theme_gtk2.h", | |
| 42 "owned_widget_gtk2.cc", | |
| 43 "owned_widget_gtk2.h", | |
| 44 "print_dialog_gtk2.cc", | |
| 45 "print_dialog_gtk2.h", | |
| 46 "printing_gtk2_util.cc", | |
| 47 "printing_gtk2_util.h", | |
| 48 "select_file_dialog_impl.cc", | |
| 49 "select_file_dialog_impl.h", | |
| 50 "select_file_dialog_impl_gtk2.cc", | |
| 51 "select_file_dialog_impl_kde.cc", | |
| 52 "skia_utils_gtk2.cc", | |
| 53 "skia_utils_gtk2.h", | |
| 54 "unity_service.cc", | |
| 55 "unity_service.h", | |
| 56 "x11_input_method_context_impl_gtk2.cc", | |
| 57 "x11_input_method_context_impl_gtk2.h", | |
| 58 ] | |
| 59 | |
| 60 if (!use_gconf) { | |
|
awong
2014/08/26 00:29:04
Invert to be additive?
The subtractive version is
| |
| 61 sources -= [ | |
| 62 "gconf_listener.cc", | |
| 63 "gconf_listener.h", | |
| 64 ] | |
| 65 } | |
| 66 if (is_clang) { | |
| 67 # G_DEFINE_TYPE automatically generates a *get_instance_private inline | |
| 68 # function after glib 2.37. That's unused. Prevent to complain about it. | |
| 69 cflags = [ "-Wno-unused-function" ] | |
| 70 } | |
| 71 | |
| 72 defines = [ "LIBGTK2UI_IMPLEMENTATION" ] | |
| 73 | |
| 74 configs += [ | |
| 75 "//build/config/linux:gconf", | |
| 76 "//build/config/linux:gtk", | |
| 77 "//build/config/linux:gtkprint", | |
| 78 "//printing:cups", | |
| 79 ] | |
| 80 | |
| 81 deps = [ | |
| 82 "//base", | |
| 83 "//base:i18n", | |
| 84 "//base/third_party/dynamic_annotations", | |
| 85 "//chrome/app/theme:theme_resources", | |
| 86 "//chrome:extra_resources", | |
| 87 "//chrome:resources", | |
| 88 "//chrome:strings", | |
| 89 "//components/resources", | |
| 90 "//skia", | |
| 91 "//ui/base", | |
| 92 "//ui/resources", | |
| 93 "//ui/strings", | |
| 94 "//ui/views", | |
| 95 ] | |
| 96 } | |
| OLD | NEW |