dos2unix Rakefile.rb
This commit is contained in:
parent
f1b72d959e
commit
9ac87315fa
40
Rakefile.rb
40
Rakefile.rb
@ -1,20 +1,20 @@
|
|||||||
require "rscons"
|
require "rscons"
|
||||||
|
|
||||||
task :default do
|
task :default do
|
||||||
Rscons::Environment.new do |env|
|
Rscons::Environment.new do |env|
|
||||||
if RUBY_PLATFORM =~ /cygwin/
|
if RUBY_PLATFORM =~ /cygwin/
|
||||||
env["CC"] = "i686-pc-mingw32-gcc"
|
env["CC"] = "i686-pc-mingw32-gcc"
|
||||||
env["CPPPATH"] += [
|
env["CPPPATH"] += [
|
||||||
"C:/Ruby193/include/ruby-1.9.1",
|
"C:/Ruby193/include/ruby-1.9.1",
|
||||||
"C:/Ruby193/include/ruby-1.9.1/i386-mingw32",
|
"C:/Ruby193/include/ruby-1.9.1/i386-mingw32",
|
||||||
]
|
]
|
||||||
env["LIBS"] += ["msvcrt-ruby191"]
|
env["LIBS"] += ["msvcrt-ruby191"]
|
||||||
env["LDFLAGS"] += ["-LC:/Ruby193/lib"]
|
env["LDFLAGS"] += ["-LC:/Ruby193/lib"]
|
||||||
else
|
else
|
||||||
env.parse_flags!("!pkg-config --cflags --libs ruby-1.9")
|
env.parse_flags!("!pkg-config --cflags --libs ruby-1.9")
|
||||||
end
|
end
|
||||||
env["CFLAGS"] += ["-Wall"]
|
env["CFLAGS"] += ["-Wall"]
|
||||||
sources = Dir["*.c"]
|
sources = Dir["*.c"]
|
||||||
env.Program("main", sources)
|
env.Program("main", sources)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user