Skip to content

Commit

Permalink
Merge pull request #371 from jwillemsen/jwi-proxysource
Browse files Browse the repository at this point in the history
Add support to generate Any/TypeCode and CORBA related support code into separate files (WiP)
  • Loading branch information
jwillemsen authored Apr 21, 2024
2 parents 8987105 + 80b1065 commit 69d6429
Show file tree
Hide file tree
Showing 199 changed files with 1,715 additions and 679 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ assignees: ''
---

**Version**
Your TAOX11 version from taox11/tao/x11/versionx11.h
Your TAOX11 version from taox11/tao/x11/base/versionx11.h

**Describe the bug**
A clear and concise description of what the bug is.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ assignees: ''
---

**Version**
Your TAOX11 version from taox11/tao/x11/versionx11.h
Your TAOX11 version from taox11/tao/x11/base/versionx11.h

**Describe the issue**
Description of your issue with as much as detail as possible
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ env:
TAOX11_ROOT: ${{ github.workspace }}
INSTALL_PREFIX: ${{ github.workspace }}/stage
X11_BRANCH: master
ACETAOMPC_BRANCH: master
ACETAOMPC_BRANCH: Latest_ACE7TAO3_Micro

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ACE
*C.inl
*C.cpp
*P.h
*P.cpp
*S.h
*S.inl
*S.cpp
Expand Down
9 changes: 6 additions & 3 deletions bin/MPC/config/ridl_base_defaults.mpb
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,23 @@ project: taox11_basedefaults, taobaseidldefaults {
optional(source_pre_extension) {
commandflags(-GC) += AmiC
commandflags(-GCa) += AmiC
commandflags(-Gcpc) += CP
commandflags(-Gatc) += A
}

optional(header_pre_extension) {
commandflags(!-Scp) += CP
commandflags(!-Scph) += CP
commandflags(!-Ssh) += SP
commandflags(-GC) += AmiC, AmiCP
commandflags(-GCa) += AmiC, AmiCP
commandflags(-Gath) += A
}
}

after -= TAO_IDL_EXE
idlflags -= $(TAO_IDLFLAGS)
idlflags -= -Sa -St
idlflags += -Wb,pre_include=tao/x11/pre.h \
-Wb,post_include=tao/x11/post.h -I$(TAOX11_ROOT)
idlflags += -Wb,pre_include=tao/x11/base/pre.h \
-Wb,post_include=tao/x11/base/post.h -I$(TAOX11_ROOT)
idlflags += $(RIDLCFLAGS) -Sci -Ssi -Sa -St
}
14 changes: 14 additions & 0 deletions bin/MPC/modules/IDLHelper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ sub get_output {
push(@out, $1);
}
}
if ($flags =~ /--Gxhcpr/) {
if ($flags =~ /-Wb,stub_proxy_export_file=(\S*)/) {
push(@out, $1);
} elsif ($flags =~ /-Wb,stub_proxy_export_include=(\S*)/) {
push(@out, $1);
}
}
if ($flags =~ /--Gxhat/) {
if ($flags =~ /-Wb,anytypecode_export_file=(\S*)/) {
push(@out, $1);
} elsif ($flags =~ /-Wb,anytypecode_export_include=(\S*)/) {
push(@out, $1);
}
}
if ($flags =~ /-Gxhsv/ && $flags =~ /-Wb,svnt_export_include=(\S*)/) {
push(@out, $1);
}
Expand Down
4 changes: 4 additions & 0 deletions bin/taox11_tests.lst
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ tests/timebase/run_test.pl:
tests/typecode/run_test.pl: !CORBA_E_COMPACT !CORBA_E_MICRO
tests/typecode_adapter/orb_create/run_test.pl: !CORBA_E_COMPACT !CORBA_E_MICRO
tests/typecode_adapter/resolve_ref/run_test.pl: !CORBA_E_COMPACT !CORBA_E_MICRO
tests/typelib/nocpp/run_test.pl:
tests/typelib/shared/run_test.pl:
tests/typelib/stdlib/run_test.pl:
tests/typelib/taox11/run_test.pl:
tests/union/run_test.pl:
tests/union/run_cross_tao_server.pl:
tests/wchar/run_test.pl:
Expand Down
8 changes: 4 additions & 4 deletions docs/src/compilation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ command line options should be used when invoking the RIDL compiler. +
Command line options: +

-----------------------------------
-Wb,pre_include=tao/x11/pre.h
-Wb,post_include=tao/x11/post.h
-Wb,pre_include=tao/x11/base/pre.h
-Wb,post_include=tao/x11/base/post.h
-I$TAOX11_ROOT
-Sci
-Ssi
Expand Down Expand Up @@ -47,8 +47,8 @@ When a client needs to use <<ami/taox11_ami.adoc#,CORBA AMI>>, the following
command line options should be applied to the RIDL compiler:

-----------------------------------
-Wb,pre_include=tao/x11/pre.h
-Wb,post_include=tao/x11/post.h
-Wb,pre_include=tao/x11/base/pre.h
-Wb,post_include=tao/x11/base/post.h
-I$TAOX11_ROOT
-Sci
-Ssi
Expand Down
50 changes: 46 additions & 4 deletions docs/src/ridlc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,19 @@ Sets implementation export file to generate for -Gxhimpl|

||-Wb,anytypecode_export_macro=MACRO|

Sets export macro for Any ops and TypeCode|
Sets export macro for Any and TypeCode|

||-Wb,anytypecode_export_include=FILE|

Sets export include file for Any ops and TypeCode|
Sets export include file for Any and TypeCode|

||-Wb,stub_proxy_export_macro=MACRO|

Sets export macro for stub proxy|

||-Wb,stub_proxy_export_include=FILE|

Sets export include file for stub proxy|

||-Wb,include_guard=MACRO|

Expand Down Expand Up @@ -314,6 +322,20 @@ Generate Any and TypeCode support implementation in separate *A.cpp file

off

||-Gath|

Generate Any and TypeCode support declarations in separate *A.h file
(not generated by default)|

off

||-Gcpc|

Generate stub proxy implementation in separate *CP.cpp file
(not generated by default)|

off

||-Gaia|

Generate AnyInsert_Adapter version of the Any insert policy (not generated by default). +
Expand All @@ -340,6 +362,12 @@ Generate std::ostream insertion operators (not generated by default)|

off

||-Guia|

Generate std::invalid_argument exception as part of our union generation (CORBA::BAD_PARAM by default)|

off

||-Gtie|

Generate delegation based servant implementation support (not generated by default)|
Expand Down Expand Up @@ -377,6 +405,20 @@ default).|

off

||-Gxhcp|

Generate export header file for stub proxy code (not generated by
default).|

off

||-Gxhat|

Generate export header file for any and typecode code (not generated by
default).|

off

||-Gisrv|

Generate implementation classes for servants (not generated by default;
Expand Down Expand Up @@ -429,9 +471,9 @@ Suppress generation of client header file (generated by default)|

off

||-Scp|
||-Scph|

Suppress generation of client proxy header file (generated by default)|
Suppress generation of stub proxy header file (generated by default)|

off

Expand Down
2 changes: 1 addition & 1 deletion examples/log_module/my_log_module_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef MY_LOG_MODULE_EXPORT_H
#define MY_LOG_MODULE_EXPORT_H

#include "tao/x11/taox11_export_macros.h"
#include "tao/x11/base/taox11_export_macros.h"

#if defined (TAOX11_AS_STATIC_LIBS) && !defined (MY_LOGGER_HAS_DLL)
# define MY_LOGGER_HAS_DLL 0
Expand Down
2 changes: 1 addition & 1 deletion orbsvcs/orbsvcs/naming_server/taox11_cosnaming_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef TAOX11_COSNAMING_EXPORT_H
#define TAOX11_COSNAMING_EXPORT_H

#include "tao/x11/taox11_export_macros.h"
#include "tao/x11/base/taox11_export_macros.h"

#if defined (TAOX11_AS_STATIC_LIBS) && !defined (TAOX11_COSNAMING_HAS_DLL)
# define TAOX11_COSNAMING_HAS_DLL 0
Expand Down
2 changes: 1 addition & 1 deletion ridlbe/base/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def determine_taox11_version
beta: 0
}

base = File.join(File.dirname(__FILE__), '..', '..', 'tao', 'x11', 'versionx11.h')
base = File.join(File.dirname(__FILE__), '..', '..', 'tao', 'x11', 'base', 'versionx11.h')
File.open(base, 'r') do |file|
while (line = file.gets)
if VERSION_REGEXP =~ line
Expand Down
Loading

0 comments on commit 69d6429

Please sign in to comment.