diff --git a/bindings/ruby/sfml-all/extconf.rb b/bindings/ruby/sfml-all/extconf.rb new file mode 100644 index 00000000..fe646823 --- /dev/null +++ b/bindings/ruby/sfml-all/extconf.rb @@ -0,0 +1,25 @@ +# rbSFML - Copyright (c) 2010 Henrik Valter Vogelius Hansson - groogy@groogy.se +# This software is provided 'as-is', without any express or +# implied warranty. In no event will the authors be held +# liable for any damages arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute +# it freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; +# you must not claim that you wrote the original software. +# If you use this software in a product, an acknowledgment +# in the product documentation would be appreciated but +# is not required. +# +# 2. Altered source versions must be plainly marked as such, +# and must not be misrepresented as being the original software. +# +# 3. This notice may not be removed or altered from any +# source distribution. + +require 'mkmf' + +dir_config("all") +create_makefile("sfml/all", "all") diff --git a/bindings/ruby/sfml-audio/extconf.rb b/bindings/ruby/sfml-audio/extconf.rb index d54983bb..73175b9a 100644 --- a/bindings/ruby/sfml-audio/extconf.rb +++ b/bindings/ruby/sfml-audio/extconf.rb @@ -22,6 +22,6 @@ require 'mkmf' dir_config("audio") -have_library("sfml-audio") +have_library("sfml-audio-s") find_header("main.hpp", "../sfml-system/system") create_makefile("sfml/audio", "audio") diff --git a/bindings/ruby/sfml-graphics/extconf.rb b/bindings/ruby/sfml-graphics/extconf.rb index b93a5ce2..ba1b9d81 100644 --- a/bindings/ruby/sfml-graphics/extconf.rb +++ b/bindings/ruby/sfml-graphics/extconf.rb @@ -22,6 +22,6 @@ require 'mkmf' dir_config("graphics") -have_library("sfml-graphics") +have_library("sfml-graphics-s") find_header("main.hpp", "../sfml-system/system") create_makefile("sfml/graphics", "graphics") diff --git a/bindings/ruby/sfml-system/extconf.rb b/bindings/ruby/sfml-system/extconf.rb index 16969709..0daf5368 100644 --- a/bindings/ruby/sfml-system/extconf.rb +++ b/bindings/ruby/sfml-system/extconf.rb @@ -22,5 +22,5 @@ require 'mkmf' dir_config("system") -have_library("sfml-system") +have_library("sfml-system-s") create_makefile("sfml/system", "system") diff --git a/bindings/ruby/sfml-system/system/main.hpp b/bindings/ruby/sfml-system/system/main.hpp index 03dd743a..c6a981fb 100644 --- a/bindings/ruby/sfml-system/system/main.hpp +++ b/bindings/ruby/sfml-system/system/main.hpp @@ -25,6 +25,8 @@ #include "ruby.h" +#define SFML_STATIC + VALUE RetrieveSFMLClass( const char * aName ); // Ruby initiation function diff --git a/bindings/ruby/sfml-window/extconf.rb b/bindings/ruby/sfml-window/extconf.rb index 84dfbf84..e4be2ba9 100644 --- a/bindings/ruby/sfml-window/extconf.rb +++ b/bindings/ruby/sfml-window/extconf.rb @@ -22,6 +22,6 @@ require 'mkmf' dir_config("window") -have_library("sfml-window") +have_library("sfml-window-s") find_header("main.hpp", "../sfml-system/system") create_makefile("sfml/window", "window") diff --git a/bindings/ruby/sfml-window/window/VideoMode.cpp b/bindings/ruby/sfml-window/window/VideoMode.cpp index b20c4f82..a53050f1 100644 --- a/bindings/ruby/sfml-window/window/VideoMode.cpp +++ b/bindings/ruby/sfml-window/window/VideoMode.cpp @@ -23,7 +23,6 @@ #include "VideoMode.hpp" #include "main.hpp" #include -#include VALUE globalVideoModeClass;