mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
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:
parent
d99ee43b67
commit
8eebd71fcc
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user