Changeset 151135 in webkit
- Timestamp:
- Jun 3, 2013 3:25:19 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r151134 r151135 1 2013-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 1 18 2013-06-03 Brent Fulgham <bfulgham@apple.com> 2 19 -
trunk/Tools/GNUmakefile.am
r150652 r151135 401 401 fi 402 402 endif 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} 404 404 405 405 uninstall-local: -
trunk/Tools/gtk/gtkdoc.py
r139048 r151135 397 397 super(PkgConfigGTKDoc, self).__init__(args) 398 398 399 pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config') 400 399 401 if not os.path.exists(pkg_config_path): 400 402 raise Exception('Could not find pkg-config file at: %s' 401 403 % pkg_config_path) 402 404 403 self.cflags += " " + self._run_command([ 'pkg-config',405 self.cflags += " " + self._run_command([pkg_config, 404 406 pkg_config_path, 405 407 '--cflags'], print_output=False) 406 self.ldflags += " " + self._run_command([ 'pkg-config',408 self.ldflags += " " + self._run_command([pkg_config, 407 409 pkg_config_path, 408 410 '--libs'], print_output=False) 409 self.version = self._run_command([ 'pkg-config',411 self.version = self._run_command([pkg_config, 410 412 pkg_config_path, 411 413 '--modversion'], print_output=False) 412 self.prefix = self._run_command([ 'pkg-config',414 self.prefix = self._run_command([pkg_config, 413 415 pkg_config_path, 414 416 '--variable=prefix'], print_output=False)
Note: See TracChangeset
for help on using the changeset viewer.