r2corba 1.5.1-x64-mingw32 → 1.5.5-x64-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +5 -5
  3. data/README.rdoc +62 -0
  4. data/THANKS +4 -4
  5. data/lib/corba.rb +0 -1
  6. data/lib/corba/cbase/IORMap.rb +0 -1
  7. data/lib/corba/cbase/ORB.rb +7 -8
  8. data/lib/corba/cbase/Request.rb +1 -2
  9. data/lib/corba/cbase/Streams.rb +2 -3
  10. data/lib/corba/cbase/Stub.rb +0 -1
  11. data/lib/corba/cbase/Typecode.rb +6 -7
  12. data/lib/corba/cbase/Values.rb +0 -1
  13. data/lib/corba/cbase/exception.rb +2 -3
  14. data/lib/corba/cbase/poa.rb +0 -1
  15. data/lib/corba/cbase/policies.rb +2 -3
  16. data/lib/corba/cbase/post_require.rb +1 -2
  17. data/lib/corba/cbase/require.rb +2 -1
  18. data/lib/corba/cmds/base.rb +1 -2
  19. data/lib/corba/cmds/test.rb +0 -1
  20. data/lib/corba/common/Any.rb +1 -2
  21. data/lib/corba/common/IDL.rb +5 -9
  22. data/lib/corba/common/ORB.rb +1 -2
  23. data/lib/corba/common/Object.rb +4 -2
  24. data/lib/corba/common/Request.rb +1 -2
  25. data/lib/corba/common/Servant.rb +0 -1
  26. data/lib/corba/common/Struct.rb +1 -2
  27. data/lib/corba/common/Stub.rb +1 -2
  28. data/lib/corba/common/Typecode.rb +56 -57
  29. data/lib/corba/common/Union.rb +1 -2
  30. data/lib/corba/common/Values.rb +1 -2
  31. data/lib/corba/common/const.rb +2 -3
  32. data/lib/corba/common/exception.rb +0 -1
  33. data/lib/corba/common/require.rb +8 -1
  34. data/lib/corba/common/version.rb +3 -4
  35. data/lib/corba/idl/BiDirPolicyC.rb +2 -3
  36. data/lib/corba/idl/CosNamingC.rb +4 -5
  37. data/lib/corba/idl/CosNamingS.rb +2 -3
  38. data/lib/corba/idl/IDL.rb +0 -1
  39. data/lib/corba/idl/IORTable.pidl +0 -1
  40. data/lib/corba/idl/IORTableC.rb +2 -3
  41. data/lib/corba/idl/MessagingC.rb +2 -3
  42. data/lib/corba/idl/POAC.rb +10 -11
  43. data/lib/corba/idl/TAO_Ext.pidl +0 -1
  44. data/lib/corba/idl/TAO_ExtC.rb +2 -3
  45. data/lib/corba/idl/r2c_orb.rb +5 -6
  46. data/lib/corba/idl/require.rb +0 -1
  47. data/lib/corba/jbase/Any.rb +24 -25
  48. data/lib/corba/jbase/IORMap.rb +1 -2
  49. data/lib/corba/jbase/ORB.rb +3 -4
  50. data/lib/corba/jbase/Object.rb +0 -1
  51. data/lib/corba/jbase/Request.rb +6 -7
  52. data/lib/corba/jbase/Servant.rb +11 -12
  53. data/lib/corba/jbase/ServerRequest.rb +8 -9
  54. data/lib/corba/jbase/Streams.rb +4 -5
  55. data/lib/corba/jbase/Stub.rb +0 -1
  56. data/lib/corba/jbase/Typecode.rb +14 -15
  57. data/lib/corba/jbase/Values.rb +0 -1
  58. data/lib/corba/jbase/exception.rb +1 -2
  59. data/lib/corba/jbase/poa.rb +3 -4
  60. data/lib/corba/jbase/policies.rb +4 -5
  61. data/lib/corba/jbase/post_require.rb +0 -1
  62. data/lib/corba/jbase/require.rb +1 -2
  63. data/lib/corba/naming.rb +0 -1
  64. data/lib/corba/naming_service.rb +0 -1
  65. data/lib/corba/poa.rb +1 -2
  66. data/lib/corba/policies.rb +1 -2
  67. data/lib/corba/require.rb +2 -3
  68. data/lib/corba/svcs/ins/cos_naming.rb +64 -67
  69. data/lib/corba/svcs/ins/ins.rb +24 -25
  70. data/lib/corba/svcs/ins/naming_service.rb +3 -4
  71. data/lib/ridlbe/ruby/config.rb +49 -52
  72. data/lib/ridlbe/ruby/require.rb +0 -1
  73. data/lib/ridlbe/ruby/walker.rb +38 -38
  74. data/mkrf_conf_bingem.rb +0 -2
  75. data/rakelib/bin.rake +2 -3
  76. data/rakelib/bin.rb +4 -5
  77. data/rakelib/build.rake +21 -21
  78. data/rakelib/config.rake +1 -2
  79. data/rakelib/config.rb +23 -25
  80. data/rakelib/ext.rake +16 -16
  81. data/rakelib/ext.rb +17 -56
  82. data/rakelib/ext_r2tao.rb +34 -24
  83. data/rakelib/gem.rake +53 -38
  84. data/rakelib/gem.rb +8 -9
  85. data/rakelib/package.rake +1 -2
  86. data/rakelib/test.rake +0 -1
  87. data/test/BiDirectional/Test.idl +0 -1
  88. data/test/BiDirectional/client.rb +4 -5
  89. data/test/BiDirectional/run_test.rb +1 -2
  90. data/test/BiDirectional/server.rb +4 -6
  91. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
  92. data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -6
  93. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -2
  94. data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -5
  95. data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
  96. data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -4
  97. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -2
  98. data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -11
  99. data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
  100. data/test/CORBA_Services/Naming/Simple/client.rb +4 -5
  101. data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -2
  102. data/test/CORBA_Services/Naming/Simple/server.rb +4 -5
  103. data/test/Collocation/Diamond.idl +0 -1
  104. data/test/Collocation/run_test.rb +0 -1
  105. data/test/Collocation/test.rb +2 -3
  106. data/test/Connect_Timeout/Test.idl +0 -1
  107. data/test/Connect_Timeout/client.rb +3 -5
  108. data/test/Connect_Timeout/run_test.rb +0 -1
  109. data/test/DII/Test.idl +0 -1
  110. data/test/DII/client.rb +5 -6
  111. data/test/DII/run_test.rb +1 -2
  112. data/test/DII/server.rb +3 -4
  113. data/test/DSI/Test.idl +0 -1
  114. data/test/DSI/client.rb +3 -4
  115. data/test/DSI/run_test.rb +1 -2
  116. data/test/DSI/server.rb +3 -4
  117. data/test/Exceptions/Test.idl +0 -1
  118. data/test/Exceptions/client.rb +5 -6
  119. data/test/Exceptions/run_test.rb +1 -2
  120. data/test/Exceptions/server.rb +3 -4
  121. data/test/Hello/Test.idl +0 -1
  122. data/test/Hello/client.rb +3 -4
  123. data/test/Hello/run_test.rb +1 -2
  124. data/test/Hello/server.rb +3 -4
  125. data/test/IDL_Test/Test.idl +4 -1
  126. data/test/IDL_Test/client.rb +6 -5
  127. data/test/IDL_Test/run_test.rb +1 -2
  128. data/test/IDL_Test/server.rb +8 -4
  129. data/test/IORMap/Test.idl +0 -1
  130. data/test/IORMap/client.rb +3 -4
  131. data/test/IORMap/run_test.rb +1 -2
  132. data/test/IORMap/server.rb +4 -5
  133. data/test/IORTable/Test.idl +0 -1
  134. data/test/IORTable/client.rb +3 -4
  135. data/test/IORTable/run_test.rb +1 -2
  136. data/test/IORTable/server.rb +4 -5
  137. data/test/Implicit_Conversion/Test.idl +0 -1
  138. data/test/Implicit_Conversion/client.rb +4 -5
  139. data/test/Implicit_Conversion/run_test.rb +1 -2
  140. data/test/Implicit_Conversion/server.rb +3 -4
  141. data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
  142. data/test/Multi_Threading/Multiple_ORB/client.rb +3 -4
  143. data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -3
  144. data/test/Multi_Threading/Multiple_ORB/server.rb +3 -4
  145. data/test/Multi_Threading/Simple/Test.idl +0 -1
  146. data/test/Multi_Threading/Simple/client.rb +4 -5
  147. data/test/Multi_Threading/Simple/run_test.rb +1 -2
  148. data/test/Multi_Threading/Simple/server.rb +4 -5
  149. data/test/Multi_Threading/Threads/Test.idl +0 -4
  150. data/test/Multi_Threading/Threads/client.rb +10 -13
  151. data/test/Multi_Threading/Threads/run_test.rb +1 -2
  152. data/test/Multi_Threading/Threads/server.rb +4 -7
  153. data/test/Multi_Threading/Threads/watchdog.rb +3 -3
  154. data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
  155. data/test/Multiple_Servant_Interfaces/client.rb +3 -4
  156. data/test/Multiple_Servant_Interfaces/run_test.rb +1 -2
  157. data/test/Multiple_Servant_Interfaces/server.rb +3 -4
  158. data/test/Nil/Test.idl +0 -1
  159. data/test/Nil/run_test.rb +0 -1
  160. data/test/Nil/test.rb +11 -9
  161. data/test/OBV/AbstractInterface/client.rb +3 -4
  162. data/test/OBV/AbstractInterface/run_test.rb +1 -2
  163. data/test/OBV/AbstractInterface/server.rb +3 -4
  164. data/test/OBV/AbstractInterface/test.idl +0 -1
  165. data/test/OBV/Custom/OBV_impl.rb +0 -1
  166. data/test/OBV/Custom/client.rb +3 -4
  167. data/test/OBV/Custom/run_test.rb +1 -2
  168. data/test/OBV/Custom/server.rb +3 -4
  169. data/test/OBV/Simple/OBV_impl.rb +0 -1
  170. data/test/OBV/Simple/client.rb +3 -4
  171. data/test/OBV/Simple/run_test.rb +1 -2
  172. data/test/OBV/Simple/server.rb +3 -4
  173. data/test/OBV/Simple_Event/Event_impl.rb +0 -1
  174. data/test/OBV/Simple_Event/client.rb +3 -4
  175. data/test/OBV/Simple_Event/run_test.rb +1 -2
  176. data/test/OBV/Simple_Event/server.rb +3 -4
  177. data/test/OBV/Supports/client.rb +3 -4
  178. data/test/OBV/Supports/run_test.rb +1 -2
  179. data/test/OBV/Supports/server.rb +3 -4
  180. data/test/OBV/Supports/supports.idl +0 -1
  181. data/test/OBV/Supports/supports_impl.rb +0 -1
  182. data/test/OBV/Tree/client.rb +3 -4
  183. data/test/OBV/Tree/run_test.rb +1 -2
  184. data/test/OBV/Tree/server.rb +3 -4
  185. data/test/OBV/Tree/test.idl +0 -1
  186. data/test/OBV/Truncatable/Extra.idl +0 -1
  187. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
  188. data/test/OBV/Truncatable/client.rb +4 -5
  189. data/test/OBV/Truncatable/run_test.rb +1 -2
  190. data/test/OBV/Truncatable/server.rb +3 -4
  191. data/test/OBV/ValueBox/client.rb +44 -45
  192. data/test/OBV/ValueBox/run_test.rb +1 -2
  193. data/test/OBV/ValueBox/server.rb +29 -29
  194. data/test/Object/Test.idl +0 -1
  195. data/test/Object/client.rb +4 -5
  196. data/test/Object/run_test.rb +1 -2
  197. data/test/Object/server.rb +3 -4
  198. data/test/POA/run_test.rb +0 -1
  199. data/test/POA/test.rb +4 -5
  200. data/test/Param_Test/client.rb +8 -9
  201. data/test/Param_Test/run_test.rb +1 -2
  202. data/test/Param_Test/server.rb +7 -8
  203. data/test/Performance/Simple/Test.idl +0 -1
  204. data/test/Performance/Simple/client.rb +3 -4
  205. data/test/Performance/Simple/run_test.rb +1 -2
  206. data/test/Performance/Simple/server.rb +3 -4
  207. data/test/Policies/Test.idl +0 -1
  208. data/test/Policies/run_test.rb +0 -1
  209. data/test/Policies/test.rb +2 -4
  210. data/test/Timeout/client.rb +6 -7
  211. data/test/Timeout/run_test.rb +1 -2
  212. data/test/Timeout/server.rb +4 -5
  213. data/test/Timeout/test.idl +0 -1
  214. data/test/lib/assert.rb +0 -2
  215. data/test/lib/test.rb +15 -17
  216. data/test/test_runner.rb +6 -8
  217. metadata +21 -48
  218. data/README +0 -62
  219. data/test/BiDirectional/server.ior +0 -1
  220. data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
  221. data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
  222. data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
  223. data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
  224. data/test/DII/server.ior +0 -1
  225. data/test/DSI/server.ior +0 -1
  226. data/test/Exceptions/server.ior +0 -1
  227. data/test/IDL_Test/server.ior +0 -1
  228. data/test/IORMap/server.ior +0 -1
  229. data/test/IORTable/server.ior +0 -1
  230. data/test/Implicit_Conversion/server.ior +0 -1
  231. data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
  232. data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
  233. data/test/Multi_Threading/Simple/server.ior +0 -1
  234. data/test/Multi_Threading/Threads/server.ior +0 -1
  235. data/test/Multi_Threading/Threads/watchdog.ior +0 -1
  236. data/test/Multiple_Servant_Interfaces/server.ior +0 -1
  237. data/test/OBV/AbstractInterface/server.ior +0 -1
  238. data/test/OBV/Custom/server.ior +0 -1
  239. data/test/OBV/Simple/server.ior +0 -1
  240. data/test/OBV/Simple_Event/server.ior +0 -1
  241. data/test/OBV/Supports/server.ior +0 -1
  242. data/test/OBV/Tree/server.ior +0 -1
  243. data/test/OBV/Truncatable/server.ior +0 -1
  244. data/test/OBV/ValueBox/server.ior +0 -1
  245. data/test/Object/server.ior +0 -1
  246. data/test/Param_Test/server.ior +0 -1
  247. data/test/Performance/Simple/server.ior +0 -1
  248. 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)
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.exists?(File.join('bin', bin))
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} --stdidl orb.idl")
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 --stdidl" <<
46
+ cmd << " --ignore-pidl --output #{t.name} --namespace=R2CORBA --include=#{stdidl_root}" <<
47
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 --stdidl --stubs-only --expand-includes --search-includepath --no-libinit #{pidl}"
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 --stdidl --stubs-only --expand-includes -I#{tao_root}" <<
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} --stdidl --expand-includes --search-includepath CosNaming.idl"
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')
@@ -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'
@@ -213,11 +212,10 @@ module R2CORBA
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', *io_args) do |ln|
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', *io_args) do |ln|
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.exists?('/etc/SuSE-release')
234
+ elsif File.exist?('/etc/SuSE-release')
237
235
  name = 'suse'
238
- elsif File.exists?('/etc/debian_version')
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.exists?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')))
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'),
@@ -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 extentions [#{get_config(:sodir)}]") {|v| CONFIG[:sodir] = v}
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 extentions [#{get_config(:makeprog)}]") {|v| CONFIG[:makeprog] = v}
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',
@@ -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
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(get_config('aceroot'),'MPC')) || File.directory?(File.join('ACE','MPC')))
472
- set_config('mpcroot', File.directory?(File.join(get_config('aceroot'),'MPC')) ? File.expand_path(File.join(get_config('aceroot'),'MPC')) : File.expand_path(File.join('ACE','MPC')))
469
+ if get_config('mpcroot').empty? && (File.directory?(File.join(get_config('aceroot'), 'MPC')) || File.directory?(File.join('ACE', 'MPC')))
470
+ set_config('mpcroot', File.directory?(File.join(get_config('aceroot'), 'MPC')) ? File.expand_path(File.join(get_config('aceroot'), 'MPC')) : File.expand_path(File.join('ACE', 'MPC')))
473
471
  end
474
472
 
475
473
  set_config('aceinstdir', get_config('sodir')) if get_config('aceinstdir').empty?
@@ -516,7 +514,7 @@ module R2CORBA
516
514
  end
517
515
 
518
516
  # check availability of RIDL; either as gem or in subdir
519
- unless File.exists?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')) || (`gem search -i -q ridl`.strip) == 'true'
517
+ unless File.exist?(File.join('ridl', 'lib', 'ridl', 'ridl.rb')) || (`gem search -i -q ridl`.strip) == 'true'
520
518
  raise "Missing RIDL installation. R2CORBA requires RIDL installed either as gem or in subdirectory ridl."
521
519
  end
522
520
  end
@@ -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)
@@ -50,7 +49,7 @@ else # !JRUBY_VERSION
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.exists?('GNUmakefile')
78
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
80
79
  ensure
81
80
  Dir.chdir cur_dir
82
81
  end
@@ -105,7 +104,7 @@ else # !JRUBY_VERSION
105
104
  cur_dir = Dir.getwd
106
105
  Dir.chdir File.join('ext', 'extload')
107
106
  begin
108
- sh("perl #{_mwc} -type gnuace")
107
+ sh("perl #{_mwc} -type gnuace -workers #{R2CORBA::Config.cpu_cores}")
109
108
  ensure
110
109
  Dir.chdir cur_dir
111
110
  end
@@ -120,6 +119,8 @@ else # !JRUBY_VERSION
120
119
  cur_dir = Dir.getwd
121
120
  Dir.chdir File.join('ext', 'extload')
122
121
  begin
122
+ # check availability of make program
123
+ raise "#{get_config('makeprog')} missing! A working version of #{get_config('makeprog')} in the PATH is required." unless system("#{get_config('makeprog')}")
123
124
  sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
124
125
  ensure
125
126
  Dir.chdir cur_dir
@@ -130,7 +131,7 @@ else # !JRUBY_VERSION
130
131
  cur_dir = Dir.getwd
131
132
  Dir.chdir File.join('ext', 'extload')
132
133
  begin
133
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
134
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
134
135
  ensure
135
136
  Dir.chdir cur_dir
136
137
  end
@@ -188,7 +189,7 @@ else # !JRUBY_VERSION
188
189
  cur_dir = Dir.getwd
189
190
  Dir.chdir File.expand_path(get_config('aceroot'))
190
191
  begin
191
- sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc")
192
+ sh("perl bin/mwc.pl -type gnuautobuild TAO4Ruby.mwc -workers #{R2CORBA::Config.cpu_cores}")
192
193
  ensure
193
194
  Dir.chdir cur_dir
194
195
  end
@@ -206,11 +207,7 @@ else # !JRUBY_VERSION
206
207
  cur_dir = Dir.getwd
207
208
  Dir.chdir File.expand_path(get_config('aceroot'))
208
209
  begin
209
- if R2CORBA::Config.is_linux && R2CORBA::Config::linux_distro != :ubuntu && R2CORBA::Config.cpu_cores > 2
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
210
+ sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores} #{get_config('with-debug') ? ' debug=1' : ''}")
214
211
  ensure
215
212
  Dir.chdir cur_dir
216
213
  end
@@ -224,11 +221,14 @@ else # !JRUBY_VERSION
224
221
  task :clobber_tao do
225
222
  # clean ACE+TAO
226
223
  cur_dir = Dir.getwd
227
- Dir.chdir File.expand_path(get_config('aceroot'))
228
- begin
229
- sh("#{get_config('makeprog')} realclean") if File.exists?('GNUmakefile')
230
- ensure
231
- Dir.chdir cur_dir
224
+ ace_root = File.expand_path(get_config('aceroot'))
225
+ if File.exist?(ace_root)
226
+ Dir.chdir ace_root
227
+ begin
228
+ sh("#{get_config('makeprog')} realclean") if File.exist?('GNUmakefile')
229
+ ensure
230
+ Dir.chdir cur_dir
231
+ end
232
232
  end
233
233
  end
234
234
  end
data/rakelib/ext.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')
@@ -17,7 +16,7 @@ require File.join(File.dirname(__FILE__), 'ext_r2tao.rb')
17
16
  module R2CORBA
18
17
 
19
18
  module Ext
20
- ACE_FILES = [
19
+ ACE_FILES = [
21
20
  'ACE',
22
21
  'TAO',
23
22
  'TAO_TypeCodeFactory',
@@ -58,7 +57,7 @@ module R2CORBA
58
57
  sysdlls = []
59
58
  except_dll = R2CORBA::Config.is_win64 ? 'libgcc_s_seh-1.dll' : 'libgcc_s_dw2-1.dll'
60
59
  ENV['PATH'].split(';').each do |p|
61
- if File.exists?(File.join(p, except_dll)) && File.exists?(File.join(p, 'libstdc++-6.dll'))
60
+ if File.exist?(File.join(p, except_dll)) && File.exist?(File.join(p, 'libstdc++-6.dll'))
62
61
  sysdlls << File.join(p, except_dll)
63
62
  sysdlls << File.join(p, 'libstdc++-6.dll')
64
63
  break
@@ -83,35 +82,6 @@ module R2CORBA
83
82
  ACE_FILES.collect { |fn| File.join(libdir, "lib#{fn}#{so_ext_}") }
84
83
  end
85
84
 
86
- @@osx_name = nil
87
- if RUBY_PLATFORM =~ /darwin/
88
- osx_ver_major, osx_ver_minor = (`uname -r`).strip.split('.')[0,2].collect {|n| n.to_i }
89
- if osx_ver_major == 10
90
- @@osx_name = case osx_ver_minor
91
- when 3
92
- 'panther'
93
- when 4
94
- 'tiger'
95
- when 5
96
- 'leopard'
97
- when 6
98
- 'snowleopard'
99
- when 7
100
- 'lion'
101
- when 8
102
- 'mountainlion'
103
- when 9
104
- 'mavericks'
105
- when 10
106
- 'yosemite'
107
- end
108
- end
109
- platform_error unless @@osx_name
110
- end
111
- def self.osx_name
112
- @@osx_name
113
- end
114
-
115
85
  def self.ace_config
116
86
  case RUBY_PLATFORM
117
87
  when /mingw32/
@@ -121,7 +91,6 @@ module R2CORBA
121
91
  }
122
92
  when /linux/
123
93
  %Q{
124
- #define ACE_HAS_GETIFADDRS
125
94
  #include "ace/config-linux.h"
126
95
  }
127
96
  when /sparc-solaris/
@@ -132,8 +101,7 @@ module R2CORBA
132
101
  }
133
102
  when /darwin/
134
103
  %Q{
135
- #define ACE_HAS_GETIFADDRS
136
- #include "ace/config-macosx-#{osx_name}.h"
104
+ #include "ace/config-macosx.h"
137
105
  }
138
106
  else
139
107
  platform_error
@@ -154,19 +122,15 @@ debug=#{get_config('with-debug') ? 1 : 0}
154
122
  fl_reactor=0
155
123
  tk_reactor=0
156
124
  boost=0
157
- no_strict_aliasing=1
125
+ inline=0
158
126
  include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
159
127
  }
160
128
  when /linux/
161
129
  %Q{
162
130
  versioned_so=1
163
- threads=1
164
131
  ssl=#{get_config('with-ssl') ? 1 : 0}
165
132
  optimize=1
166
133
  debug=#{get_config('with-debug') ? 1 : 0}
167
- fl_reactor=0
168
- tk_reactor=0
169
- boost=0
170
134
  include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
171
135
  LDFLAGS += -Wl,-rpath,#{get_config('aceinstdir')}
172
136
  }
@@ -180,7 +144,7 @@ debug=#{get_config('with-debug') ? 1 : 0}
180
144
  fl_reactor=0
181
145
  tk_reactor=0
182
146
  no_hidden_visibility=1
183
- #{ /^cc/i =~ RB_CONFIG['CC'] ? 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU' : 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_g++.GNU' }
147
+ #{ /^cc/i =~ RB_CONFIG['CC'] ? 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU' : 'include $(ACE_ROOT)/include/makeinclude/platform_sunos5_g++.GNU' }
184
148
  LDFLAGS += #{RB_CONFIG['SOLIBS']} #{ /^cc/i =~ RB_CONFIG['CC'] ? '-lCrun -lCstd' : ''}
185
149
  }
186
150
  when /darwin/
@@ -192,7 +156,7 @@ debug=#{get_config('with-debug') ? 1 : 0}
192
156
  fl_reactor=0
193
157
  tk_reactor=0
194
158
  boost=0
195
- include $(ACE_ROOT)/include/makeinclude/platform_macosx_#{osx_name}.GNU
159
+ include $(ACE_ROOT)/include/makeinclude/platform_macosx.GNU
196
160
  LDFLAGS += -Wl,-headerpad_max_install_names
197
161
  FLAGS_C_CC += #{RB_CONFIG['ARCH_FLAG']}
198
162
  LDFLAGS += #{RB_CONFIG['ARCH_FLAG']}
@@ -210,7 +174,7 @@ workspace {
210
174
  $(TAO_ROOT)/TAO_IDL
211
175
  $(TAO_ROOT)/tao
212
176
  #{get_config('with-ssl') ? '$(TAO_ROOT)/orbsvcs/orbsvcs/Security.mpc' : ''}
213
- #{get_config('with-ssl') ? '$(TAO_ROOT)/orbsvcs/orbsvcs/SSLIOP.mpc' : ''}
177
+ #{get_config('with-ssl') ? '$(TAO_ROOT)/orbsvcs/orbsvcs/SSLIOP.mpc' : ''}
214
178
  exclude {
215
179
  bin
216
180
  docs
@@ -237,8 +201,6 @@ workspace {
237
201
 
238
202
  def self.default_features
239
203
  %Q{
240
- fl_reactor=0
241
- tk_reactor=1
242
204
  qos=0
243
205
  ssl=#{get_config('with-ssl') ? 1 : 0}
244
206
  ipv6=#{get_config('with-ipv6') ? 1 : 0}
@@ -246,23 +208,23 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
246
208
  end
247
209
 
248
210
  def self.ace_config_path
249
- File.join(get_config('aceroot'),'ace','config.h')
211
+ File.join(get_config('aceroot'), 'ace', 'config.h')
250
212
  end
251
213
 
252
214
  def self.platform_macros_path
253
- File.join(get_config('aceroot'),'include','makeinclude','platform_macros.GNU')
215
+ File.join(get_config('aceroot'), 'include', 'makeinclude', 'platform_macros.GNU')
254
216
  end
255
217
 
256
218
  def self.default_features_path
257
- File.join(get_config('aceroot'),'bin','MakeProjectCreator','config','default.features')
219
+ File.join(get_config('aceroot'), 'bin', 'MakeProjectCreator', 'config', 'default.features')
258
220
  end
259
221
 
260
222
  def self.tao_mwc_path
261
- File.join(get_config('aceroot'),'TAO4Ruby.mwc')
223
+ File.join(get_config('aceroot'), 'TAO4Ruby.mwc')
262
224
  end
263
225
 
264
226
  def self.tao_makefile
265
- File.join(get_config('aceroot'),'GNUmakefile')
227
+ File.join(get_config('aceroot'), 'GNUmakefile')
266
228
  end
267
229
 
268
230
  def self.ext_makefile
@@ -277,12 +239,12 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
277
239
  so_ext = '.dylib'
278
240
 
279
241
  inst_extlibs = Dir.glob(File.join('ext', '*.bundle'))
280
- inst_dylibs = inst_extlibs + ACE_FILES.collect {|dep| File.join(get_config('aceroot'),'lib', 'lib'+dep+so_ext)}
242
+ inst_dylibs = inst_extlibs + ACE_FILES.collect {|dep| File.join(get_config('aceroot'), 'lib', 'lib' + dep + so_ext)}
281
243
  # cross dependencies of ext dynamic libs on each other
282
244
  # make sure they refer to *.bundle NOT *.dylib
283
245
  inst_extlibs.each do |extlib|
284
246
  inst_extlibs.each do |dep|
285
- dep_org = File.basename(dep, '.bundle')+so_ext
247
+ dep_org = File.basename(dep, '.bundle') + so_ext
286
248
  sh("install_name_tool -change #{dep_org} @rpath/#{File.basename(dep)} #{extlib}")
287
249
  end
288
250
  # add install directory as rpath; first delete rpath ignoring errors, next add the rpath
@@ -292,7 +254,7 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
292
254
  # dependencies on ACE+TAO libs
293
255
  inst_dylibs.each do |dylib|
294
256
  ACE_FILES.each do |dep|
295
- command("install_name_tool -change lib#{dep+so_ext} @rpath/lib#{dep+so_ext} #{dylib}")
257
+ command("install_name_tool -change lib#{dep + so_ext} @rpath/lib#{dep + so_ext} #{dylib}")
296
258
  end
297
259
  # add current dir and install dir as rpath entries; first delete rpath ignoring errors, next add the rpath
298
260
  sh("install_name_tool -delete_rpath . #{dylib} >/dev/null 2>&1")
@@ -303,8 +265,8 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
303
265
  elsif !is_win32
304
266
  # create unversioned ACE+TAO lib symlinks
305
267
 
306
- ACE_FILES.collect {|dep| File.join(get_config('aceroot'),'lib', 'lib'+dep+'.so')}.each do |lib|
307
- Dir.glob(lib+'.*').each {|verlib| File.symlink(verlib, lib) unless File.exists?(lib)}
268
+ ACE_FILES.collect {|dep| File.join(get_config('aceroot'), 'lib', 'lib' + dep + '.so')}.each do |lib|
269
+ Dir.glob(lib + '.*').each {|verlib| File.symlink(verlib, lib) unless File.exist?(lib)}
308
270
  end
309
271
  end
310
272
  end
@@ -313,4 +275,3 @@ ipv6=#{get_config('with-ipv6') ? 1 : 0}
313
275
  end # Ext
314
276
 
315
277
  end # R2CORBA
316
-