Changeset 151135 in webkit


Ignore:
Timestamp:
Jun 3, 2013 3:25:19 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Respect PKG_CONFIG env variable when generating gtk-doc
https://bugs.webkit.org/show_bug.cgi?id=117168

Patch by Erik van Pienbroek <epienbro@fedoraproject.org> on 2013-06-03
Reviewed by Martin Robinson.

The tool generate-gtkdoc internally calls pkg-config.
When cross-compiling it shouldn't use pkg-config, but
it should use the pkg-config which was detected by
the ./configure script (for example this can be
i686-w64-mingw32-pkg-config when cross-compiling)

  • GNUmakefile.am:
  • gtk/gtkdoc.py:

(PkgConfigGTKDoc.init):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r151134 r151135  
     12013-06-03  Erik van Pienbroek  <epienbro@fedoraproject.org>
     2
     3        [GTK] Respect PKG_CONFIG env variable when generating gtk-doc
     4        https://bugs.webkit.org/show_bug.cgi?id=117168
     5
     6        Reviewed by Martin Robinson.
     7
     8        The tool generate-gtkdoc internally calls pkg-config.
     9        When cross-compiling it shouldn't use pkg-config, but
     10        it should use the pkg-config which was detected by
     11        the ./configure script (for example this can be
     12        i686-w64-mingw32-pkg-config when cross-compiling)
     13
     14        * GNUmakefile.am:
     15        * gtk/gtkdoc.py:
     16        (PkgConfigGTKDoc.__init__):
     17
    1182013-06-03  Brent Fulgham  <bfulgham@apple.com>
    219
  • trunk/Tools/GNUmakefile.am

    r150652 r151135  
    401401        fi
    402402endif
    403         @$(AM_V_GEN)$(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
     403        @$(AM_V_GEN) PKG_CONFIG=$(PKG_CONFIG) $(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR}
    404404
    405405uninstall-local:
  • trunk/Tools/gtk/gtkdoc.py

    r139048 r151135  
    397397        super(PkgConfigGTKDoc, self).__init__(args)
    398398
     399        pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config')
     400
    399401        if not os.path.exists(pkg_config_path):
    400402            raise Exception('Could not find pkg-config file at: %s'
    401403                            % pkg_config_path)
    402404
    403         self.cflags += " " + self._run_command(['pkg-config',
     405        self.cflags += " " + self._run_command([pkg_config,
    404406                                                pkg_config_path,
    405407                                                '--cflags'], print_output=False)
    406         self.ldflags += " " + self._run_command(['pkg-config',
     408        self.ldflags += " " + self._run_command([pkg_config,
    407409                                                pkg_config_path,
    408410                                                '--libs'], print_output=False)
    409         self.version = self._run_command(['pkg-config',
     411        self.version = self._run_command([pkg_config,
    410412                                          pkg_config_path,
    411413                                          '--modversion'], print_output=False)
    412         self.prefix = self._run_command(['pkg-config',
     414        self.prefix = self._run_command([pkg_config,
    413415                                         pkg_config_path,
    414416                                         '--variable=prefix'], print_output=False)
Note: See TracChangeset for help on using the changeset viewer.