From e2edbfe47d89059f2020baccd76ad4715ef87871 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sat, 12 Oct 2013 18:41:27 -0700 Subject: win32: Use version information from configure.ac to populate the Windows-specific files that need it - config-win32.h, version.txt, hexchat.rc, hexchat.iss This is done via T4 templates. The original files are now generated at build-time and so have been added to .gitignore and removed from the repository, with the exception of version.txt which must be hosted on GitHub for the updater plugin. --- config-win32.h.tt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 config-win32.h.tt (limited to 'config-win32.h.tt') diff --git a/config-win32.h.tt b/config-win32.h.tt new file mode 100644 index 00000000..8f21d0b1 --- /dev/null +++ b/config-win32.h.tt @@ -0,0 +1,19 @@ +<#@ include file="version.include.tt" #>#define LOCALEDIR ".\\share\\locale" +#define ENABLE_NLS +#define USE_GMODULE +#define USE_PLUGIN +#define USE_OPENSSL +#define USE_IPV6 +#define HAVE_ISO_CODES +#define ISO_CODES_PREFIX ".\\" +#define ISO_CODES_LOCALEDIR LOCALEDIR +#define PACKAGE_NAME "hexchat" +#define PACKAGE_VERSION "<#= string.Join(".", versionParts) #>" +#define HEXCHATLIBDIR ".\\plugins" +#define HEXCHATSHAREDIR "." +#define OLD_PERL +#define GETTEXT_PACKAGE "hexchat" +#define PACKAGE_TARNAME "hexchat-<#= string.Join(".", versionParts) #>" +#ifndef USE_IPV6 +#define socklen_t int +#endif -- cgit 1.4.1