rakelib/build.rb in wxruby3-1.0.1 vs rakelib/build.rb in wxruby3-1.1.0
- old
+ new
@@ -53,11 +53,21 @@
# The main source module - which needs to initialize all the other modules in the package
file pkg.initializer_src => (pkg.all_swig_files + (pkg.parent ? [pkg.parent.initializer_src] : [])) do |t|
pkg.generate_initializer
end
- # Target to run the linker to create a final .so/.dll wxruby3 package library
- file pkg.lib_target => [*pkg.all_obj_files, *pkg.dep_libs] do | t |
+ # only for MacOSX
+ file pkg.initializer_loader_src => pkg.initializer_src do
+ pkg.generate_initializer_loader
+ end
+
+ # Target to run the linker to create a final wxruby package shared library (MacOSX only)
+ file pkg.shlib_target => [*pkg.all_obj_files, *pkg.dep_libs] do |t|
+ WXRuby3.config.do_shlib_link(pkg)
+ end
+
+ # Target to run the linker to create a final .so/.dll/.bundle wxruby3 package library
+ file pkg.lib_target => pkg.lib_target_deps do | t |
WXRuby3.config.do_link(pkg)
end
task :swig => ['config:bootstrap', :build_report, :enum_list, WXRuby3.config.classes_path, *pkg.all_cpp_files]