diff options
author | Gordon Sim <gsim@apache.org> | 2007-08-21 15:51:41 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-08-21 15:51:41 +0000 |
commit | bb2883b9f5cfad0e028a9849ed91e36418a2d0ff (patch) | |
tree | 555686e2e819a875048610d88c2cee8e336b3687 /cpp/rubygen/generate | |
parent | 955d5ccb544ff4f56d35c40aa8934cbf4dfff14e (diff) | |
download | qpid-python-bb2883b9f5cfad0e028a9849ed91e36418a2d0ff.tar.gz |
Refresh of transitional xml to more closely reflect latest specification
Initial execution-result support (not yet handled on c++ client)
Generation is now all done through the ruby code (it is a little slower at present I'm afraid, will try to speed it up over the next weeks)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568174 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/generate')
-rwxr-xr-x | cpp/rubygen/generate | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/rubygen/generate b/cpp/rubygen/generate index 14b273b688..52313186ed 100755 --- a/cpp/rubygen/generate +++ b/cpp/rubygen/generate @@ -38,6 +38,10 @@ if makefile generator_files=Dir["**/*.rb"] << File.basename(__FILE__) Dir.chdir dir rgen_generator=generator_files.map{ |f| "$(rgen_dir)/#{f}" } + rgen_srcs=GenFiles.get.map{ |f| "#{Outdir}/#{f}" } + rgen_client_cpp = rgen_srcs.select { |f| f =~ /qpid\/client\/.+\.cpp$/ } + rgen_common_cpp = rgen_srcs.select { |f| f =~ /qpid\/framing\/.+\.cpp$/ } + rgen_h = rgen_srcs.select { |f| f =~ /.+\.h$/ } File.open(makefile, 'w') { |out| out << <<EOS @@ -46,7 +50,13 @@ if makefile rgen_generator=#{rgen_generator.join(" \\\n ")} -rgen_srcs=#{GenFiles.get.join(" \\\n ")} +rgen_client_cpp=#{rgen_client_cpp.join(" \\\n ")} + +rgen_common_cpp=#{rgen_common_cpp.join(" \\\n ")} + +rgen_h=#{rgen_h.join(" \\\n ")} + +rgen_srcs=rgen_h rgen_client_cpp rgen_common_cpp if GENERATE $(rgen_srcs) $(srcdir)/#{File.basename makefile}: $(rgen_generator) $(specs) |