On Thu, Nov 17, 2016 at 12:15:03PM +0000, Frediano Ziglio wrote: > The versions/copyright in version.rc are very outdated. > Updating them automatically at configure time should ensure they are > updated more often. > Looks a bit weird to distribute config.h file however in this > case it contain only version information and the file is > useful to compile under Windows. > > This patch is inspired by a work of Christophe Fergeau > > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > Makefile.am | 1 + > common/version.rc | 12 +++++++----- > configure.ac | 6 ++++++ > 3 files changed, 14 insertions(+), 5 deletions(-) > > diff --git a/Makefile.am b/Makefile.am > index 92e51e9..3962c3e 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -87,6 +87,7 @@ CLEANFILES = spice-vdagent-$(WIXL_ARCH)-$(VERSION)$(BUILDID).msi > > EXTRA_DIST += \ > $(top_srcdir)/.version \ > + config.h \ > common/version.rc \ > tests/clipboard.py \ > vdagent.sln \ > diff --git a/common/version.rc b/common/version.rc > index e78a7ef..2603dce 100644 > --- a/common/version.rc > +++ b/common/version.rc > @@ -1,6 +1,8 @@ > ///////////////////////////////////////////////////////////////////////////// > // English (U.S.) resources > > +#include "../config.h" Is this #include "../config.h" working as expected for out of srctree builds? Christophe
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel