[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[patch] Making Ruby Windows bindings sqlite aware

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-03-23 21:17:56 CET

Hi

This patch makes it so that the sqlite and bdb dlls don't have to be on the
path before starting the ruby bindings tests.

--
Joe
[[[
* subversion/bindings/swig/ruby/test/windows_util.rb
 Renamed (add_apr_dll_path_to_dll_wrapper_util) to
 (add_deps_dll_paths_to_dll_wrapper_util) to better reflect what
 it is actually doing, now that it also adds bdb and sqlite directories
 to the path.
]]]
Index: subversion/bindings/swig/ruby/test/windows_util.rb
===================================================================
--- subversion/bindings/swig/ruby/test/windows_util.rb  (revision 24060)
+++ subversion/bindings/swig/ruby/test/windows_util.rb  (working copy)
@@ -124,7 +124,7 @@
         build_conf = File.join(top_dir, "build.conf")
         File.open(File.join(ext_dir, "#{util_name}.rb" ), 'w') do |util|
           setup_dll_wrapper_util(dll_dir, util)
-          add_apr_dll_path_to_dll_wrapper_util(top_dir, build_type, util)
+          add_deps_dll_paths_to_dll_wrapper_util(top_dir, build_type, util)
           add_svn_dll_path_to_dll_wrapper_util(build_conf,
subversion_dir, util)
           setup_dll_wrappers(build_conf, ext_dir, dll_dir, util_name) do |lib|
             svn_lib_dir = File.join(subversion_dir, "libsvn_#{lib}")
@@ -154,7 +154,7 @@
 EOC
       end
-      def add_apr_dll_path_to_dll_wrapper_util(top_dir, build_type, util)
+      def add_deps_dll_paths_to_dll_wrapper_util(top_dir, build_type, util)
         lines = []
         gen_make_opts = File.join(top_dir, "gen-make.opts")
         lines = File.read(gen_make_opts).to_a if File.exists?(gen_make_opts)
@@ -169,6 +169,15 @@
           dll_dir = File.expand_path(File.join(top_dir, lib_dir, build_type))
           util.puts("add_path.call(#{dll_dir.dump})")
         end
+
+        lib_dir = config["--with-berkeley-db"]
+        dll_dir = File.expand_path(File.join(top_dir, lib_dir, 'bin'))
+        util.puts("add_path.call(#{dll_dir.dump})")
+
+        lib_dir = config["--with-sqlite"]
+        dll_dir = File.expand_path(File.join(top_dir, lib_dir))
+        util.puts("add_path.call(#{dll_dir.dump})")
+
       end
       def add_svn_dll_path_to_dll_wrapper_util(build_conf,
subversion_dir, util)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 23 21:18:08 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.