diff options
author | Alan Conway <aconway@apache.org> | 2008-04-16 15:45:01 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-16 15:45:01 +0000 |
commit | 9beb068e068223d4d8553f2f893f077ae9e21a78 (patch) | |
tree | 6576133e4dd505bd3f4e7e1663173b974942d785 /cpp/rubygen/generate | |
parent | 775aa6924e2c432791fafd354751bb068129fe2e (diff) | |
download | qpid-python-9beb068e068223d4d8553f2f893f077ae9e21a78.tar.gz |
Separate new codec from liqqpidcommon to improve link times.
To be included in libqpidcommon when we are ready to replace framing codec.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/generate')
-rwxr-xr-x | cpp/rubygen/generate | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/cpp/rubygen/generate b/cpp/rubygen/generate index 9f0ddf0f1c..85fbefdea1 100755 --- a/cpp/rubygen/generate +++ b/cpp/rubygen/generate @@ -63,18 +63,25 @@ if makefile Dir.chdir dir rgen_generator=generator_files.map{ |f| "$(rgen_dir)/#{f}" } rgen_srcs=GenFiles.get.map{ |f| "#{$outdir}/#{f}" } - + rgen_subdirs={} + rgen_srcs.each { |src| + if src.match(%r{./gen/qpid/([^/]+)/}) + subdir=$1 + rgen_subdirs[subdir] ||= [] + rgen_subdirs[subdir] << src + end + } File.open(makefile, 'w') { |out| out << <<EOS # Generated makefile fragment. # Including makefile defines $(rgen_dir) $(rgen_cmd) and $(specs). rgen_generator=#{make_continue rgen_generator} - -rgen_client_cpp=#{make_continue(rgen_srcs.grep(%r|/qpid/client/.+\.cpp$|))} - -rgen_common_cpp=#{make_continue(rgen_srcs.grep(%r{qpid/(framing|amqp_.+)/.+\.cpp$}))} - +EOS + rgen_subdirs.each_key { |subdir| + out << "\nrgen_#{subdir}_srcs = #{make_continue(rgen_subdirs[subdir])}\n" + } + out << <<EOS rgen_srcs=#{make_continue rgen_srcs} # Header file install rules. |