|
1 | 1 | # -*- encoding: utf-8 -*- |
2 | 2 |
|
3 | | -root = File.expand_path(__dir__) |
| 3 | +K9WD = File.expand_path(__dir__) |
4 | 4 |
|
5 | | -desc 'run contributed samples' |
| 5 | +desc 'run contributed samples' |
6 | 6 | task :default => [:all] |
7 | 7 |
|
8 | 8 | desc 'run all autorun samples except hype' |
9 | 9 | task :all do |
10 | 10 | Rake::Task[:contributed].execute |
11 | | - Rake::Task[:vecmath].execute |
| 11 | + Rake::Task[:vecmath].execute |
12 | 12 | Rake::Task[:shaders].execute |
13 | 13 | Rake::Task[:slider].execute |
14 | 14 | end |
15 | 15 |
|
16 | 16 | desc 'run contributed samples' |
17 | 17 | task :contributed do |
18 | | - sh "cd #{root}/contributed && rake" |
| 18 | + sh "cd #{K9WD}/contributed && rake" |
19 | 19 | end |
20 | 20 |
|
21 | 21 | desc 'shaders' |
22 | 22 | task :shaders do |
23 | | - sh "cd #{root}/processing_app/topics/shaders && rake" |
| 23 | + sh "cd #{K9WD}/processing_app/topics/shaders && rake" |
24 | 24 | end |
25 | 25 |
|
26 | 26 | desc 'vecmath' |
27 | 27 | task :vecmath do |
28 | | - sh "cd #{root}/processing_app/library/vecmath/vec2d && rake" |
29 | | - sh "cd #{root}/processing_app/library/vecmath/vec3d && rake" |
30 | | - sh "cd #{root}/processing_app/library/vecmath/arcball && rake" |
| 28 | + sh "cd #{K9WD}/processing_app/library/vecmath/vec2d && rake" |
| 29 | + sh "cd #{K9WD}/processing_app/library/vecmath/vec3d && rake" |
| 30 | + sh "cd #{K9WD}/processing_app/library/vecmath/arcball && rake" |
31 | 31 | end |
32 | 32 |
|
33 | 33 | desc 'hype' |
34 | 34 | task :hype do |
35 | | - sh "cd #{root}/external_library/java/hype && rake" |
| 35 | + sh "cd #{K9WD}/external_library/java/hype && rake" |
36 | 36 | end |
37 | 37 |
|
38 | 38 | desc 'slider' |
39 | 39 | task :slider do |
40 | | - sh "cd #{root}/processing_app/library/slider && rake" |
| 40 | + sh "cd #{K9WD}/processing_app/library/slider && rake" |
| 41 | +end |
| 42 | + |
| 43 | +desc 'hemesh' |
| 44 | +task :hemesh do |
| 45 | + sh "cd #{K9WD}/external_library/java/hemesh && rake" |
| 46 | +end |
| 47 | + |
| 48 | +desc 'pbox2d' |
| 49 | +task :pbox2d do |
| 50 | + sh "cd #{K9WD}/external_library/gem/pbox2d && rake" |
| 51 | + sh "cd #{K9WD}/external_library/gem/pbox2d/revolute_joint && k9 -r revolute_joint.rb" |
| 52 | + sh "cd #{K9WD}/external_library/gem/pbox2d/test_contact && k9 -r test_contact.rb" |
| 53 | + sh "cd #{K9WD}/external_library/gem/pbox2d/mouse_joint && k9 -r mouse_joint.rb" |
| 54 | + sh "cd #{K9WD}/external_library/gem/pbox2d/distance_joint && k9 -r distance_joint.rb" |
| 55 | +end |
| 56 | + |
| 57 | +desc 'wordcram' |
| 58 | +task :wordcram do |
| 59 | + sh "cd #{K9WD}/external_library/gem/ruby_wordcram && rake" |
41 | 60 | end |
0 commit comments