src: remote: generate source files into build directory

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Pavel Hrdina 2019-10-16 14:52:23 +02:00
parent ae98112a85
commit 4753fd0553
4 changed files with 8 additions and 12 deletions

2
.gitignore vendored
View File

@ -41,6 +41,4 @@ Makefile.in
# libvirt related ignores # libvirt related ignores
/build/ /build/
/ci/scratch/ /ci/scratch/
/src/remote/*_client_bodies.h
/src/remote/*_stubs.h
tags tags

View File

@ -1976,8 +1976,6 @@ po_file ?= $(srcdir)/po/POTFILES.in
generated_files = \ generated_files = \
$(builddir)/src/*.[ch] \ $(builddir)/src/*.[ch] \
$(builddir)/src/*/*.[ch] \ $(builddir)/src/*/*.[ch] \
$(srcdir)/src/*/{remote,qemu,lxc}_daemon_dispatch_stubs.h \
$(srcdir)/src/remote/*_client_bodies.h \
$(srcdir)/gnulib/lib/*.[ch] $(srcdir)/gnulib/lib/*.[ch]
_gl_translatable_string_re ?= \b(N?_|gettext *)\([^)"]*("|$$) _gl_translatable_string_re ?= \b(N?_|gettext *)\([^)"]*("|$$)

View File

@ -3,6 +3,8 @@
@BUILDDIR@/src/access/viraccessapicheckqemu.c @BUILDDIR@/src/access/viraccessapicheckqemu.c
@BUILDDIR@/src/admin/admin_client.h @BUILDDIR@/src/admin/admin_client.h
@BUILDDIR@/src/admin/admin_server_dispatch_stubs.h @BUILDDIR@/src/admin/admin_server_dispatch_stubs.h
@BUILDDIR@/src/remote/remote_client_bodies.h
@BUILDDIR@/src/remote/remote_daemon_dispatch_stubs.h
@SRCDIR@/gnulib/lib/gai_strerror.c @SRCDIR@/gnulib/lib/gai_strerror.c
@SRCDIR@/gnulib/lib/regcomp.c @SRCDIR@/gnulib/lib/regcomp.c
@SRCDIR@/src/access/viraccessdriverpolkit.c @SRCDIR@/src/access/viraccessdriverpolkit.c
@ -167,11 +169,9 @@
@SRCDIR@/src/qemu/qemu_tpm.c @SRCDIR@/src/qemu/qemu_tpm.c
@SRCDIR@/src/qemu/qemu_vhost_user.c @SRCDIR@/src/qemu/qemu_vhost_user.c
@SRCDIR@/src/qemu/qemu_vhost_user_gpu.c @SRCDIR@/src/qemu/qemu_vhost_user_gpu.c
@SRCDIR@/src/remote/remote_client_bodies.h
@SRCDIR@/src/remote/remote_daemon.c @SRCDIR@/src/remote/remote_daemon.c
@SRCDIR@/src/remote/remote_daemon_config.c @SRCDIR@/src/remote/remote_daemon_config.c
@SRCDIR@/src/remote/remote_daemon_dispatch.c @SRCDIR@/src/remote/remote_daemon_dispatch.c
@SRCDIR@/src/remote/remote_daemon_dispatch_stubs.h
@SRCDIR@/src/remote/remote_daemon_stream.c @SRCDIR@/src/remote/remote_daemon_stream.c
@SRCDIR@/src/remote/remote_driver.c @SRCDIR@/src/remote/remote_driver.c
@SRCDIR@/src/rpc/virkeepalive.c @SRCDIR@/src/rpc/virkeepalive.c

View File

@ -427,37 +427,37 @@ remote/remote_client_bodies.h: $(srcdir)/rpc/gendispatch.pl \
$(REMOTE_PROTOCOL) Makefile.am $(REMOTE_PROTOCOL) Makefile.am
$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=client \ $(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=client \
remote REMOTE $(REMOTE_PROTOCOL) \ remote REMOTE $(REMOTE_PROTOCOL) \
> $(srcdir)/remote/remote_client_bodies.h > remote/remote_client_bodies.h
remote/lxc_client_bodies.h: $(srcdir)/rpc/gendispatch.pl \ remote/lxc_client_bodies.h: $(srcdir)/rpc/gendispatch.pl \
$(LXC_PROTOCOL) Makefile.am $(LXC_PROTOCOL) Makefile.am
$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=client \ $(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=client \
lxc LXC $(LXC_PROTOCOL) \ lxc LXC $(LXC_PROTOCOL) \
> $(srcdir)/remote/lxc_client_bodies.h > remote/lxc_client_bodies.h
remote/qemu_client_bodies.h: $(srcdir)/rpc/gendispatch.pl \ remote/qemu_client_bodies.h: $(srcdir)/rpc/gendispatch.pl \
$(QEMU_PROTOCOL) Makefile.am $(QEMU_PROTOCOL) Makefile.am
$(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=client \ $(AM_V_GEN)$(PERL) -w $(srcdir)/rpc/gendispatch.pl --mode=client \
qemu QEMU $(QEMU_PROTOCOL) \ qemu QEMU $(QEMU_PROTOCOL) \
> $(srcdir)/remote/qemu_client_bodies.h > remote/qemu_client_bodies.h
remote/remote_daemon_dispatch_stubs.h: $(srcdir)/rpc/gendispatch.pl \ remote/remote_daemon_dispatch_stubs.h: $(srcdir)/rpc/gendispatch.pl \
$(REMOTE_PROTOCOL) Makefile.am $(REMOTE_PROTOCOL) Makefile.am
$(AM_V_GEN)$(PERL) -w $(top_srcdir)/src/rpc/gendispatch.pl \ $(AM_V_GEN)$(PERL) -w $(top_srcdir)/src/rpc/gendispatch.pl \
--mode=server remote REMOTE $(REMOTE_PROTOCOL) \ --mode=server remote REMOTE $(REMOTE_PROTOCOL) \
> $(srcdir)/remote/remote_daemon_dispatch_stubs.h > remote/remote_daemon_dispatch_stubs.h
remote/lxc_daemon_dispatch_stubs.h: $(srcdir)/rpc/gendispatch.pl \ remote/lxc_daemon_dispatch_stubs.h: $(srcdir)/rpc/gendispatch.pl \
$(LXC_PROTOCOL) Makefile.am $(LXC_PROTOCOL) Makefile.am
$(AM_V_GEN)$(PERL) -w $(top_srcdir)/src/rpc/gendispatch.pl \ $(AM_V_GEN)$(PERL) -w $(top_srcdir)/src/rpc/gendispatch.pl \
--mode=server lxc LXC $(LXC_PROTOCOL) \ --mode=server lxc LXC $(LXC_PROTOCOL) \
> $(srcdir)/remote/lxc_daemon_dispatch_stubs.h > remote/lxc_daemon_dispatch_stubs.h
remote/qemu_daemon_dispatch_stubs.h: $(srcdir)/rpc/gendispatch.pl \ remote/qemu_daemon_dispatch_stubs.h: $(srcdir)/rpc/gendispatch.pl \
$(QEMU_PROTOCOL) Makefile.am $(QEMU_PROTOCOL) Makefile.am
$(AM_V_GEN)$(PERL) -w $(top_srcdir)/src/rpc/gendispatch.pl \ $(AM_V_GEN)$(PERL) -w $(top_srcdir)/src/rpc/gendispatch.pl \
--mode=server qemu QEMU $(QEMU_PROTOCOL) \ --mode=server qemu QEMU $(QEMU_PROTOCOL) \
> $(srcdir)/remote/qemu_daemon_dispatch_stubs.h > remote/qemu_daemon_dispatch_stubs.h
libvirtd.8.in: remote/libvirtd.pod libvirtd.8.in: remote/libvirtd.pod
$(AM_V_GEN)$(POD2MAN) --section=8 $< $@-t1 && \ $(AM_V_GEN)$(POD2MAN) --section=8 $< $@-t1 && \