lib/ceedling/tasks_release.rake in ceedling-0.25.0 vs lib/ceedling/tasks_release.rake in ceedling-0.27.0
- old
+ new
@@ -17,10 +17,12 @@
core_objects.concat( @ceedling[:release_invoker].setup_and_invoke_c_objects( COLLECTION_ALL_SOURCE ) )
# if assembler use isn't enabled, COLLECTION_ALL_ASSEMBLY is empty array & nothing happens
core_objects.concat( @ceedling[:release_invoker].setup_and_invoke_asm_objects( COLLECTION_ALL_ASSEMBLY ) )
- file( PROJECT_RELEASE_BUILD_TARGET => (core_objects + extra_objects) )
+ # if we're using libraries, we need to add those to our collection as well
+ library_objects = (defined? LIBRARIES_RELEASE && !LIBRARIES_RELEASE.empty?) ? LIBRARIES_RELEASE.flatten.compact : []
+ file( PROJECT_RELEASE_BUILD_TARGET => (core_objects + extra_objects + library_objects) )
Rake::Task[PROJECT_RELEASE_BUILD_TARGET].invoke
ensure
@ceedling[:plugin_manager].post_release
end
end