⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 107164 in webkit


Ignore:
Timestamp:
Feb 8, 2012, 6:28:31 PM (15 years ago)
Author:
kov@webkit.org
Message:

[GTK] doc rebasing does not respect DESTDIR
https://bugs.webkit.org/show_bug.cgi?id=78177

Reviewed by Martin Robinson.

  • GNUmakefile.am: Pass DESTDIR on to generate-gtkdoc, when

calling it for rebasing.

  • gtk/generate-gtkdoc:

(get_common_options): Handle the new --virtual-root option.

  • gtk/gtkdoc.py:

(GTKDoc.rebase_installed_docs): If a virtual-root has been given, pass
it on to gtkdoc-rebase as dest-dir, and prefix the htmldir with it.

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r107156 r107164  
     12012-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
    1162012-02-08  Adam Barth  <abarth@webkit.org>
    217
  • trunk/Tools/GNUmakefile.am

    r106847 r107164  
    327327        fi
    328328endif
    329         $(srcdir)/Tools/gtk/generate-gtkdoc --rebase
     329        $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
    330330
    331331uninstall-local:
  • trunk/Tools/gtk/generate-gtkdoc

    r107150 r107164  
    5151
    5252def 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
    5361    return {
    5462        'decorator': 'WEBKIT_API',
    5563        'deprecation_guard': 'WEBKIT_DISABLE_DEPRECATED',
    5664        'library_path' : common.build_path('.libs'),
     65        'virtual_root' : virtual_root,
    5766    }
    5867
  • trunk/Tools/gtk/gtkdoc.py

    r106805 r107164  
    7575                          to continue or not. When this value is false, generation
    7676                          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.
    7782    """
    7883
     
    357362
    358363    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)
    360365        if not os.path.isdir(html_dir):
    361366            return
     
    364369                '--html-dir=%s' % html_dir]
    365370        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])
    366373        self._run_command(args, cwd=self.output_dir)
    367374
Note: See TracChangeset for help on using the changeset viewer.