From 8eebd71fcc860b71d1913bd2a66236b09fed0498 Mon Sep 17 00:00:00 2001 From: tricksterguy Date: Thu, 23 Dec 2010 23:23:27 +0000 Subject: [PATCH] New extconf.rb for the graphics module git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1763 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/extconf.rb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/bindings/ruby/sfml-graphics/extconf.rb b/bindings/ruby/sfml-graphics/extconf.rb index ba1b9d81..165a3075 100644 --- a/bindings/ruby/sfml-graphics/extconf.rb +++ b/bindings/ruby/sfml-graphics/extconf.rb @@ -20,8 +20,23 @@ # source distribution. require 'mkmf' +require 'rbconfig' + +on_windows = Config::CONFIG['host_os'] =~ /mswin|mingw/ + dir_config("graphics") -have_library("sfml-graphics-s") +if (on_windows) + have_library("winmm") + have_library("jpeg") + have_library("gdi32") + have_library("opengl32") + have_library("glew") + have_library("sfml-system-s") + have_library("sfml-window-s") + have_library("sfml-graphics-s") +else + have_library("sfml-graphics-s") +end find_header("main.hpp", "../sfml-system/system") create_makefile("sfml/graphics", "graphics")