From f7eed2076cf322c290b0883ecd6670d2622ed677 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 17 Jun 2014 23:08:50 -0400 Subject: [PATCH] update Rakefile to use rscons-1.5.0 features --- Rakefile.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Rakefile.rb b/Rakefile.rb index 815fb4c..0a762a0 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -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