From 628100c19f5d82747170acdf2917cba8c119ccbf Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Tue, 13 Dec 2016 16:12:03 -0500 Subject: build: Replace Autotools with Meson Quick rundown of benefits: - Much faster: - Autotools (with autogen): 22 seconds - Meson: 7 seconds - Meson (with ccache): 2 seconds - Simpler: - ~1000 lines smaller - Single simple language - Potentially better Windows (Visual Studio) support What is not done: - Complete Windows support - OSX support (easy) Closes #2013 Closes #1937 Closes #1803 --- data/pkgconfig/Makefile.am | 4 ---- data/pkgconfig/meson.build | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 data/pkgconfig/Makefile.am create mode 100644 data/pkgconfig/meson.build (limited to 'data/pkgconfig') diff --git a/data/pkgconfig/Makefile.am b/data/pkgconfig/Makefile.am deleted file mode 100644 index 7ee0ac95..00000000 --- a/data/pkgconfig/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -pkgcfgdir = $(pkgconfigdir) -pkgcfg_DATA = hexchat-plugin.pc - -EXTRA_DIST = hexchat-plugin.pc.in diff --git a/data/pkgconfig/meson.build b/data/pkgconfig/meson.build new file mode 100644 index 00000000..3bacf301 --- /dev/null +++ b/data/pkgconfig/meson.build @@ -0,0 +1,14 @@ +pkg_conf = configuration_data() +prefix = get_option('prefix') +pkg_conf.set('prefix', prefix) +pkg_conf.set('VERSION', meson.project_version()) +pkg_conf.set('hexchatlibdir', join_paths(prefix, plugindir)) +pkg_conf.set('includedir', join_paths(prefix, get_option('includedir'))) + +configure_file( + input: 'hexchat-plugin.pc.in', + output: 'hexchat-plugin.pc', + configuration: pkg_conf, + install: true, + install_dir: join_paths(get_option('libdir'), 'pkgconfig'), +) -- cgit 1.4.1