From d72ba23b8551ee20674c7e6e142027e77214ba1c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 5 Nov 2018 23:58:16 +0100 Subject: src/rda_supported_technologies.h.in: Generate header file that knows what RDA technologies are supported after build. --- src/Makefile.am | 13 +++++++++++++ src/rda.h | 2 ++ src/rda_supported_technologies.h.in | 30 ++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 src/rda_supported_technologies.h.in (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 83243b4..11c05a8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,8 +4,21 @@ lib_LTLIBRARIES = librda.la CLEANFILES = DISTCLEANFILES = +EXTRA_DIST = +BUILT_SOURCES = + +st_file = rda_supported_technologies.h + +$(st_file): $(st_file).in + cp $< $@ + for tech in $(SUPPORTED_TECHNOLOGIES); do sed -r -e "s|// \@WITH_REMOTE_AWARENESS_($$tech)\@\s+.*|#define WITH_REMOTE_AWARENESS_\1|" -i $@; done + +CLEANFILES += $(st_file) +EXTRA_DIST += $(st_file).in +BUILT_SOURCES += $(st_file) rda_headers = \ + rda_supported_technologies.h \ rda.h \ $(NULL) diff --git a/src/rda.h b/src/rda.h index 563bd7a..cfbf268 100644 --- a/src/rda.h +++ b/src/rda.h @@ -26,6 +26,8 @@ #include +#include + G_BEGIN_DECLS enum { diff --git a/src/rda_supported_technologies.h.in b/src/rda_supported_technologies.h.in new file mode 100644 index 0000000..6336719 --- /dev/null +++ b/src/rda_supported_technologies.h.in @@ -0,0 +1,30 @@ +/* -*- Mode: C; c-set-style: linux indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ + +/* rda.h - Remote Desktop Awareness + + Copyright (C) 2018 Mike Gabriel + All rights reserved. + + The RDA Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The RDA Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Mate Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef RDA_SUPPORTED_TECHNOLOGIES_H +#define RDA_SUPPORTED_TECHNOLOGIES_H + +// @WITH_REMOTE_AWARENESS_X2GO@ not supported +// @WITH_REMOTE_AWARENESS_OGON@ not supported + +#endif /* RDA_SUPPORTED_TECHNOLOGIES_H */ -- cgit v1.2.3