r2corba 1.5.1-x64-mingw32 → 1.6.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +5 -5
- data/README.rdoc +62 -0
- data/THANKS +4 -4
- data/lib/corba/cbase/IORMap.rb +0 -1
- data/lib/corba/cbase/ORB.rb +26 -24
- data/lib/corba/cbase/Request.rb +4 -5
- data/lib/corba/cbase/Streams.rb +2 -3
- data/lib/corba/cbase/Stub.rb +0 -1
- data/lib/corba/cbase/Typecode.rb +6 -7
- data/lib/corba/cbase/Values.rb +4 -3
- data/lib/corba/cbase/exception.rb +6 -5
- data/lib/corba/cbase/poa.rb +1 -2
- data/lib/corba/cbase/policies.rb +3 -4
- data/lib/corba/cbase/post_require.rb +1 -2
- data/lib/corba/cbase/require.rb +10 -2
- data/lib/corba/cmds/base.rb +1 -2
- data/lib/corba/cmds/test.rb +0 -1
- data/lib/corba/common/Any.rb +3 -3
- data/lib/corba/common/IDL.rb +6 -10
- data/lib/corba/common/ORB.rb +22 -23
- data/lib/corba/common/Object.rb +18 -15
- data/lib/corba/common/Request.rb +1 -2
- data/lib/corba/common/Servant.rb +4 -5
- data/lib/corba/common/Struct.rb +1 -2
- data/lib/corba/common/Stub.rb +6 -7
- data/lib/corba/common/Typecode.rb +91 -65
- data/lib/corba/common/Union.rb +6 -2
- data/lib/corba/common/Values.rb +2 -2
- data/lib/corba/common/const.rb +2 -3
- data/lib/corba/common/exception.rb +2 -2
- data/lib/corba/common/require.rb +8 -1
- data/lib/corba/common/version.rb +3 -4
- data/lib/corba/idl/BiDirPolicyC.rb +2 -3
- data/lib/corba/idl/CosNamingC.rb +4 -5
- data/lib/corba/idl/CosNamingS.rb +2 -3
- data/lib/corba/idl/IDL.rb +1 -2
- data/lib/corba/idl/IORTable.pidl +0 -1
- data/lib/corba/idl/IORTableC.rb +2 -3
- data/lib/corba/idl/MessagingC.rb +2 -3
- data/lib/corba/idl/POAC.rb +10 -11
- data/lib/corba/idl/TAO_Ext.pidl +0 -1
- data/lib/corba/idl/TAO_ExtC.rb +2 -3
- data/lib/corba/idl/r2c_orb.rb +5 -6
- data/lib/corba/idl/require.rb +0 -1
- data/lib/corba/jbase/Any.rb +29 -28
- data/lib/corba/jbase/IORMap.rb +1 -2
- data/lib/corba/jbase/ORB.rb +5 -6
- data/lib/corba/jbase/Object.rb +13 -14
- data/lib/corba/jbase/Request.rb +9 -10
- data/lib/corba/jbase/Servant.rb +11 -12
- data/lib/corba/jbase/ServerRequest.rb +8 -9
- data/lib/corba/jbase/Streams.rb +68 -5
- data/lib/corba/jbase/Stub.rb +0 -1
- data/lib/corba/jbase/Typecode.rb +17 -17
- data/lib/corba/jbase/Values.rb +2 -1
- data/lib/corba/jbase/exception.rb +2 -2
- data/lib/corba/jbase/poa.rb +21 -22
- data/lib/corba/jbase/policies.rb +33 -34
- data/lib/corba/jbase/post_require.rb +0 -1
- data/lib/corba/jbase/require.rb +5 -2
- data/lib/corba/naming.rb +0 -1
- data/lib/corba/naming_service.rb +0 -1
- data/lib/corba/poa.rb +1 -2
- data/lib/corba/policies.rb +1 -2
- data/lib/corba/require.rb +2 -3
- data/lib/corba/svcs/ins/cos_naming.rb +74 -68
- data/lib/corba/svcs/ins/ins.rb +58 -59
- data/lib/corba/svcs/ins/naming_service.rb +9 -10
- data/lib/corba.rb +1 -2
- data/lib/ridlbe/ruby/config.rb +78 -74
- data/lib/ridlbe/ruby/require.rb +0 -1
- data/lib/ridlbe/ruby/walker.rb +311 -288
- data/mkrf_conf_bingem.rb +4 -6
- data/rakelib/bin.rake +2 -3
- data/rakelib/bin.rb +4 -5
- data/rakelib/build.rake +22 -22
- data/rakelib/config.rake +2 -3
- data/rakelib/config.rb +32 -34
- data/rakelib/ext.rake +18 -77
- data/rakelib/ext.rb +19 -58
- data/rakelib/ext_r2tao.rb +33 -60
- data/rakelib/gem.rake +53 -38
- data/rakelib/gem.rb +9 -10
- data/rakelib/package.rake +2 -3
- data/rakelib/test.rake +0 -1
- data/test/BiDirectional/Test.idl +0 -1
- data/test/BiDirectional/client.rb +18 -19
- data/test/BiDirectional/run_test.rb +11 -12
- data/test/BiDirectional/server.rb +21 -23
- data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +17 -18
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +13 -14
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +19 -20
- data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Corbaname/client.rb +15 -16
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +13 -14
- data/test/CORBA_Services/Naming/Corbaname/server.rb +27 -28
- data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Simple/client.rb +16 -17
- data/test/CORBA_Services/Naming/Simple/run_test.rb +13 -14
- data/test/CORBA_Services/Naming/Simple/server.rb +19 -20
- data/test/Collocation/Diamond.idl +0 -1
- data/test/Collocation/run_test.rb +10 -11
- data/test/Collocation/test.rb +27 -21
- data/test/Connect_Timeout/Test.idl +0 -1
- data/test/Connect_Timeout/client.rb +16 -18
- data/test/Connect_Timeout/run_test.rb +10 -11
- data/test/DII/Test.idl +0 -1
- data/test/DII/client.rb +30 -31
- data/test/DII/run_test.rb +11 -12
- data/test/DII/server.rb +16 -17
- data/test/DSI/Test.idl +0 -1
- data/test/DSI/client.rb +16 -17
- data/test/DSI/run_test.rb +11 -12
- data/test/DSI/server.rb +17 -18
- data/test/Exceptions/Test.idl +0 -1
- data/test/Exceptions/client.rb +22 -23
- data/test/Exceptions/run_test.rb +11 -12
- data/test/Exceptions/server.rb +16 -17
- data/test/Hello/Test.idl +0 -1
- data/test/Hello/client.rb +16 -17
- data/test/Hello/run_test.rb +11 -12
- data/test/Hello/server.rb +17 -18
- data/test/IDL_Test/Test.idl +4 -1
- data/test/IDL_Test/client.rb +24 -23
- data/test/IDL_Test/run_test.rb +11 -12
- data/test/IDL_Test/server.rb +23 -19
- data/test/IORMap/Test.idl +0 -1
- data/test/IORMap/client.rb +14 -15
- data/test/IORMap/run_test.rb +11 -12
- data/test/IORMap/server.rb +23 -24
- data/test/IORTable/Test.idl +0 -1
- data/test/IORTable/client.rb +14 -15
- data/test/IORTable/run_test.rb +11 -12
- data/test/IORTable/server.rb +23 -24
- data/test/Implicit_Conversion/Test.idl +0 -1
- data/test/Implicit_Conversion/client.rb +20 -18
- data/test/Implicit_Conversion/run_test.rb +11 -12
- data/test/Implicit_Conversion/server.rb +16 -17
- data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
- data/test/Multi_Threading/Multiple_ORB/client.rb +14 -15
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +12 -13
- data/test/Multi_Threading/Multiple_ORB/server.rb +17 -18
- data/test/Multi_Threading/Simple/Test.idl +0 -1
- data/test/Multi_Threading/Simple/client.rb +17 -18
- data/test/Multi_Threading/Simple/run_test.rb +11 -12
- data/test/Multi_Threading/Simple/server.rb +17 -18
- data/test/Multi_Threading/Threads/Test.idl +0 -4
- data/test/Multi_Threading/Threads/client.rb +23 -26
- data/test/Multi_Threading/Threads/run_test.rb +11 -12
- data/test/Multi_Threading/Threads/server.rb +19 -22
- data/test/Multi_Threading/Threads/watchdog.rb +16 -16
- data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
- data/test/Multiple_Servant_Interfaces/client.rb +14 -15
- data/test/Multiple_Servant_Interfaces/run_test.rb +11 -12
- data/test/Multiple_Servant_Interfaces/server.rb +18 -19
- data/test/Nil/Test.idl +0 -1
- data/test/Nil/run_test.rb +10 -11
- data/test/Nil/test.rb +22 -20
- data/test/OBV/AbstractInterface/client.rb +14 -15
- data/test/OBV/AbstractInterface/run_test.rb +11 -12
- data/test/OBV/AbstractInterface/server.rb +20 -20
- data/test/OBV/AbstractInterface/test.idl +0 -1
- data/test/OBV/Custom/OBV_impl.rb +2 -1
- data/test/OBV/Custom/client.rb +14 -15
- data/test/OBV/Custom/run_test.rb +11 -12
- data/test/OBV/Custom/server.rb +16 -17
- data/test/OBV/Simple/OBV_impl.rb +1 -1
- data/test/OBV/Simple/client.rb +14 -15
- data/test/OBV/Simple/run_test.rb +11 -12
- data/test/OBV/Simple/server.rb +16 -17
- data/test/OBV/Simple_Event/Event_impl.rb +1 -1
- data/test/OBV/Simple_Event/client.rb +14 -15
- data/test/OBV/Simple_Event/run_test.rb +11 -12
- data/test/OBV/Simple_Event/server.rb +16 -17
- data/test/OBV/Supports/client.rb +19 -20
- data/test/OBV/Supports/run_test.rb +11 -12
- data/test/OBV/Supports/server.rb +15 -16
- data/test/OBV/Supports/supports.idl +0 -1
- data/test/OBV/Supports/supports_impl.rb +3 -1
- data/test/OBV/Tree/client.rb +14 -15
- data/test/OBV/Tree/run_test.rb +11 -12
- data/test/OBV/Tree/server.rb +19 -20
- data/test/OBV/Tree/test.idl +0 -1
- data/test/OBV/Truncatable/Extra.idl +0 -1
- data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
- data/test/OBV/Truncatable/client.rb +57 -58
- data/test/OBV/Truncatable/run_test.rb +11 -12
- data/test/OBV/Truncatable/server.rb +15 -16
- data/test/OBV/ValueBox/client.rb +154 -154
- data/test/OBV/ValueBox/run_test.rb +11 -12
- data/test/OBV/ValueBox/server.rb +42 -42
- data/test/Object/Test.idl +0 -1
- data/test/Object/client.rb +15 -16
- data/test/Object/run_test.rb +11 -12
- data/test/Object/server.rb +19 -20
- data/test/POA/run_test.rb +10 -11
- data/test/POA/test.rb +17 -18
- data/test/Param_Test/client.rb +53 -54
- data/test/Param_Test/run_test.rb +11 -12
- data/test/Param_Test/server.rb +60 -61
- data/test/Performance/Simple/Test.idl +0 -1
- data/test/Performance/Simple/client.rb +16 -17
- data/test/Performance/Simple/run_test.rb +11 -12
- data/test/Performance/Simple/server.rb +16 -17
- data/test/Policies/Test.idl +0 -1
- data/test/Policies/run_test.rb +10 -11
- data/test/Policies/test.rb +23 -25
- data/test/Timeout/client.rb +21 -22
- data/test/Timeout/run_test.rb +11 -12
- data/test/Timeout/server.rb +19 -20
- data/test/Timeout/test.idl +0 -1
- data/test/lib/assert.rb +0 -2
- data/test/lib/test.rb +29 -25
- data/test/test_runner.rb +22 -24
- metadata +24 -52
- data/README +0 -62
- data/test/BiDirectional/server.ior +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
- data/test/DII/server.ior +0 -1
- data/test/DSI/server.ior +0 -1
- data/test/Exceptions/server.ior +0 -1
- data/test/IDL_Test/server.ior +0 -1
- data/test/IORMap/server.ior +0 -1
- data/test/IORTable/server.ior +0 -1
- data/test/Implicit_Conversion/server.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
- data/test/Multi_Threading/Simple/server.ior +0 -1
- data/test/Multi_Threading/Threads/server.ior +0 -1
- data/test/Multi_Threading/Threads/watchdog.ior +0 -1
- data/test/Multiple_Servant_Interfaces/server.ior +0 -1
- data/test/OBV/AbstractInterface/server.ior +0 -1
- data/test/OBV/Custom/server.ior +0 -1
- data/test/OBV/Simple/server.ior +0 -1
- data/test/OBV/Simple_Event/server.ior +0 -1
- data/test/OBV/Supports/server.ior +0 -1
- data/test/OBV/Tree/server.ior +0 -1
- data/test/OBV/Truncatable/server.ior +0 -1
- data/test/OBV/ValueBox/server.ior +0 -1
- data/test/Object/server.ior +0 -1
- data/test/Param_Test/server.ior +0 -1
- data/test/Performance/Simple/server.ior +0 -1
- data/test/Timeout/server.ior +0 -1
data/mkrf_conf_bingem.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
# generate Rakefile with appropriate default task (all actual task in rakelib)
|
@@ -24,7 +23,6 @@ File.open('Rakefile', 'w') do |f|
|
|
24
23
|
# included with this program.
|
25
24
|
#
|
26
25
|
# Copyright (c) Remedy IT Expertise BV
|
27
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
28
26
|
#--------------------------------------------------------------------
|
29
27
|
|
30
28
|
if defined?(JRUBY_VERSION)
|
@@ -38,7 +36,7 @@ end
|
|
38
36
|
if defined?(JRUBY_VERSION)
|
39
37
|
|
40
38
|
unless system("ruby -S rake -- configure --jacorb-home=#{File.expand_path('ext')}")
|
41
|
-
$stderr.puts
|
39
|
+
$stderr.puts 'Failed to configure R2CORBA'
|
42
40
|
exit(1)
|
43
41
|
end
|
44
42
|
|
@@ -143,9 +141,9 @@ else
|
|
143
141
|
|
144
142
|
end
|
145
143
|
|
146
|
-
puts
|
147
|
-
unless system(
|
148
|
-
puts
|
144
|
+
puts 'Running rake -- configure --without-tao'
|
145
|
+
unless system('rake -- configure --without-tao')
|
146
|
+
puts 'Failed to configure R2CORBA.'
|
149
147
|
exit(1)
|
150
148
|
end
|
151
149
|
end
|
data/rakelib/bin.rake
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require File.join(File.dirname(__FILE__), 'bin.rb')
|
@@ -43,9 +42,9 @@ namespace :r2corba do
|
|
43
42
|
|
44
43
|
task :check do
|
45
44
|
R2CORBA::Bin.binaries.each do |bin|
|
46
|
-
if File.
|
45
|
+
if File.exist?(File.join('bin', bin))
|
47
46
|
content = IO.read(File.join('bin', bin))
|
48
|
-
rm_f(File.join('bin', bin)) unless content == R2CORBA::Bin.__send__(bin.gsub('.','_').to_sym)
|
47
|
+
rm_f(File.join('bin', bin)) unless content == R2CORBA::Bin.__send__(bin.gsub('.', '_').to_sym)
|
49
48
|
end
|
50
49
|
end
|
51
50
|
end
|
data/rakelib/bin.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require File.join(File.dirname(__FILE__), 'config.rb')
|
@@ -19,7 +18,7 @@ module R2CORBA
|
|
19
18
|
|
20
19
|
def self.ridlc
|
21
20
|
<<_SH_TXT
|
22
|
-
#!#{Config.is_win32 ? '/bin/' : (`which env`).strip+' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
|
21
|
+
#!#{Config.is_win32 ? '/bin/' : (`which env`).strip + ' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
|
23
22
|
#---------------------------------
|
24
23
|
# This file is generated
|
25
24
|
#---------------------------------
|
@@ -87,7 +86,7 @@ _BAT_TXT
|
|
87
86
|
|
88
87
|
def self.rins
|
89
88
|
<<_SH_TXT
|
90
|
-
#!#{Config.is_win32 ? '/bin/' : (`which env`).strip+' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
|
89
|
+
#!#{Config.is_win32 ? '/bin/' : (`which env`).strip + ' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
|
91
90
|
#---------------------------------
|
92
91
|
# This file is generated
|
93
92
|
#---------------------------------
|
@@ -99,7 +98,7 @@ _SH_TXT
|
|
99
98
|
|
100
99
|
def self.r2corba
|
101
100
|
<<_SH_TXT
|
102
|
-
#!#{Config.is_win32 ? '/bin/' : (`which env`).strip+' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
|
101
|
+
#!#{Config.is_win32 ? '/bin/' : (`which env`).strip + ' '}#{R2CORBA::RB_CONFIG['ruby_install_name']}
|
103
102
|
#---------------------------------
|
104
103
|
# This file is generated
|
105
104
|
#---------------------------------
|
@@ -143,4 +142,4 @@ _BAT_TXT
|
|
143
142
|
|
144
143
|
end # Bin
|
145
144
|
|
146
|
-
end # R2CORBA
|
145
|
+
end # R2CORBA
|
data/rakelib/build.rake
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require File.join(File.dirname(__FILE__), 'config.rb')
|
@@ -32,56 +31,57 @@ task :build => 'r2corba:build'
|
|
32
31
|
|
33
32
|
## compile base IDL
|
34
33
|
|
35
|
-
r2c_idlc_root = File.join('lib','corba','idl')
|
34
|
+
r2c_idlc_root = File.join('lib', 'corba', 'idl')
|
35
|
+
stdidl_root = File.join('lib', 'idl')
|
36
36
|
|
37
|
-
orb_pidlc = File.join('lib', 'ridlbe','ruby','orb.pidlc')
|
37
|
+
orb_pidlc = File.join('lib', 'ridlbe', 'ruby', 'orb.pidlc')
|
38
38
|
file orb_pidlc => [R2CORBA::BUILD_CFG] do |t|
|
39
|
-
sh("#{R2CORBA::Config.ridlc} --preprocess --output #{t.name} --
|
39
|
+
sh("#{R2CORBA::Config.ridlc} --preprocess --output #{t.name} --include=#{stdidl_root} orb.idl")
|
40
40
|
end
|
41
41
|
Rake::Task['r2corba:build_idl'].enhance [orb_pidlc]
|
42
42
|
CLOBBER.include orb_pidlc
|
43
43
|
|
44
|
-
file File.join(r2c_idlc_root,'r2c_orb.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
44
|
+
file File.join(r2c_idlc_root, 'r2c_orb.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
45
45
|
cmd = R2CORBA::Config.ridlc
|
46
|
-
cmd << " --ignore-pidl --output #{t.name} --namespace=R2CORBA --
|
47
|
-
|
46
|
+
cmd << " --ignore-pidl --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root}" <<
|
47
|
+
' --stubs-only --expand-includes --search-includepath --no-libinit --interface-as-class=TypeCode orb.idl'
|
48
48
|
sh(cmd)
|
49
49
|
end
|
50
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,'r2c_orb.rb')]
|
51
|
-
CLOBBER.include File.join(r2c_idlc_root,'r2c_orb.rb')
|
50
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, 'r2c_orb.rb')]
|
51
|
+
CLOBBER.include File.join(r2c_idlc_root, 'r2c_orb.rb')
|
52
52
|
|
53
53
|
[ ['POA', 'PortableServer.pidl'],
|
54
54
|
['Messaging', 'Messaging.pidl'],
|
55
55
|
['BiDirPolicy', 'BiDirPolicy.pidl'],
|
56
56
|
].each do |stub, pidl|
|
57
|
-
file File.join(r2c_idlc_root,stub+'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
57
|
+
file File.join(r2c_idlc_root, stub + 'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
58
58
|
cmd = R2CORBA::Config.ridlc
|
59
|
-
cmd << " --output #{t.name} --namespace=R2CORBA --
|
59
|
+
cmd << " --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root} --stubs-only --expand-includes --search-includepath --no-libinit #{pidl}"
|
60
60
|
sh(cmd)
|
61
61
|
end
|
62
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,stub+'C.rb')]
|
63
|
-
CLOBBER.include File.join(r2c_idlc_root,stub+'C.rb')
|
62
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, stub + 'C.rb')]
|
63
|
+
CLOBBER.include File.join(r2c_idlc_root, stub + 'C.rb')
|
64
64
|
end
|
65
65
|
|
66
66
|
unless defined?(JRUBY_VERSION)
|
67
|
-
r2tao_root = File.join('lib','corba','cbase')
|
67
|
+
r2tao_root = File.join('lib', 'corba', 'cbase')
|
68
68
|
tao_root = get_config('taoroot')
|
69
69
|
[ 'TAO_Ext', 'IORTable' ].each do |stub|
|
70
|
-
file File.join(r2c_idlc_root,stub+'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
70
|
+
file File.join(r2c_idlc_root, stub + 'C.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
71
71
|
cmd = R2CORBA::Config.ridlc
|
72
|
-
cmd << " --output #{t.name} --namespace=R2CORBA --
|
73
|
-
" --search-includepath --no-libinit #{File.join(r2c_idlc_root, stub+'.pidl')}"
|
72
|
+
cmd << " --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root} --stubs-only --expand-includes -I#{tao_root}" <<
|
73
|
+
" --search-includepath --no-libinit #{File.join(r2c_idlc_root, stub + '.pidl')}"
|
74
74
|
sh(cmd)
|
75
75
|
end
|
76
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,stub+'C.rb')]
|
77
|
-
CLOBBER.include File.join(r2c_idlc_root,stub+'C.rb')
|
76
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, stub + 'C.rb')]
|
77
|
+
CLOBBER.include File.join(r2c_idlc_root, stub + 'C.rb')
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
81
|
file File.join(r2c_idlc_root, 'CosNamingC.rb') => [R2CORBA::BUILD_CFG, orb_pidlc] do |t|
|
82
82
|
cmd = R2CORBA::Config.ridlc
|
83
|
-
cmd << " -o #{r2c_idlc_root} --
|
83
|
+
cmd << " -o #{r2c_idlc_root} --include=#{stdidl_root} --expand-includes --search-includepath CosNaming.idl"
|
84
84
|
sh(cmd)
|
85
85
|
end
|
86
|
-
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root,'CosNamingC.rb')]
|
87
|
-
CLOBBER.include File.join(r2c_idlc_root,'CosNamingC.rb')
|
86
|
+
Rake::Task['r2corba:build_idl'].enhance [File.join(r2c_idlc_root, 'CosNamingC.rb')]
|
87
|
+
CLOBBER.include File.join(r2c_idlc_root, 'CosNamingC.rb')
|
data/rakelib/config.rake
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require File.join(File.dirname(__FILE__), 'config.rb')
|
@@ -30,7 +29,7 @@ namespace :r2corba do
|
|
30
29
|
namespace :config do
|
31
30
|
task :show do
|
32
31
|
R2CORBA::CFGKEYS.each do |ck|
|
33
|
-
puts
|
32
|
+
puts '%20s => %s' % [ck, get_config(ck)]
|
34
33
|
end
|
35
34
|
end
|
36
35
|
end
|
@@ -49,4 +48,4 @@ file R2CORBA::BUILD_CFG do
|
|
49
48
|
end
|
50
49
|
end
|
51
50
|
|
52
|
-
CLOBBER.include R2CORBA::BUILD_CFG
|
51
|
+
CLOBBER.include R2CORBA::BUILD_CFG
|
data/rakelib/config.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require 'rbconfig'
|
@@ -87,8 +86,8 @@ if (Rake::Version::MAJOR.to_i == 10 &&
|
|
87
86
|
|
88
87
|
begin
|
89
88
|
return OptionParser.new do |opts|
|
90
|
-
opts.banner =
|
91
|
-
opts.separator
|
89
|
+
opts.banner = ''
|
90
|
+
opts.separator ''
|
92
91
|
|
93
92
|
standard_rake_options.each { |args| opts.on(*args) }
|
94
93
|
opts.environment('RAKEOPT')
|
@@ -172,7 +171,7 @@ module R2CORBA
|
|
172
171
|
:aceinstdir => '',
|
173
172
|
:'with-ipv6' => false,
|
174
173
|
:'with-ssl' => false,
|
175
|
-
:sslroot => ENV['SSL_ROOT'] || (RUBY_PLATFORM =~ /
|
174
|
+
:sslroot => ENV['SSL_ROOT'] || (RUBY_PLATFORM =~ /mingw/ ? '' : '/usr'),
|
176
175
|
:'with-debug' => false,
|
177
176
|
})
|
178
177
|
BUILD_CFG = '.rconfig'
|
@@ -206,18 +205,17 @@ module R2CORBA
|
|
206
205
|
@@ruby_ver[2]
|
207
206
|
end
|
208
207
|
|
209
|
-
@@is_win32 = RUBY_PLATFORM =~ /
|
208
|
+
@@is_win32 = RUBY_PLATFORM =~ /mingw/ ? true : false
|
210
209
|
@@is_win64 = (@@is_win32 && (RUBY_PLATFORM =~ /x64/)) ? true : false
|
211
210
|
@@is_linux = RB_CONFIG['target_os'] =~ /linux/ ? true : false
|
212
211
|
@@is_osx = RUBY_PLATFORM =~ /darwin/ ? true : false
|
213
212
|
|
214
213
|
if @@is_linux
|
215
214
|
# determin distro
|
216
|
-
io_args = [$/, {:encoding => 'utf-8'}] if rb_ver_major > 1 || (rb_ver_minor > 8 && rb_ver_major == 1)
|
217
215
|
name = 'linux'
|
218
216
|
if File.readable?('/etc/os-release')
|
219
217
|
# find 'NAME=...'
|
220
|
-
File.foreach('/etc/os-release',
|
218
|
+
File.foreach('/etc/os-release', :encoding => 'utf-8') do |ln|
|
221
219
|
if /^NAME=(.*)$/ =~ ln.strip
|
222
220
|
name = $1.downcase
|
223
221
|
break
|
@@ -225,7 +223,7 @@ module R2CORBA
|
|
225
223
|
end
|
226
224
|
elsif File.readable?('/etc/lsb-release')
|
227
225
|
# find 'DISTRIB_ID='
|
228
|
-
File.foreach('/etc/lsb-release',
|
226
|
+
File.foreach('/etc/lsb-release', :encoding => 'utf-8') do |ln|
|
229
227
|
if /^DISTRIB_ID=(.*)$/ =~ ln.strip
|
230
228
|
name = $1.downcase
|
231
229
|
break
|
@@ -233,9 +231,9 @@ module R2CORBA
|
|
233
231
|
end
|
234
232
|
elsif File.readable?('/etc/redhat-release')
|
235
233
|
name = File.read('/etc/redhat-release').strip.downcase
|
236
|
-
elsif File.
|
234
|
+
elsif File.exist?('/etc/SuSE-release')
|
237
235
|
name = 'suse'
|
238
|
-
elsif File.
|
236
|
+
elsif File.exist?('/etc/debian_version')
|
239
237
|
name = 'debian'
|
240
238
|
end
|
241
239
|
@@linux_distro = case name
|
@@ -274,7 +272,7 @@ module R2CORBA
|
|
274
272
|
@@is_osx
|
275
273
|
end
|
276
274
|
|
277
|
-
@@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : 1)
|
275
|
+
@@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : (ENV['NUMBER_OF_PROCESSORS'] || 1).to_i)
|
278
276
|
|
279
277
|
def self.cpu_cores
|
280
278
|
@@cpu_cores
|
@@ -311,14 +309,14 @@ module R2CORBA
|
|
311
309
|
ENV['MPC_ROOT'] = get_config('mpcroot')
|
312
310
|
|
313
311
|
if is_win32
|
314
|
-
ENV['PATH'] = "#{File.join(ENV['ACE_ROOT'],'lib')}#{';'}#{ENV['PATH']}"
|
312
|
+
ENV['PATH'] = "#{File.join(ENV['ACE_ROOT'], 'lib')}#{';'}#{ENV['PATH']}"
|
315
313
|
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl')
|
316
314
|
elsif RUBY_PLATFORM =~ /darwin/
|
317
|
-
ENV['DYLD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'],'lib')}#{File::PATH_SEPARATOR}#{ENV['DYLD_LIBRARY_PATH'] || ""}"
|
318
|
-
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot')!='/usr'
|
315
|
+
ENV['DYLD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'], 'lib')}#{File::PATH_SEPARATOR}#{ENV['DYLD_LIBRARY_PATH'] || ""}"
|
316
|
+
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot') != '/usr'
|
319
317
|
else
|
320
|
-
ENV['LD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'],'lib')}#{File::PATH_SEPARATOR}#{ENV['LD_LIBRARY_PATH'] || ""}"
|
321
|
-
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot')!='/usr'
|
318
|
+
ENV['LD_LIBRARY_PATH'] = "#{File.join(ENV['ACE_ROOT'], 'lib')}#{File::PATH_SEPARATOR}#{ENV['LD_LIBRARY_PATH'] || ""}"
|
319
|
+
ENV['SSL_ROOT'] = get_config('sslroot') if get_config('with-ssl') && get_config('sslroot') != '/usr'
|
322
320
|
end
|
323
321
|
|
324
322
|
else
|
@@ -349,7 +347,7 @@ module R2CORBA
|
|
349
347
|
@@ridlc = File.join('bin', 'ridlc')
|
350
348
|
|
351
349
|
# check availability of RIDL; either as gem or in subdir
|
352
|
-
if (@@ridl_local = File.
|
350
|
+
if (@@ridl_local = File.exist?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')))
|
353
351
|
incdirs = [
|
354
352
|
File.expand_path(File.join('ridl', 'lib')),
|
355
353
|
File.expand_path('lib'),
|
@@ -369,9 +367,9 @@ module R2CORBA
|
|
369
367
|
def self.define
|
370
368
|
_argv = Rake.application.cleanup_args(ARGV)
|
371
369
|
OptionParser.new do |opts|
|
372
|
-
opts.banner =
|
370
|
+
opts.banner = 'Usage: rake [rake options] -- configure [options]'
|
373
371
|
|
374
|
-
opts.separator
|
372
|
+
opts.separator ''
|
375
373
|
|
376
374
|
opts.on('--prefix=path',
|
377
375
|
"path prefix of target environment [#{get_config(:prefix)}]") {|v| set_config(:prefix, File.expand_path(v))}
|
@@ -402,7 +400,7 @@ module R2CORBA
|
|
402
400
|
opts.on('--rbdir=path',
|
403
401
|
"the directory for ruby scripts [#{get_config(:rbdir)}]") {|v| CONFIG[:rbdir] = v}
|
404
402
|
opts.on('--sodir=path',
|
405
|
-
"the directory for ruby
|
403
|
+
"the directory for ruby extensions [#{get_config(:sodir)}]") {|v| CONFIG[:sodir] = v}
|
406
404
|
if defined?(JRUBY_VERSION)
|
407
405
|
opts.on('--without-jacorb',
|
408
406
|
"do *not* install JacORB JAR files with R2CORBA [#{get_config('without-jacorb')}]") {|v| CONFIG[:'without-jacorb'] = true}
|
@@ -410,7 +408,7 @@ module R2CORBA
|
|
410
408
|
"the path to the root directory of JacORB [#{get_config(:jacorb_home)}]") {|v| CONFIG[:jacorb_home] = v}
|
411
409
|
else
|
412
410
|
opts.on('--makeprog=name',
|
413
|
-
"the make program to compile ruby
|
411
|
+
"the make program to compile ruby extensions [#{get_config(:makeprog)}]") {|v| CONFIG[:makeprog] = v}
|
414
412
|
opts.on('--without-tao',
|
415
413
|
"do *not* configure/build/clean the ACE+TAO libraries [#{get_config('without-tao')}]") {|v| CONFIG[:'without-tao'] = true }
|
416
414
|
opts.on('--aceroot=path',
|
@@ -431,7 +429,7 @@ module R2CORBA
|
|
431
429
|
"build with debugger support [#{get_config('with-debug')}]") {|v| CONFIG[:'with-debug'] = true}
|
432
430
|
end
|
433
431
|
|
434
|
-
opts.separator
|
432
|
+
opts.separator ''
|
435
433
|
|
436
434
|
opts.on('--help', 'Show this help message') { puts opts; puts; exit }
|
437
435
|
end.parse!(_argv)
|
@@ -440,14 +438,14 @@ module R2CORBA
|
|
440
438
|
def self.check
|
441
439
|
if defined?(JRUBY_VERSION)
|
442
440
|
# check availability of JacORB
|
443
|
-
if get_config('jacorb_home')=='' && File.directory?('jacorb')
|
441
|
+
if get_config('jacorb_home') == '' && File.directory?('jacorb')
|
444
442
|
set_config('jacorb_home', File.expand_path('jacorb'))
|
445
443
|
end
|
446
|
-
raise
|
444
|
+
raise 'Cannot find JacORB. Missing JACORB_HOME configuration!' if get_config('jacorb_home').empty?
|
447
445
|
else
|
448
446
|
if Dir[File.join('ext', 'libACE.*')].empty? # Don't check for ACE/TAO installation when executed for binary gem install
|
449
447
|
|
450
|
-
if get_config('without-tao') && !(File.directory?(File.join('ACE','ACE_wrappers')) || File.directory?(File.join('ACE','ACE')))
|
448
|
+
if get_config('without-tao') && !(File.directory?(File.join('ACE', 'ACE_wrappers')) || File.directory?(File.join('ACE', 'ACE')))
|
451
449
|
|
452
450
|
# check if a user defined ACE/TAO location is specified or we're using a system standard install
|
453
451
|
if get_config('aceroot').empty?
|
@@ -462,14 +460,14 @@ module R2CORBA
|
|
462
460
|
|
463
461
|
else
|
464
462
|
# check availability of ACE/TAO
|
465
|
-
if get_config('aceroot').empty? && (File.directory?(File.join('ACE','ACE_wrappers')) || File.directory?(File.join('ACE','ACE')))
|
466
|
-
set_config('aceroot', File.directory?(File.join('ACE','ACE_wrappers')) ? File.expand_path(File.join('ACE','ACE_wrappers')) : File.expand_path(File.join('ACE','ACE')))
|
463
|
+
if get_config('aceroot').empty? && (File.directory?(File.join('ACE', 'ACE_wrappers')) || File.directory?(File.join('ACE', 'ACE')))
|
464
|
+
set_config('aceroot', File.directory?(File.join('ACE', 'ACE_wrappers')) ? File.expand_path(File.join('ACE', 'ACE_wrappers')) : File.expand_path(File.join('ACE', 'ACE')))
|
467
465
|
end
|
468
|
-
if get_config('taoroot').empty? && (File.directory?(File.join(get_config('aceroot'),'TAO')) || File.directory?(File.join('ACE','TAO')))
|
469
|
-
set_config('taoroot', File.directory?(File.join(get_config('aceroot'),'TAO')) ? File.expand_path(File.join(get_config('aceroot'),'TAO')) : File.expand_path(File.join('ACE','TAO')))
|
466
|
+
if get_config('taoroot').empty? && (File.directory?(File.join(get_config('aceroot'), 'TAO')) || File.directory?(File.join('ACE', 'TAO')))
|
467
|
+
set_config('taoroot', File.directory?(File.join(get_config('aceroot'), 'TAO')) ? File.expand_path(File.join(get_config('aceroot'), 'TAO')) : File.expand_path(File.join('ACE', 'TAO')))
|
470
468
|
end
|
471
|
-
if get_config('mpcroot').empty? && (File.directory?(File.join(
|
472
|
-
set_config('mpcroot', File.directory?(File.join(
|
469
|
+
if get_config('mpcroot').empty? && (File.directory?(File.join('ACE', 'MPC')) || File.directory?(File.join(get_config('aceroot'), 'MPC')))
|
470
|
+
set_config('mpcroot', File.directory?(File.join('ACE', 'MPC')) ? File.expand_path(File.join('ACE', 'MPC')) : File.expand_path(File.join(get_config('aceroot'), 'MPC')))
|
473
471
|
end
|
474
472
|
|
475
473
|
set_config('aceinstdir', get_config('sodir')) if get_config('aceinstdir').empty?
|
@@ -516,8 +514,8 @@ module R2CORBA
|
|
516
514
|
end
|
517
515
|
|
518
516
|
# check availability of RIDL; either as gem or in subdir
|
519
|
-
unless File.
|
520
|
-
raise
|
517
|
+
unless File.exist?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')) || (`gem search -i -q ridl`.strip) == 'true'
|
518
|
+
raise 'Missing RIDL installation. R2CORBA requires RIDL installed either as gem or in subdirectory ridl.'
|
521
519
|
end
|
522
520
|
end
|
523
521
|
|
@@ -541,4 +539,4 @@ end
|
|
541
539
|
include R2CORBA::AccessMethods
|
542
540
|
|
543
541
|
# load current config (if any)
|
544
|
-
R2CORBA::Config.load
|
542
|
+
R2CORBA::Config.load
|
data/rakelib/ext.rake
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
if defined?(JRUBY_VERSION)
|
@@ -43,14 +42,14 @@ else # !JRUBY_VERSION
|
|
43
42
|
R2CORBA::Ext.rpoa_mpc_file,
|
44
43
|
R2CORBA::Ext.rpol_mpc_file] do
|
45
44
|
# check availability of PERL
|
46
|
-
raise
|
45
|
+
raise 'PERL missing! A working version of PERL in the PATH is required.' unless system('perl -v')
|
47
46
|
# configure R2TAO build
|
48
47
|
_mwc = File.join(get_config('aceroot'), 'bin', 'mwc.pl')
|
49
48
|
|
50
49
|
cur_dir = Dir.getwd
|
51
50
|
Dir.chdir 'ext'
|
52
51
|
begin
|
53
|
-
sh("perl #{_mwc} -type gnuace ext.mwc")
|
52
|
+
sh("perl #{_mwc} -type gnuace ext.mwc -workers #{R2CORBA::Config.cpu_cores}")
|
54
53
|
ensure
|
55
54
|
Dir.chdir cur_dir
|
56
55
|
end
|
@@ -76,7 +75,7 @@ else # !JRUBY_VERSION
|
|
76
75
|
cur_dir = Dir.getwd
|
77
76
|
Dir.chdir 'ext'
|
78
77
|
begin
|
79
|
-
sh("#{get_config('makeprog')} realclean") if File.
|
78
|
+
sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
|
80
79
|
ensure
|
81
80
|
Dir.chdir cur_dir
|
82
81
|
end
|
@@ -86,68 +85,11 @@ else # !JRUBY_VERSION
|
|
86
85
|
|
87
86
|
Rake::Task['clobber'].enhance ['r2corba:ext:clobber']
|
88
87
|
|
89
|
-
if R2CORBA::Config.is_win32
|
90
|
-
|
91
|
-
file R2CORBA::Ext.extload_mpc_file do |t|
|
92
|
-
File.open(t.name, 'w') {|f| f.puts R2CORBA::Ext::EXTLOAD_MPC }
|
93
|
-
end
|
94
|
-
|
95
|
-
file R2CORBA::Ext.extload_makefile => [R2CORBA::BUILD_CFG,
|
96
|
-
R2CORBA::Ext.default_features_path,
|
97
|
-
R2CORBA::Ext.ace_config_path,
|
98
|
-
R2CORBA::Ext.platform_macros_path,
|
99
|
-
R2CORBA::Ext.extload_mpc_file] do
|
100
|
-
# check availability of PERL
|
101
|
-
raise "PERL missing! A working version of PERL in the PATH is required." unless system('perl -v')
|
102
|
-
# configure extload build
|
103
|
-
_mwc = File.join(get_config('aceroot'), 'bin', 'mwc.pl')
|
104
|
-
|
105
|
-
cur_dir = Dir.getwd
|
106
|
-
Dir.chdir File.join('ext', 'extload')
|
107
|
-
begin
|
108
|
-
sh("perl #{_mwc} -type gnuace")
|
109
|
-
ensure
|
110
|
-
Dir.chdir cur_dir
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
CLOBBER.include [R2CORBA::Ext.extload_makefile, R2CORBA::Ext.extload_mpc_file]
|
115
|
-
|
116
|
-
namespace :r2corba do
|
117
|
-
namespace :ext do
|
118
|
-
#desc 'Build extension loader'
|
119
|
-
task :build_extload => R2CORBA::Ext.extload_makefile do
|
120
|
-
cur_dir = Dir.getwd
|
121
|
-
Dir.chdir File.join('ext', 'extload')
|
122
|
-
begin
|
123
|
-
sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
|
124
|
-
ensure
|
125
|
-
Dir.chdir cur_dir
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
task :clobber_extload do
|
130
|
-
cur_dir = Dir.getwd
|
131
|
-
Dir.chdir File.join('ext', 'extload')
|
132
|
-
begin
|
133
|
-
sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
|
134
|
-
ensure
|
135
|
-
Dir.chdir cur_dir
|
136
|
-
end
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
Rake::Task['r2corba:ext:build'].enhance ['r2corba:ext:build_extload']
|
142
|
-
Rake::Task['clobber'].enhance ['r2corba:ext:clobber_extload']
|
143
|
-
|
144
|
-
end
|
145
|
-
|
146
88
|
# Do we handle ACE+TAO here?
|
147
89
|
unless get_config('without-tao')
|
148
90
|
|
149
91
|
file R2CORBA::Ext.ace_config_path => R2CORBA::BUILD_CFG do |t|
|
150
|
-
File.open(t.name,
|
92
|
+
File.open(t.name, 'w') {|f|
|
151
93
|
f.puts R2CORBA::Ext.ace_config
|
152
94
|
}
|
153
95
|
end
|
@@ -155,7 +97,7 @@ else # !JRUBY_VERSION
|
|
155
97
|
CLOBBER.include R2CORBA::Ext.ace_config_path
|
156
98
|
|
157
99
|
file R2CORBA::Ext.platform_macros_path => R2CORBA::BUILD_CFG do |t|
|
158
|
-
File.open(t.name,
|
100
|
+
File.open(t.name, 'w') {|f|
|
159
101
|
f.puts R2CORBA::Ext.platform_macros
|
160
102
|
}
|
161
103
|
end
|
@@ -163,7 +105,7 @@ else # !JRUBY_VERSION
|
|
163
105
|
CLOBBER.include R2CORBA::Ext.platform_macros_path
|
164
106
|
|
165
107
|
file R2CORBA::Ext.default_features_path => R2CORBA::BUILD_CFG do |t|
|
166
|
-
File.open(t.name,
|
108
|
+
File.open(t.name, 'w') do |f|
|
167
109
|
f.puts R2CORBA::Ext.default_features
|
168
110
|
end
|
169
111
|
end
|
@@ -171,7 +113,7 @@ else # !JRUBY_VERSION
|
|
171
113
|
CLOBBER.include R2CORBA::Ext.default_features_path
|
172
114
|
|
173
115
|
file R2CORBA::Ext.tao_mwc_path => R2CORBA::BUILD_CFG do |t|
|
174
|
-
File.open(t.name,
|
116
|
+
File.open(t.name, 'w') do |f|
|
175
117
|
f.puts R2CORBA::Ext.tao_mwc
|
176
118
|
end
|
177
119
|
end
|
@@ -183,12 +125,12 @@ else # !JRUBY_VERSION
|
|
183
125
|
R2CORBA::Ext.default_features_path,
|
184
126
|
R2CORBA::Ext.tao_mwc_path] do
|
185
127
|
# check availability of PERL
|
186
|
-
raise
|
128
|
+
raise 'PERL missing! A working version of PERL in the PATH is required.' unless system('perl -v')
|
187
129
|
# generate ACE+TAO makefile
|
188
130
|
cur_dir = Dir.getwd
|
189
131
|
Dir.chdir File.expand_path(get_config('aceroot'))
|
190
132
|
begin
|
191
|
-
sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc")
|
133
|
+
sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc -workers #{R2CORBA::Config.cpu_cores}")
|
192
134
|
ensure
|
193
135
|
Dir.chdir cur_dir
|
194
136
|
end
|
@@ -206,11 +148,7 @@ else # !JRUBY_VERSION
|
|
206
148
|
cur_dir = Dir.getwd
|
207
149
|
Dir.chdir File.expand_path(get_config('aceroot'))
|
208
150
|
begin
|
209
|
-
|
210
|
-
sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores - 2} #{get_config('with-debug') ? ' debug=1' : ''}")
|
211
|
-
else
|
212
|
-
sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
|
213
|
-
end
|
151
|
+
sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores} #{get_config('with-debug') ? ' debug=1' : ''}")
|
214
152
|
ensure
|
215
153
|
Dir.chdir cur_dir
|
216
154
|
end
|
@@ -224,11 +162,14 @@ else # !JRUBY_VERSION
|
|
224
162
|
task :clobber_tao do
|
225
163
|
# clean ACE+TAO
|
226
164
|
cur_dir = Dir.getwd
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
165
|
+
ace_root = File.expand_path(get_config('aceroot'))
|
166
|
+
if File.exist?(ace_root)
|
167
|
+
Dir.chdir ace_root
|
168
|
+
begin
|
169
|
+
sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
|
170
|
+
ensure
|
171
|
+
Dir.chdir cur_dir
|
172
|
+
end
|
232
173
|
end
|
233
174
|
end
|
234
175
|
end
|