"expose_header_files" task split per build

If there are multiple build targets, it should be preferable to have the task processed at each of them.
This commit is contained in:
dearblue
2023-06-18 21:22:31 +09:00
parent 7f85ae2c48
commit fdec32a8f2
+3 -2
View File
@@ -7,12 +7,13 @@ MRuby.each_target do
next unless libmruby_enabled?
copy_headers_task = "expose_header_files:#{self.name}"
file libmruby_static => libmruby_objs.flatten do |t|
Rake::Task["expose_header_files"].invoke
Rake::Task[copy_headers_task].invoke
archiver.run t.name, t.prerequisites
end
task "expose_header_files" do |t|
task copy_headers_task do |t|
# Since header files may be generated dynamically and it is hard to know all of them,
# the task is executed depending on when libmruby.a is generated.