summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile8
-rw-r--r--lib/mruby/build.rb6
2 files changed, 8 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index dd14c8b02..2f6fa056f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,10 +5,12 @@ MRUBY_ROOT = File.dirname(File.expand_path(__FILE__))
MRUBY_BUILD_HOST_IS_CYGWIN = RUBY_PLATFORM.include?('cygwin')
MRUBY_BUILD_HOST_IS_OPENBSD = RUBY_PLATFORM.include?('openbsd')
+$LOAD_PATH << File.join(MRUBY_ROOT, "lib")
+
# load build systems
-load "#{MRUBY_ROOT}/tasks/ruby_ext.rake"
-load "#{MRUBY_ROOT}/tasks/mruby_build.rake"
-load "#{MRUBY_ROOT}/tasks/mrbgem_spec.rake"
+require "mruby-core-ext"
+require "mruby/build"
+require "mruby/gem"
# load configuration file
MRUBY_CONFIG = (ENV['MRUBY_CONFIG'] && ENV['MRUBY_CONFIG'] != '') ? ENV['MRUBY_CONFIG'] : "#{MRUBY_ROOT}/build_config.rb"
diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb
index f5d4374d1..7d6aa49e1 100644
--- a/lib/mruby/build.rb
+++ b/lib/mruby/build.rb
@@ -1,5 +1,5 @@
-load "#{MRUBY_ROOT}/tasks/mruby_build_gem.rake"
-load "#{MRUBY_ROOT}/tasks/mruby_build_commands.rake"
+require "mruby/build/load_gems"
+require "mruby/build/command"
module MRuby
class << self
@@ -241,7 +241,7 @@ EOS
else
compiler.defines += %w(DISABLE_GEMS)
end
- compiler.define_rules build_dir, File.expand_path(File.join(File.dirname(__FILE__), '..'))
+ compiler.define_rules build_dir, File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
end
end