Method: Rscons::Builders::SharedLibrary#run
- Defined in:
- lib/rscons/builders/shared_library.rb
#run(options) ⇒ String, false
Run the builder to produce a build target.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/rscons/builders/shared_library.rb', line 81 def run() target, sources, cache, env, vars, objects = .values_at(:target, :sources, :cache, :env, :vars, :setup_info) ld = env.("${SHLD}", vars) ld = if ld != "" ld elsif sources.find {|s| s.end_with?(*env.("${DSUFFIX}", vars))} "${SHDC}" elsif sources.find {|s| s.end_with?(*env.("${CXXSUFFIX}", vars))} "${SHCXX}" else "${SHCC}" end vars = vars.merge({ '_TARGET' => target, '_SOURCES' => objects, 'SHLD' => ld, }) [:sources] = objects command = env.build_command("${SHLDCMD}", vars) standard_threaded_build("SHLD #{target}", target, command, objects, env, cache) end |