mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Changed so that we use the static libraries of SFML instead to reduce the dependency when you want to distribute your ruby applications.
Also seems like that my sfml-all wasn't committed. Should be done now. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1734 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
6d66ed1af3
commit
c61b4fec47
25
bindings/ruby/sfml-all/extconf.rb
Normal file
25
bindings/ruby/sfml-all/extconf.rb
Normal file
@ -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")
|
@ -22,6 +22,6 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
dir_config("audio")
|
dir_config("audio")
|
||||||
have_library("sfml-audio")
|
have_library("sfml-audio-s")
|
||||||
find_header("main.hpp", "../sfml-system/system")
|
find_header("main.hpp", "../sfml-system/system")
|
||||||
create_makefile("sfml/audio", "audio")
|
create_makefile("sfml/audio", "audio")
|
||||||
|
@ -22,6 +22,6 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
dir_config("graphics")
|
dir_config("graphics")
|
||||||
have_library("sfml-graphics")
|
have_library("sfml-graphics-s")
|
||||||
find_header("main.hpp", "../sfml-system/system")
|
find_header("main.hpp", "../sfml-system/system")
|
||||||
create_makefile("sfml/graphics", "graphics")
|
create_makefile("sfml/graphics", "graphics")
|
||||||
|
@ -22,5 +22,5 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
dir_config("system")
|
dir_config("system")
|
||||||
have_library("sfml-system")
|
have_library("sfml-system-s")
|
||||||
create_makefile("sfml/system", "system")
|
create_makefile("sfml/system", "system")
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "ruby.h"
|
#include "ruby.h"
|
||||||
|
|
||||||
|
#define SFML_STATIC
|
||||||
|
|
||||||
VALUE RetrieveSFMLClass( const char * aName );
|
VALUE RetrieveSFMLClass( const char * aName );
|
||||||
|
|
||||||
// Ruby initiation function
|
// Ruby initiation function
|
||||||
|
@ -22,6 +22,6 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
dir_config("window")
|
dir_config("window")
|
||||||
have_library("sfml-window")
|
have_library("sfml-window-s")
|
||||||
find_header("main.hpp", "../sfml-system/system")
|
find_header("main.hpp", "../sfml-system/system")
|
||||||
create_makefile("sfml/window", "window")
|
create_makefile("sfml/window", "window")
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include "VideoMode.hpp"
|
#include "VideoMode.hpp"
|
||||||
#include "main.hpp"
|
#include "main.hpp"
|
||||||
#include <SFML/Window/VideoMode.hpp>
|
#include <SFML/Window/VideoMode.hpp>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
VALUE globalVideoModeClass;
|
VALUE globalVideoModeClass;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user