[glib: 1/2] Meson: Remove config.h.meson template
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Meson: Remove config.h.meson template
- Date: Thu, 7 Jun 2018 13:45:43 +0000 (UTC)
commit 11822c40bc240f43ec69589a4ef1e8c4299800e7
Author: Xavier Claessens <xavier claessens collabora com>
Date: Wed May 23 15:11:09 2018 -0400
Meson: Remove config.h.meson template
It became useless because glib_conf is not used anymore for generating
pkgconfig files. See issue #1313.
config.h.meson | 825 --------------------------------------------------------
gio/meson.build | 6 -
meson.build | 27 +-
3 files changed, 9 insertions(+), 849 deletions(-)
---
diff --git a/gio/meson.build b/gio/meson.build
index b8baaa639..355510ef1 100644
--- a/gio/meson.build
+++ b/gio/meson.build
@@ -164,12 +164,6 @@ if host_system != 'windows'
endif
-network_args_string = ''
-foreach arg : network_args
- network_args_string += arg + ' '
-endforeach
-glib_conf.set('NETWORK_LIBS', network_args_string)
-
gnetworking_h_conf.set('WSPIAPI_INCLUDE', gnetworking_h_wspiapi_include)
gnetworking_h_conf.set('NAMESER_COMPAT_INCLUDE', gnetworking_h_nameser_compat_include)
diff --git a/meson.build b/meson.build
index 714c8bf93..2d6872ea4 100644
--- a/meson.build
+++ b/meson.build
@@ -84,7 +84,6 @@ glibconfig_conf = configuration_data()
# use them later in test programs (autoconf does this automatically)
glib_conf_prefix = ''
-glib_conf.set('GLIB_VERSION', glib_version)
glib_conf.set('GLIB_MAJOR_VERSION', major_version)
glib_conf.set('GLIB_MINOR_VERSION', minor_version)
glib_conf.set('GLIB_MICRO_VERSION', micro_version)
@@ -99,17 +98,6 @@ glib_conf.set_quoted('PACKAGE_URL', '')
glib_conf.set_quoted('PACKAGE_VERSION', meson.project_version())
glib_conf.set('ENABLE_NLS', 1)
-# Variables used in glib-gettextize and pkg-config files
-# These should not contain " quotes around the values
-glib_conf.set('PACKAGE', 'glib')
-glib_conf.set('VERSION', meson.project_version())
-glib_conf.set('prefix', glib_prefix)
-glib_conf.set('exec_prefix', glib_prefix)
-glib_conf.set('libdir', glib_libdir)
-glib_conf.set('includedir', glib_includedir)
-glib_conf.set('datadir', glib_datadir)
-glib_conf.set('datarootdir', glib_datadir)
-
# used by the .rc.in files
glibconfig_conf.set('LT_CURRENT_MINUS_AGE', soversion)
@@ -1786,8 +1774,6 @@ if host_system == 'sunos'
glib_conf.set('__EXTENSIONS__',1)
endif
-glib_conf.set('GIO_MODULE_DIR', glib_giomodulesdir)
-
# Sadly Meson does not expose this value:
# https://github.com/mesonbuild/meson/pull/3460
if host_system == 'windows'
@@ -1878,11 +1864,18 @@ subdir('tests')
# Install glib-gettextize executable, if a UNIX-style shell is found
if have_sh
+ # These should not contain " quotes around the values
+ gettexize_conf = configuration_data()
+ gettexize_conf.set('PACKAGE', 'glib')
+ gettexize_conf.set('VERSION', meson.project_version())
+ gettexize_conf.set('prefix', glib_prefix)
+ gettexize_conf.set('datarootdir', glib_datadir)
+ gettexize_conf.set('datadir', glib_datadir)
configure_file(input : 'glib-gettextize.in',
install : true,
install_dir : 'bin',
output : 'glib-gettextize',
- configuration : glib_conf)
+ configuration : gettexize_conf)
endif
if have_m4
@@ -1898,9 +1891,7 @@ if host_system != 'windows'
install_dir : join_paths(get_option('datadir'), 'glib-2.0', 'valgrind'))
endif
-configure_file(input : 'config.h.meson',
- output : 'config.h',
- configuration : glib_conf)
+configure_file(output : 'config.h', configuration : glib_conf)
if host_system == 'windows'
install_headers([ 'msvc_recommended_pragmas.h' ], subdir : 'glib-2.0')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]