Class: Mwc::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Mwc::Tasks
- Defined in:
- lib/mwc/tasks.rb
Overview
:nodoc:
Constant Summary collapse
- SOURCES =
FileList['src/**/*.c']
- BINARIES =
SOURCES.ext('bc')
- LIBRARY_JS =
FileList['src/js/**/*.lib.js']
- PRE_JS =
FileList['src/js/**/*.pre.js']
- POST_JS =
FileList['src/js/**/*.post.js']
Instance Method Summary collapse
-
#initialize ⇒ Tasks
constructor
:nodoc:.
Constructor Details
#initialize ⇒ Tasks
:nodoc:
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/mwc/tasks.rb', line 18 def initialize return unless mruby_directory.join('Rakefile').exist? namespace :mruby do ENV['MRUBY_CONFIG'] = Mwc.root.join('config', 'build.rb').to_s # TODO: Prevent load error breaks command load mruby_directory.join('Rakefile') end compile_binary_task compile_wasm_task end |