diff options
author | James Tucker <jftucker@gmail.com> | 2023-03-06 16:52:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 09:52:53 +0900 |
commit | f845901f79681ddee8d387c20212585dee494990 (patch) | |
tree | 4a66f3617bc52c3c8f98fa07a3096793dc567e28 /README.md | |
parent | 08cffbc440566b56ab8110f85b10129b3212dcb3 (diff) | |
download | rake-compiler-f845901f79681ddee8d387c20212585dee494990.tar.gz |
baseextensiontask: provide an API to allow for dynamic sources (#211)
If a build wishes to generate some of the extension source files then
the pattern input is insufficient. Provide a place to stash an
additional FileList that will then become a dependency of the compile
tasks.
Example:
```ruby
file 'ext/libfoo/generated.c' do |t|
open(t.name, 'w+) { |f| f << '#include <foo.h>' }
end
Rake::ExtensionTask.new('foo') do |ext|
ext.extra_sources << 'generated.c'
end
```
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions