Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 104 lines (84 sloc) 2.496 kB
cc28068 Rearranged rake setup a lot, making browsing more intuitive (build se…
Ryan Davis authored
1 desc "Build extensions from lib/ext"
2 task :extensions => %w[
3 build:shotgun
4 build:rbc
5
6 extension:digest_rmd160
7 extension:digest_md5
8 extension:digest_sha1
9 extension:digest_sha2
10
11 extension:syck
12 extension:zlib
13 extension:readline
14 ]
15
16 namespace :extension do
17 task :digest_md5 => "lib/ext/digest/md5/md5.#{$dlext}"
18
19 file "lib/ext/digest/md5/md5.#{$dlext}" => FileList[
20 'lib/ext/digest/md5/build.rb',
21 'lib/ext/digest/md5/*.c',
22 'lib/ext/digest/md5/*.h',
23 'lib/ext/digest/defs.h',
24 ] do
25 compile 'lib/ext/digest/md5'
26 end
27
28 task :digest_rmd160 => "lib/ext/digest/rmd160/rmd160.#{$dlext}"
29
30 file "lib/ext/digest/rmd160/rmd160.#{$dlext}" => FileList[
31 'lib/ext/digest/rmd160/build.rb',
32 'lib/ext/digest/rmd160/*.c',
33 'lib/ext/digest/rmd160/*.h',
34 'lib/ext/digest/defs.h',
35 ] do
36 compile 'lib/ext/digest/rmd160'
37 end
38
39 task :digest_sha1 => "lib/ext/digest/sha1/sha1.#{$dlext}"
40
41 file "lib/ext/digest/sha1/sha1.#{$dlext}" => FileList[
42 'lib/ext/digest/sha1/build.rb',
43 'lib/ext/digest/sha1/*.c',
44 'lib/ext/digest/sha1/*.h',
45 'lib/ext/digest/defs.h',
46 ] do
47 compile 'lib/ext/digest/sha1'
48 end
49
50 task :digest_sha2 => "lib/ext/digest/sha2/sha2.#{$dlext}"
51
52 file "lib/ext/digest/sha2/sha2.#{$dlext}" => FileList[
53 'lib/ext/digest/sha2/build.rb',
54 'lib/ext/digest/sha2/*.c',
55 'lib/ext/digest/sha2/*.h',
56 'lib/ext/digest/defs.h',
57 ] do
58 compile 'lib/ext/digest/sha2'
59 end
60
61 task :syck => "lib/ext/syck/rbxext.#{$dlext}"
62
63 file "lib/ext/syck/rbxext.#{$dlext}" => FileList[
64 'shotgun/lib/subtend/ruby.h',
65 'lib/ext/syck/build.rb',
66 'lib/ext/syck/*.c',
67 'lib/ext/syck/*.h',
68 ] do
69 compile "lib/ext/syck"
70 end
71
72 task :mongrel => "lib/ext/mongrel/http11.#{$dlext}"
73
74 file "lib/ext/mongrel/http11.#{$dlext}" => FileList[
75 'shotgun/lib/subtend/ruby.h',
76 'lib/ext/mongrel/build.rb',
77 'lib/ext/mongrel/*.c',
78 'lib/ext/mongrel/*.h',
79 ] do
80 compile "lib/ext/mongrel"
81 end
82
83 task :zlib => %W[lib/ext/zlib/zlib.#{$dlext} lib/zlib.rb]
84
85 file "lib/ext/zlib/zlib.#{$dlext}" => FileList[
86 'shotgun/lib/subtend/ruby.h',
87 'lib/ext/zlib/build.rb',
88 'lib/ext/zlib/*.c'
89 ] do
90 compile "lib/ext/zlib"
91 end
92
93 task :readline => %W[lib/ext/readline/readline.#{$dlext} lib/readline.rb]
94
95 file "lib/ext/readline/readline.#{$dlext}" => FileList[
96 'shotgun/lib/subtend/ruby.h',
97 'lib/ext/readline/build.rb',
98 'lib/ext/readline/*.c'
99 ] do
100 compile "lib/ext/readline"
101 end
102 end
103
Something went wrong with that request. Please try again.