summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2019-05-20 18:16:40 +0200
committerDaiki Ueno <ueno@gnu.org>2019-06-18 14:17:28 +0200
commit1e8ca781b983cb31d62e21a3a61f25be1fcc694f (patch)
treea85d0ed83e62fa63a11760fbf83c2b6076cd7455
parent045d7546fc317deefc2d84d524a211ce6ab4869b (diff)
virtual: Rename virtual-fixed.c to virtual-fixed-generated.h
Previously the generated .c file was included in another source file, which is not supported in some build systems (e.g., meson).
-rw-r--r--.gitignore2
-rw-r--r--.travis/linux/after_success.sh2
-rw-r--r--p11-kit/Makefile.am6
-rw-r--r--p11-kit/virtual.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 9390002..4e3f7e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,7 +98,7 @@ x86_64-w64-mingw32
/p11-kit/p11-kit-1.pc
/p11-kit/pkcs11.conf.example
/p11-kit/p11-kit-server.service
-/p11-kit/virtual-fixed.c
+/p11-kit/virtual-fixed-generated.h
/p11-kit/*.gnu.c
/p11-kit-remote
diff --git a/.travis/linux/after_success.sh b/.travis/linux/after_success.sh
index 9c42ce9..6c648a2 100644
--- a/.travis/linux/after_success.sh
+++ b/.travis/linux/after_success.sh
@@ -9,5 +9,5 @@ if test x"$COVERAGE" = xyes; then
docker exec \
-e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" \
-e TRAVIS_BRANCH="$TRAVIS_BRANCH" \
- $CONTAINER sh -c "cd $BUILDDIR && cpp-coveralls -b $BUILDDIR -E '(^|.*/)(frob|mock|test)-.*|(^|.*/)(virtual-fixed\.c)' --gcov-options '\-lp'"
+ $CONTAINER sh -c "cd $BUILDDIR && cpp-coveralls -b $BUILDDIR -E '(^|.*/)(frob|mock|test)-.*|(^|.*/)(virtual-fixed-generated\.h)' --gcov-options '\-lp'"
fi
diff --git a/p11-kit/Makefile.am b/p11-kit/Makefile.am
index 09a068e..7f4ce44 100644
--- a/p11-kit/Makefile.am
+++ b/p11-kit/Makefile.am
@@ -29,14 +29,14 @@ COMMON_SRCS = \
$(inc_HEADERS)
BUILT_SOURCES += \
- p11-kit/virtual-fixed.c \
+ p11-kit/virtual-fixed-generated.h \
$(NULL)
CLEANFILES += \
- p11-kit/virtual-fixed.c \
+ p11-kit/virtual-fixed-generated.h \
$(NULL)
-p11-kit/virtual-fixed.c: Makefile
+p11-kit/virtual-fixed-generated.h: Makefile
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo; \
diff --git a/p11-kit/virtual.c b/p11-kit/virtual.c
index 338239f..a7bca48 100644
--- a/p11-kit/virtual.c
+++ b/p11-kit/virtual.c
@@ -3056,7 +3056,7 @@ CK_X_FUNCTION_LIST p11_virtual_base = {
base_C_WaitForSlotEvent
};
-#include "p11-kit/virtual-fixed.c"
+#include "p11-kit/virtual-fixed-generated.h"
static CK_FUNCTION_LIST *
p11_virtual_wrap_fixed (p11_virtual *virt,