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         '../../../../build/linux/system.gyp:gconf',
     17         '../../../../build/linux/system.gyp:gtk',
     18         '../../../../skia/skia.gyp:skia',
     19         '../../../../ui/base/strings/ui_strings.gyp:ui_strings',
     20         '../../../../ui/resources/ui_resources.gyp:ui_resources',
     21         '../../../../ui/ui.gyp:ui',
     22         '../../../../ui/views/views.gyp:views',
     23         '../../../chrome_resources.gyp:chrome_extra_resources',
     24         '../../../chrome_resources.gyp:chrome_resources',
     25         '../../../chrome_resources.gyp:chrome_strings',
     26         '../../../chrome_resources.gyp:theme_resources',
     27       ],
     28       'defines': [
     29         'LIBGTK2UI_IMPLEMENTATION',
     30       ],
     31       # Several of our source files are named _gtk2.cc. This isn't to
     32       # differentiate them from their source files (ninja and make are sane
     33       # build systems, unlike MSVS). It is instead to get around the rest of
     34       # the normal, global gtk exclusion rules, as we are otherwise using gtk
     35       # in a non-gtk build.
     36       'sources': [
     37         'app_indicator_icon.cc',
     38         'app_indicator_icon.h',
     39         'chrome_gtk_frame.cc',
     40         'chrome_gtk_frame.h',
     41         'chrome_gtk_menu_subclasses.cc',
     42         'chrome_gtk_menu_subclasses.h',
     43         'gconf_titlebar_listener.cc',
     44         'gconf_titlebar_listener.h',
     45         'gtk2_ui.cc',
     46         'gtk2_ui.h',
     47         'gtk2_util.cc',
     48         'gtk2_util.h',
     49         'libgtk2ui_export.h',
     50         'menu_util.cc',
     51         'menu_util.h',
     52         'native_theme_gtk2.cc',
     53         'native_theme_gtk2.h',
     54         'owned_widget_gtk2.cc',
     55         'owned_widget_gtk2.h',
     56         'select_file_dialog_impl.cc',
     57         'select_file_dialog_impl.h',
     58         'select_file_dialog_impl_gtk2.cc',
     59         'select_file_dialog_impl_kde.cc',
     60         'skia_utils_gtk2.cc',
     61         'skia_utils_gtk2.h',
     62         'unity_service.cc',
     63         'unity_service.h',
     64         'x11_input_method_context_impl_gtk2.cc',
     65         'x11_input_method_context_impl_gtk2.h',
     66       ],
     67       'conditions': [
     68         ['use_gconf==0', {
     69           'sources!': [
     70             'gconf_titlebar_listener.cc',
     71             'gconf_titlebar_listener.h',
     72           ],
     73         }],
     74       ],
     75     },
     76   ],
     77 }
     78