-
Notifications
You must be signed in to change notification settings - Fork 15
/
Rakefile
46 lines (40 loc) · 958 Bytes
/
Rakefile
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
36
37
38
39
40
41
42
43
44
45
46
require './tools/build/build'
require 'fileutils'
include FileUtils
namespace :gen do
desc 'Generate code from the contract'
task :contract do
sh 'typhen'
end
desc 'Generate light map JSON files'
task :lightmap do
cd 'tools/lightmap' do
sh 'go build && ./lightmap 20 80'
end
end
desc 'Generate all configuration files'
task :configs do
Build::ClientBuilder.generate_config
Build::ServerBuilder.generate_all_configs
end
end
namespace :build do
namespace :client do
desc 'Build the client for iOS'
task :ios do
Build::ClientBuilder.build(:ios)
end
desc 'Build the client for Android'
task :android do
Build::ClientBuilder.build(:android)
end
end
namespace :server do
Build::ServerBuilder::TARGETS.each do |target|
desc "Bulid a docker image of the #{target} server"
task target do
Build::ServerBuilder.build(target)
end
end
end
end