update Rakefile to use rscons-1.5.0 features

This commit is contained in:
Josh Holtrop 2014-06-17 23:08:50 -04:00
parent 34b453b7dd
commit f7eed2076c

View File

@ -22,10 +22,14 @@ end
task :gui => :library do
base_env.clone(clone: :all) do |env|
env["CFLAGS"] += `sdl2-config --cflags`.split(" ") + `freetype-config --cflags`.split(" ")
env["CXXFLAGS"] += `sdl2-config --cflags`.split(" ") + `freetype-config --cflags`.split(" ")
env["LDCMD"] += `sdl2-config --libs`.split(" ") + `freetype-config --libs`.split(" ")
env["LIBS"] += ["dl", "GL"]
env.parse_flags!("!sdl2-config --cflags --libs")
env.parse_flags!("!freetype-config --cflags --libs")
env["LIBS"] += ["dl"]
if RUBY_PLATFORM =~ /mingw/
env["LIBS"] += ["opengl32"]
else
env["LIBS"] += ["GL"]
end
env.Program("^/jes", Dir["src/gui/**/*.{cc,c}"])
end
end