summaryrefslogtreecommitdiff
path: root/qpid/cpp/gen/Makefile.am
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-05-11 20:11:32 +0000
committerAlan Conway <aconway@apache.org>2007-05-11 20:11:32 +0000
commite9a6d2e94a849b83b4a49b9d92392c382962d42e (patch)
treebe11604e52756069e87c8131a793313b6e3a95a0 /qpid/cpp/gen/Makefile.am
parent88b85e0542ce4324179f5b2d2eaf4498ce00038c (diff)
downloadqpid-python-e9a6d2e94a849b83b4a49b9d92392c382962d42e.tar.gz
* cpp/src/Makefile.am: Move generated code into src. Fix generation script.
* cpp/src/generate.sh: New generator script, simplify & fix some problems. * cpp/Makefile.am: removed gen subdir * cpp/bootstrap: remove redundant comment * cpp/configure.ac: remove generator tests, now in generate.sh * cpp/gen,cpp/gen/Makefile.am,cpp/gen/gen-src-mk.sh: Replaced by generate.sh * cpp/src/tests/Makefile.am: Remove client_test from EXTRA_DEPS git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@537278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/gen/Makefile.am')
-rw-r--r--qpid/cpp/gen/Makefile.am46
1 files changed, 0 insertions, 46 deletions
diff --git a/qpid/cpp/gen/Makefile.am b/qpid/cpp/gen/Makefile.am
deleted file mode 100644
index c1f27c8700..0000000000
--- a/qpid/cpp/gen/Makefile.am
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# Generate code from AMQP XML specification.
-#
--include gen-src.mk
-
-# Distribute the generated sources, since the code generator depends
-# on tools that may not be available in the build environment.
-GEN_SRC=$(generated_cpp) $(generated_h)
-BUILT_SOURCES = $(GEN_SRC) gen-src.mk
-EXTRA_DIST = $(BUILT_SOURCES)
-
-# Install generated headers
-nobase_include_HEADERS = $(generated_h)
-
-# Don't attempt to run the code generator unless configure has set
-# CAN_GENERATE_CODE, indicating that the amqp.xml and tools needed
-# to run the code generator are available.
-#
-if CAN_GENERATE_CODE
-gentools_dir = $(top_srcdir)/gentools
-gentools_srcdir = $(gentools_dir)/src/org/apache/qpid/gentools
-spec_dir = $(top_srcdir)/../specs
-spec = $(spec_dir)/amqp.0-9.xml $(spec_dir)/amqp-errata.0-9.xml
-
-$(GEN_SRC): $(spec) $(java_sources) $(cxx_templates)
- mkdir -p qpid/framing
- cd $(gentools_srcdir) && rm -f *.class && $(JAVAC) *.java
- $(JAVA) -cp $(gentools_dir)/src org.apache.qpid.gentools.Main \
- -c -o qpid/framing -t $(gentools_dir)/templ.cpp $(spec)
- touch qpid/timestamp
-
-gen-src.mk: $(BUILT_SOURCES) gen-src-mk.sh
- $(srcdir)/gen-src-mk.sh $(gentools_dir) $(gentools_srcdir) > $@-t
- mv $@-t $@
-
-else
-# No code generator, we must be in a distribution tree.
-# Copy gen-src.mk from the source dir as make does not look for
-# include files in the VPATH
-gen-src.mk: $(srcdir)/gen-src.mk
- cp $< $@
-DISTCLEANFILES=gen-src.mk
-endif
-
-maintainer-clean-local:
- rm -rf qpid gen-src.mk $(gentools_srcdir)/*.class