diff options
Diffstat (limited to 'tasks/ffi.rake')
-rw-r--r-- | tasks/ffi.rake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tasks/ffi.rake b/tasks/ffi.rake new file mode 100644 index 0000000..7ab3ffb --- /dev/null +++ b/tasks/ffi.rake @@ -0,0 +1,22 @@ +# -*- coding: UTF-8 -*- +# +namespace :ffi do + # + desc "extract api out of enlightenment headers, then generate bindings" + task :run => [ :api, :ruby ] + # + desc "extract api out of enlightenment headers" + task :api do + sh './tools/extract-api.sh' + end + # + desc "generate ffi bindings" + task :ruby do + sh 'ruby ./tools/genruby.rb' + end +end +# +desc 'Alias to ffi:run' +task :ffi => 'ffi:run' +# +# EOF |