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
This commit is contained in:
tricksterguy 2010-12-23 23:23:27 +00:00
parent d99ee43b67
commit 8eebd71fcc

View File

@ -20,8 +20,23 @@
# source distribution. # source distribution.
require 'mkmf' require 'mkmf'
require 'rbconfig'
on_windows = Config::CONFIG['host_os'] =~ /mswin|mingw/
dir_config("graphics") 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") find_header("main.hpp", "../sfml-system/system")
create_makefile("sfml/graphics", "graphics") create_makefile("sfml/graphics", "graphics")