Changeset 166584 in webkit


Ignore:
Timestamp:
Apr 1, 2014 8:13:40 AM (10 years ago)
Author:
Martin Robinson
Message:

[GTK] No longer build WebKit1 gtkdoc
https://bugs.webkit.org/show_bug.cgi?id=130970

Reviewed by Anders Carlsson.

  • gtk/common.py:

(gtk_version_of_pkg_config_file): Deleted.

  • gtk/generate-gtkdoc:

(get_gtkdoc_module_paths): We no longer need to worry about GTK+ 2, since it
was only applicable for WebKit1.
(get_generator_for_config): No longer look for the WebKit1 configuration file.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r166577 r166584  
     12014-04-01  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [GTK] No longer build WebKit1 gtkdoc
     4        https://bugs.webkit.org/show_bug.cgi?id=130970
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * gtk/common.py:
     9        (gtk_version_of_pkg_config_file): Deleted.
     10        * gtk/generate-gtkdoc:
     11        (get_gtkdoc_module_paths): We no longer need to worry about GTK+ 2, since it
     12        was only applicable for WebKit1.
     13        (get_generator_for_config): No longer look for the WebKit1 configuration file.
     14
    1152014-04-01  Mario Sanchez Prada  <mario.prada@samsung.com>
    216
  • trunk/Tools/gtk/common.py

    r166239 r166584  
    118118
    119119
    120 def gtk_version_of_pkg_config_file(pkg_config_path):
    121     process = subprocess.Popen(['pkg-config', pkg_config_path, '--print-requires'],
    122                                stdout=subprocess.PIPE)
    123     stdout = process.communicate()[0].decode("utf-8")
    124 
    125     if 'gtk+-3.0' in stdout:
    126         return 3
    127     return 2
    128 
    129 
    130120def parse_output_lines(fd, parse_line_callback):
    131121    output = ''
  • trunk/Tools/gtk/generate-gtkdoc

    r165975 r166584  
    4040        handler.setFormatter(logging.Formatter('%(message)s'))
    4141
    42 def get_gtkdoc_module_paths(gtk_version):
     42def get_gtkdoc_module_paths():
    4343    dependent_packages = {
    4444        'glib-2.0' : ['glib', 'gobject', 'gio'],
    4545        'libsoup-2.4' : ['libsoup-2.4'],
    46         'gdk-pixbuf-2.0': ['gdk-pixbuf']
     46        'gdk-pixbuf-2.0': ['gdk-pixbuf'],
     47        'gtk+-3.0' : ['gtk3', 'gdk3']
    4748    }
    48     if gtk_version == 3:
    49         dependent_packages.update({'gtk+-3.0' : ['gtk3', 'gdk3']})
    50     else:
    51         dependent_packages.update({'gtk+-2.0' : ['gtk', 'gdk']})
    5249
    5350    paths = []
     
    106103    module_name = config.sections()[0]
    107104    pkgconfig_file = config.get(module_name, 'pkgconfig_file')
    108     gtk_version = common.gtk_version_of_pkg_config_file(pkgconfig_file)
    109105
    110106    if not os.path.isfile(pkgconfig_file):
     
    125121        'headers': headers,
    126122        'cflags': " ".join(config.get(module_name, 'cflags').split()),
    127         'cross_reference_deps': get_gtkdoc_module_paths(gtk_version),
     123        'cross_reference_deps': get_gtkdoc_module_paths(),
    128124        'ignored_files': files_to_ignore(source_dirs, headers),
    129125    })
     
    194190    webkitdom.write_doc_files()
    195191    generate_documentation_for_config(common.build_path('gtkdoc-webkitdom.cfg'))
     192    saw_warnings = generate_documentation_for_config(common.build_path('gtkdoc-webkit2gtk.cfg'))
    196193
    197     saw_webkit1_warnings = generate_documentation_for_config(common.build_path('gtkdoc-webkitgtk.cfg'))
    198     saw_webkit2_warnings = generate_documentation_for_config(common.build_path('gtkdoc-webkit2gtk.cfg'))
    199 
    200     sys.exit(saw_webkit1_warnings or saw_webkit2_warnings)
     194    sys.exit(saw_warnings)
Note: See TracChangeset for help on using the changeset viewer.