Changeset 166584 in webkit
- Timestamp:
- Apr 1, 2014 8:13:40 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r166577 r166584 1 2014-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 1 15 2014-04-01 Mario Sanchez Prada <mario.prada@samsung.com> 2 16 -
trunk/Tools/gtk/common.py
r166239 r166584 118 118 119 119 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 3127 return 2128 129 130 120 def parse_output_lines(fd, parse_line_callback): 131 121 output = '' -
trunk/Tools/gtk/generate-gtkdoc
r165975 r166584 40 40 handler.setFormatter(logging.Formatter('%(message)s')) 41 41 42 def get_gtkdoc_module_paths( gtk_version):42 def get_gtkdoc_module_paths(): 43 43 dependent_packages = { 44 44 'glib-2.0' : ['glib', 'gobject', 'gio'], 45 45 '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'] 47 48 } 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']})52 49 53 50 paths = [] … … 106 103 module_name = config.sections()[0] 107 104 pkgconfig_file = config.get(module_name, 'pkgconfig_file') 108 gtk_version = common.gtk_version_of_pkg_config_file(pkgconfig_file)109 105 110 106 if not os.path.isfile(pkgconfig_file): … … 125 121 'headers': headers, 126 122 '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(), 128 124 'ignored_files': files_to_ignore(source_dirs, headers), 129 125 }) … … 194 190 webkitdom.write_doc_files() 195 191 generate_documentation_for_config(common.build_path('gtkdoc-webkitdom.cfg')) 192 saw_warnings = generate_documentation_for_config(common.build_path('gtkdoc-webkit2gtk.cfg')) 196 193 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.