-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrakefile
More file actions
35 lines (24 loc) · 1.08 KB
/
rakefile
File metadata and controls
35 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'tempfile'
require 'fileutils'
SUBMODULE_DIR = 'Usagi'
DEFAULT_PLATFORM = 'win'
# TODO: get from the gitlab build artifacts
NINJA_PREFIX = "#{SUBMODULE_DIR}/Tools/bin/"
PROJECT = ENV["project"] || "UsagiTest"
CURRENT_DIR = File.dirname(__FILE__)
require_relative File.join(SUBMODULE_DIR, 'Tools/build/game_common_rake.rb')
BUILDS.each{ |b| directory build_dir(b) }
task :ninja => build_audio + BUILDS.map{|b|build_dir b} do |t|
BUILDS.each do |b|
deps_option = "-f #{protobuf_depfile(true)} -s #{SUBMODULE_DIR}"
usagi_ninja_command_succeeded = false
if File.exists?(SUBMODULE_DIR)
# deps_option = "#{SUBMODULE_DIR}/Engine"
sh "cd #{SUBMODULE_DIR} && rake #{ARGV.clone.reject{ |t| SKIP_USAGI_BUILD.include? t }.join(' ')}" do |finished, status|
$usagi_ninja_command_succeeded = finished
end
end
sh "#{RUBY} #{SUBMODULE_DIR}/Tools/build/deflist.rb #{PROJECT} #{deps_option} > #{protobuf_depfile}"
sh "#{RUBY} Tools/build/usagitest_generator.rb #{b} #{TARGET_PLATFORM} #{REGION} #{PROJECT} #{CURRENT_DIR} #{ninja_file b}"
end
end