forked from banister/devil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
58 lines (44 loc) · 1.69 KB
/
Rakefile
File metadata and controls
58 lines (44 loc) · 1.69 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require 'rake/clean'
require 'rubygems/package_task'
require 'rake/testtask'
require 'rake/extensiontask'
require 'rdoc/task'
# get the devil version
require './lib/devil/version'
dlext = RbConfig::CONFIG['DLEXT']
CLEAN.include("ext/**/*.#{dlext}", "ext/**/.log", "ext/**/.o", "ext/**/*~", "ext/**/*#*", "ext/**/.obj", "ext/**/.def", "ext/**/.pdb")
CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o", "doc/**")
spec = Gem::Specification.new do |s|
s.name = "devil"
s.summary = "Ruby bindings for DevIL cross platform image loading library"
s.description = s.summary
s.version = Devil::VERSION
s.author = "Jaroslaw Tworek, John Mair (banisterfiend)"
s.email = 'jrmair@gmail.com'
s.date = Time.now.strftime '%Y-%m-%d'
s.homepage = "http://banisterfiend.wordpress.com"
# s.platform = 'i386-mswin32'
s.platform = Gem::Platform::RUBY
s.extensions = FileList["ext/**/extconf.rb"]
s.has_rdoc = 'yard'
s.extra_rdoc_files = ["README"]
s.rdoc_options << '--main' << 'README'
s.files = ["Rakefile", "README", "CHANGELOG", "LICENSE", "lib/devil.rb", "lib/devil/gosu.rb", "lib/devil/version.rb"] +
FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c", "test/test*.rb", "test/*.png", "test/*.jpg"].to_a
#s.files += ["lib/1.8/devil.so", "lib/1.9/devil.so"]
end
Gem::PackageTask.new(spec) do |pkg|
pkg.need_zip = false
pkg.need_tar = false
end
task :compile => :clean
Rake::TestTask.new do |t|
t.libs << "lib"
t.test_files = FileList['test/test*.rb']
t.verbose = true
end
Rake::ExtensionTask.new('devil', spec)
Rake::RDocTask.new do |rd|
rd.main = "README"
rd.rdoc_files.include("README", "lib/devil.rb", "lib/devil/gosu.rb", "lib/devil/version.rb")
end