Home | History | Annotate | Download | only in libgtk2ui
      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       'target_name': 'gtk2ui',
     12       'type': '<(component)',
     13       'dependencies': [
     14         '../../../../base/base.gyp:base',
     15         '../../../../base/base.gyp:base_i18n',
     16         '../../../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
     17         '../../../../build/linux/system.gyp:gconf',
     18         '../../../../build/linux/system.gyp:gtk',
     19         '../../../../build/linux/system.gyp:gtkprint',
     20         '../../../../printing/printing.gyp:cups',
     21         '../../../../skia/skia.gyp:skia',
     22         '../../../../ui/base/ui_base.gyp:ui_base',
     23         '../../../../ui/resources/ui_resources.gyp:ui_resources',
     24         '../../../../ui/strings/ui_strings.gyp:ui_strings',
     25         '../../../../ui/views/views.gyp:views',
     26         '../../../chrome_resources.gyp:chrome_extra_resources',
     27         '../../../chrome_resources.gyp:chrome_resources',
     28         '../../../chrome_resources.gyp:chrome_strings',
     29         '../../../chrome_resources.gyp:theme_resources',
     30       ],
     31       'defines': [
     32         'LIBGTK2UI_IMPLEMENTATION',
     33       ],
     34       # Several of our source files are named _gtk2.cc. This isn't to
     35       # differentiate them from their source files (ninja and make are sane
     36       # build systems, unlike MSVS). It is instead to get around the rest of
     37       # the normal, global gtk exclusion rules, as we are otherwise using gtk
     38       # in a non-gtk build.
     39       'sources': [
     40         'app_indicator_icon.cc',
     41         'app_indicator_icon.h',
     42         'app_indicator_icon_menu.cc',
     43         'app_indicator_icon_menu.h',
     44         'chrome_gtk_frame.cc',
     45         'chrome_gtk_frame.h',
     46         'chrome_gtk_menu_subclasses.cc',
     47         'chrome_gtk_menu_subclasses.h',
     48         'g_object_destructor_filo.cc',
     49         'g_object_destructor_filo.h',
     50         'gconf_listener.cc',
     51         'gconf_listener.h',
     52         'gtk2_border.cc',
     53         'gtk2_border.h',
     54         'gtk2_event_loop.cc',
     55         'gtk2_event_loop.h',
     56         'gtk2_key_bindings_handler.cc',
     57         'gtk2_key_bindings_handler.h',
     58         'gtk2_signal_registrar.cc',
     59         'gtk2_signal_registrar.h',
     60         'gtk2_status_icon.cc',
     61         'gtk2_status_icon.h',
     62         'gtk2_ui.cc',
     63         'gtk2_ui.h',
     64         'gtk2_util.cc',
     65         'gtk2_util.h',
     66         'libgtk2ui_export.h',
     67         'menu_util.cc',
     68         'menu_util.h',
     69         'native_theme_gtk2.cc',
     70         'native_theme_gtk2.h',
     71         'owned_widget_gtk2.cc',
     72         'owned_widget_gtk2.h',
     73         'print_dialog_gtk2.cc',
     74         'print_dialog_gtk2.h',
     75         'printing_gtk2_util.cc',
     76         'printing_gtk2_util.h',
     77         'select_file_dialog_impl.cc',
     78         'select_file_dialog_impl.h',
     79         'select_file_dialog_impl_gtk2.cc',
     80         'select_file_dialog_impl_kde.cc',
     81         'skia_utils_gtk2.cc',
     82         'skia_utils_gtk2.h',
     83         'unity_service.cc',
     84         'unity_service.h',
     85         'x11_input_method_context_impl_gtk2.cc',
     86         'x11_input_method_context_impl_gtk2.h',
     87       ],
     88       'conditions': [
     89         ['use_gconf==0', {
     90           'sources!': [
     91             'gconf_listener.cc',
     92             'gconf_listener.h',
     93           ],
     94         }],
     95         [ 'clang==1', {
     96           # G_DEFINE_TYPE automatically generates a *get_instance_private inline function after glib 2.37.
     97           # That's unused. Prevent to complain about it.
     98           'cflags': [
     99             '-Wno-unused-function',
    100           ],
    101         }],
    102       ],
    103     },
    104   ],
    105 }
    106