mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Automatically generate list of built java sources
This commit is contained in:
@@ -20,8 +20,12 @@ builddir ?= $(top_builddir)/java
|
||||
|
||||
java_prefix = com/redhat/et/libguestfs
|
||||
|
||||
# Pull in automatically generated built sources
|
||||
include $(builddir)/Makefile.inc
|
||||
|
||||
java_sources = \
|
||||
$(java_prefix)/*.java
|
||||
$(java_built_sources) \
|
||||
com/redhat/et/libguestfs/LibGuestFSException.java
|
||||
|
||||
java_tests = \
|
||||
Bindtests.java \
|
||||
@@ -35,7 +39,7 @@ EXTRA_DIST = \
|
||||
run-bindtests \
|
||||
run-java-tests
|
||||
|
||||
CLEANFILES = doc-stamp
|
||||
CLEANFILES = doc-stamp $(builddir)/com/redhat/et/libguestfs/*.class com_redhat_et_libguestfs_GuestFS.h *.class *.jar api/com/redhat/et/libguestfs/*.html api/*
|
||||
|
||||
if HAVE_JAVA
|
||||
|
||||
|
||||
@@ -8340,6 +8340,15 @@ Run it from the top source directory using the command
|
||||
close ();
|
||||
) java_structs;
|
||||
|
||||
let close = output_to "java/Makefile.inc" in
|
||||
pr "java_built_sources =";
|
||||
List.iter (
|
||||
fun (typ, jtyp) ->
|
||||
pr " com/redhat/et/libguestfs/%s.java" jtyp;
|
||||
) java_structs;
|
||||
pr " com/redhat/et/libguestfs/GuestFS.java\n";
|
||||
close ();
|
||||
|
||||
let close = output_to "java/com_redhat_et_libguestfs_GuestFS.c" in
|
||||
generate_java_c ();
|
||||
close ();
|
||||
|
||||
Reference in New Issue
Block a user