diff options
| author | _Tradam <[email protected]> | 2022-04-04 10:11:52 -0400 |
|---|---|---|
| committer | _Tradam <[email protected]> | 2022-04-04 10:11:52 -0400 |
| commit | 96c340c867471ae11bae12d0dbd4f7308007dbe4 (patch) | |
| tree | 75ff47db2b00fc32a8299ad34a6f57e75876e044 /Rakefile | |
| parent | b34254cba4e8d950b2fc87d2dd2fef83fcf3b002 (diff) | |
| download | FelFlameEngine-96c340c867471ae11bae12d0dbd4f7308007dbe4.tar.gz FelFlameEngine-96c340c867471ae11bae12d0dbd4f7308007dbe4.zip | |
working mruby+gem building
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 45 |
1 files changed, 32 insertions, 13 deletions
@@ -6,21 +6,37 @@ namespace :build do @bytecode_header_path = "../build/temp" desc "Build the engine" task :mruby do - Dir.chdir("mruby") do - Dir.each_child("build/repos") do |repo_dir| - Dir.each_child("build/repos/#{repo_dir}") do |gem_dir| - puts "Checking updates for: #{gem_dir}" - Dir.chdir("build/repos/#{repo_dir}/#{gem_dir}") do - system('git pull') - end - end - end - system('env MRUBY_CONFIG=build_config/felflame_linux.rb rake') - FileUtils.cp("build/web/lib/libmruby.a", "../vendor/lib/web/mruby/") - FileUtils.cp("build/host/lib/libmruby.a", "../vendor/lib/tux/mruby/") + Dir.chdir("core/mruby") do + #Dir.each_child("build/repos") do |repo_dir| + # Dir.each_child("build/repos/#{repo_dir}") do |gem_dir| + # puts "Checking updates for: #{gem_dir}" + # Dir.chdir("build/repos/#{repo_dir}/#{gem_dir}") do + # system('git pull') + # end + # end + #end + system('env MRUBY_CONFIG=../mruby_build.rb rake') + #FileUtils.cp("build/web/lib/libmruby.a", "../../vendor/web/lib/mruby/") + FileUtils.cp("build/host/lib/libmruby.a", "../../vendor/tux/lib/") #FileUtils.cp("build/win/lib/libmruby.a", "../vendor/lib/win/mruby/") end end + + desc "Build Raylib" + task :raylib do + Dir.chdir("core/raylib/src") do + `make clean` + puts 'building...' + `make PLATFORM=PLATFORM_DESKTOP` + puts + puts 'installing, this should prompt you to enter password unless you are already in sudo' + `sudo DESTDIR=#{File.expand_path('../../../vendor/tux')} make install` + `make clean` + #`make PLATFORM=PLATFORM_WEB` + #`sudo DESTDIR=/path/u/want make install` + #`make clean` + end + end #desc 'Export to single file' task :single_file do result = '' @@ -85,10 +101,13 @@ task :p => :playtest namespace :clean do desc "Clean the mruby build folders" task :mruby do - Dir.chdir("mruby") do + Dir.chdir("core/mruby") do system('rake deep_clean') end end + task :raylib do + puts 'Not implemented yet' + end end desc "Create a server and open your game in your browser" |
