-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
113 lines (103 loc) · 1.73 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
require 'fileutils'
K9WD = File.expand_path(__dir__)
desc 'run contributed samples'
task default: [:all]
desc 'run all autorun samples except hype'
task :all do
Rake::Task[:contributed].execute
Rake::Task[:vecmath].execute
Rake::Task[:shaders].execute
Rake::Task[:slider].execute
end
desc 'run contributed samples'
task :contributed do
FileUtils.cd(File.join(K9WD, 'contributed'))
system 'rake'
end
desc 'run vecmath samples'
task :vecmath do
%w[vec2d vec3d arcball].each do |folder|
FileUtils.cd(
File.join(
K9WD,
'processing_app',
'library',
'vecmath',
folder
)
)
system 'rake'
end
end
desc 'run shader samples'
task :shaders do
FileUtils.cd(
File.join(
K9WD,
'processing_app',
'topics',
'shaders'
)
)
system 'rake'
end
desc 'run Hype Processing samples'
task :hype do
FileUtils.cd(
File.join(
K9WD,
'external_library',
'java',
'hype'
)
)
system 'rake'
end
desc 'run WordCram samples'
task :wordcram do
FileUtils.cd(
File.join(
K9WD,
'external_library',
'gem',
'ruby_wordcram'
)
)
system 'rake'
end
desc 'hemesh'
task :hemesh do
FileUtils.cd(
File.join(
K9WD,
'external_library',
'java',
'hemesh'
)
)
system 'rake'
end
desc 'pbox2d'
task :pbox2d do
FileUtils.cd(
File.join(
K9WD,
'external_library',
'gem',
'pbox2d'
)
)
system 'rake'
%w[revolute_joint test_contact mouse_joint distance_joint].each do |folder|
FileUtils.cd(
File.join(
K9WD,
'external_library',
'gem',
'pbox2d',
folder
)
)
system "k9 -r #{folder}.rb"
end
end