Changeset 107164 in webkit
- Timestamp:
- Feb 8, 2012, 6:28:31 PM (15 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
GNUmakefile.am (modified) (1 diff)
-
gtk/generate-gtkdoc (modified) (1 diff)
-
gtk/gtkdoc.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r107156 r107164 1 2012-02-08 Gustavo Noronha Silva <gns@gnome.org> 2 3 [GTK] doc rebasing does not respect DESTDIR 4 https://bugs.webkit.org/show_bug.cgi?id=78177 5 6 Reviewed by Martin Robinson. 7 8 * GNUmakefile.am: Pass DESTDIR on to generate-gtkdoc, when 9 calling it for rebasing. 10 * gtk/generate-gtkdoc: 11 (get_common_options): Handle the new --virtual-root option. 12 * gtk/gtkdoc.py: 13 (GTKDoc.rebase_installed_docs): If a virtual-root has been given, pass 14 it on to gtkdoc-rebase as dest-dir, and prefix the htmldir with it. 15 1 16 2012-02-08 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Tools/GNUmakefile.am
r106847 r107164 327 327 fi 328 328 endif 329 $(srcdir)/Tools/gtk/generate-gtkdoc --rebase 329 $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR} 330 330 331 331 uninstall-local: -
trunk/Tools/gtk/generate-gtkdoc
r107150 r107164 51 51 52 52 def get_common_options(): 53 # TODO: We should consider using an arguments parsing library if 54 # we need more of these complex ones. 55 virtual_root = '' 56 for argument in sys.argv: 57 if argument.startswith('--virtual-root='): 58 virtual_root = argument.split('=')[1] 59 break 60 53 61 return { 54 62 'decorator': 'WEBKIT_API', 55 63 'deprecation_guard': 'WEBKIT_DISABLE_DEPRECATED', 56 64 'library_path' : common.build_path('.libs'), 65 'virtual_root' : virtual_root, 57 66 } 58 67 -
trunk/Tools/gtk/gtkdoc.py
r106805 r107164 75 75 to continue or not. When this value is false, generation 76 76 will continue despite warnings. (default False) 77 78 virtual_root -- A temporary installation directory which is used as the root 79 where the actual installation prefix lives; this is mostly 80 useful for packagers, and should be set to what is given to 81 make install as DESTDIR. 77 82 """ 78 83 … … 357 362 358 363 def rebase_installed_docs(self): 359 html_dir = os.path.join(self. prefix, 'share', 'gtk-doc', 'html', self.module_name)364 html_dir = os.path.join(self.virtual_root + self.prefix, 'share', 'gtk-doc', 'html', self.module_name) 360 365 if not os.path.isdir(html_dir): 361 366 return … … 364 369 '--html-dir=%s' % html_dir] 365 370 args.extend(['--other-dir=%s' % extra_dir for extra_dir in self.cross_reference_deps]) 371 if self.virtual_root: 372 args.extend(['--dest-dir=%s' % self.virtual_root]) 366 373 self._run_command(args, cwd=self.output_dir) 367 374
Note:
See TracChangeset
for help on using the changeset viewer.