| OLD | NEW |
| (Empty) |
| 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.gy
p:dynamic_annotations', | |
| 18 '../../../../build/linux/system.gyp:gconf', | |
| 19 '../../../../build/linux/system.gyp:x11', | |
| 20 '../../../../build/linux/system.gyp:xcursor', | |
| 21 '../../../../components/components_resources.gyp:components_resources', | |
| 22 '../../../../content/content.gyp:content', | |
| 23 '../../../../skia/skia.gyp:skia', | |
| 24 '../../../../ui/aura/aura.gyp:aura', | |
| 25 '../../../../ui/base/ime/ui_base_ime.gyp:ui_base_ime', | |
| 26 '../../../../ui/base/ui_base.gyp:ui_base', | |
| 27 '../../../../ui/base/x/ui_base_x.gyp:ui_base_x', | |
| 28 '../../../../ui/display/display.gyp:display', | |
| 29 '../../../../ui/events/events.gyp:events', | |
| 30 '../../../../ui/events/events.gyp:events_base', | |
| 31 '../../../../ui/events/keycodes/events_keycodes.gyp:keycodes_x11', | |
| 32 '../../../../ui/events/platform/x11/x11_events_platform.gyp:x11_events_p
latform', | |
| 33 '../../../../ui/gfx/gfx.gyp:gfx', | |
| 34 '../../../../ui/gfx/gfx.gyp:gfx_geometry', | |
| 35 '../../../../ui/gfx/x/gfx_x11.gyp:gfx_x11', | |
| 36 '../../../../ui/native_theme/native_theme.gyp:native_theme', | |
| 37 '../../../../ui/resources/ui_resources.gyp:ui_resources', | |
| 38 '../../../../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs', | |
| 39 '../../../../ui/strings/ui_strings.gyp:ui_strings', | |
| 40 '../../../../ui/views/views.gyp:views', | |
| 41 '../../../chrome_resources.gyp:chrome_extra_resources', | |
| 42 '../../../chrome_resources.gyp:chrome_resources', | |
| 43 '../../../chrome_resources.gyp:chrome_strings', | |
| 44 '../../../chrome_resources.gyp:theme_resources', | |
| 45 ], | |
| 46 'defines': [ | |
| 47 'LIBGTK2UI_IMPLEMENTATION', | |
| 48 ], | |
| 49 # Several of our source files are named _gtk2.cc. This isn't to | |
| 50 # differentiate them from their source files (ninja and make are sane | |
| 51 # build systems, unlike MSVS). It is instead to get around the rest of | |
| 52 # the normal, global gtk exclusion rules, as we are otherwise using gtk | |
| 53 # in a non-gtk build. | |
| 54 'sources': [ | |
| 55 # Note: sources list duplicated in GN build. | |
| 56 'app_indicator_icon.cc', | |
| 57 'app_indicator_icon.h', | |
| 58 'app_indicator_icon_menu.cc', | |
| 59 'app_indicator_icon_menu.h', | |
| 60 'chrome_gtk_frame.cc', | |
| 61 'chrome_gtk_frame.h', | |
| 62 'chrome_gtk_menu_subclasses.cc', | |
| 63 'chrome_gtk_menu_subclasses.h', | |
| 64 'gconf_listener.cc', | |
| 65 'gconf_listener.h', | |
| 66 'gtk2_event_loop.cc', | |
| 67 'gtk2_event_loop.h', | |
| 68 'gtk2_key_bindings_handler.cc', | |
| 69 'gtk2_key_bindings_handler.h', | |
| 70 'gtk2_status_icon.cc', | |
| 71 'gtk2_status_icon.h', | |
| 72 'gtk2_ui.cc', | |
| 73 'gtk2_ui.h', | |
| 74 'gtk2_util.cc', | |
| 75 'gtk2_util.h', | |
| 76 'libgtk2ui_export.h', | |
| 77 'menu_util.cc', | |
| 78 'menu_util.h', | |
| 79 'native_theme_gtk2.cc', | |
| 80 'native_theme_gtk2.h', | |
| 81 'print_dialog_gtk2.cc', | |
| 82 'print_dialog_gtk2.h', | |
| 83 'printing_gtk2_util.cc', | |
| 84 'printing_gtk2_util.h', | |
| 85 'select_file_dialog_impl.cc', | |
| 86 'select_file_dialog_impl.h', | |
| 87 'select_file_dialog_impl_gtk2.cc', | |
| 88 'select_file_dialog_impl_gtk2.h', | |
| 89 'select_file_dialog_impl_kde.cc', | |
| 90 'skia_utils_gtk2.cc', | |
| 91 'skia_utils_gtk2.h', | |
| 92 'unity_service.cc', | |
| 93 'unity_service.h', | |
| 94 'x11_input_method_context_impl_gtk2.cc', | |
| 95 'x11_input_method_context_impl_gtk2.h', | |
| 96 ], | |
| 97 'conditions': [ | |
| 98 ['use_gconf==0', { | |
| 99 'sources!': [ | |
| 100 'gconf_listener.cc', | |
| 101 'gconf_listener.h', | |
| 102 ], | |
| 103 }], | |
| 104 ['use_gtk3==1', { | |
| 105 'dependencies': [ | |
| 106 '../../../../build/linux/system.gyp:gtk3', | |
| 107 '../../../../build/linux/system.gyp:gtkprint3', | |
| 108 ], | |
| 109 }, { | |
| 110 'dependencies': [ | |
| 111 '../../../../build/linux/system.gyp:gtk2', | |
| 112 '../../../../build/linux/system.gyp:gtkprint2', | |
| 113 ], | |
| 114 }], | |
| 115 [ 'clang==1', { | |
| 116 'cflags': [ | |
| 117 # G_DEFINE_TYPE automatically generates a *get_instance_private inli
ne function after glib 2.37. | |
| 118 # That's unused. Prevent to complain about it. | |
| 119 '-Wno-unused-function', | |
| 120 | |
| 121 # G_STATIC_ASSERT uses a typedef as a static_assert. | |
| 122 '-Wno-unused-local-typedef', | |
| 123 ], | |
| 124 }], | |
| 125 ['enable_basic_printing==1', { | |
| 126 'dependencies': [ | |
| 127 '../../../../printing/printing.gyp:printing', | |
| 128 ], | |
| 129 }], | |
| 130 ['use_cups==1', { | |
| 131 'dependencies': [ | |
| 132 '../../../../printing/printing.gyp:cups', | |
| 133 ], | |
| 134 }], | |
| 135 ], | |
| 136 }, | |
| 137 ], | |
| 138 } | |
| OLD | NEW |