diff options
| author | Alan Conway <aconway@apache.org> | 2009-07-27 21:32:16 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-07-27 21:32:16 +0000 |
| commit | 77e93f5453f3b9878c3e27b0e99a365356c5264c (patch) | |
| tree | c6e72c764dab31648c39de97ec7154e893662eb5 /cpp/rubygen/framing.0-10/constants.rb | |
| parent | bcf89b1af8b1d4a0262530b50e5433cdaffb91f0 (diff) | |
| download | qpid-python-77e93f5453f3b9878c3e27b0e99a365356c5264c.tar.gz | |
Separate generated public header files from non-public headers, generated code re-organization.
The gen/ directory has been removed, code is now generated into:
$(builddir)/src - all .cpp files and non-public .h files.
$(builddir)/include - all public .h files.
The gen/ directory was originally intended to separate generated code
from hand-written code. However both automake and cmake allow you to
direct all build output, including generated code, into a separate
build directory. In fact both recommend you build this way.
Keeping the gen/ directory meant there would have been a total of 8
places to look for header files, all the combinations of
builddir/srcdir, src/include and gen/no-gen. This was a mess, 4 is bad
enough.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@798291 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/framing.0-10/constants.rb')
| -rwxr-xr-x | cpp/rubygen/framing.0-10/constants.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/rubygen/framing.0-10/constants.rb b/cpp/rubygen/framing.0-10/constants.rb index ea74c82f73..5c1c1047f7 100755 --- a/cpp/rubygen/framing.0-10/constants.rb +++ b/cpp/rubygen/framing.0-10/constants.rb @@ -29,7 +29,8 @@ class ConstantsGen < CppGen end def constants_h() - h_file("#{@dir}/constants") { + public_api("#{@dir}/constants.h") + h_file("#{@dir}/constants.h") { namespace(@namespace) { # Constants for class/method names. scope("enum AmqpConstant {","};") { @@ -50,6 +51,7 @@ class ConstantsGen < CppGen def typecode_h_cpp path="#{@dir}/TypeCode" + public_api(path+".h") h_file(path) { include("<iosfwd>") include("\"qpid/sys/IntegerTypes.h\"") @@ -104,7 +106,8 @@ EOS end def enum_h() - h_file("#{@dir}/enum") { + public_api("#{@dir}/enum.h") + h_file("#{@dir}/enum.h") { # Constants for enum domains. namespace(@namespace) { @amqp.domains.each { |d| declare_enum(d.enum) if d.enum } @@ -161,7 +164,8 @@ EOS end def reply_exceptions_h() - h_file("#{@dir}/reply_exceptions") { + public_api("#{@dir}/reply_exceptions.h") + h_file("#{@dir}/reply_exceptions.h") { include "qpid/Exception" include "qpid/sys/ExceptionHolder" include "qpid/framing/enum" |
