forked from github/server
Kompatibilität zu luabind-b7
This commit is contained in:
parent
d0cf3d50a7
commit
0a27d60de0
5 changed files with 16 additions and 3 deletions
13
src/Jamrules
13
src/Jamrules
|
@ -29,7 +29,11 @@ CCFLAGS += -Wwrite-strings
|
|||
-Wno-char-subscripts
|
||||
;
|
||||
|
||||
XMLHDRS = /usr/include/libxml2 ;
|
||||
if $(HOST) = "hamunaptra" {
|
||||
XMLHDRS = /homes2/info-f/enno/software/hamunaptra/include/libxml2 ;
|
||||
} else {
|
||||
XMLHDRS = /usr/include/libxml2 ;
|
||||
}
|
||||
|
||||
rule iconv
|
||||
{
|
||||
|
@ -40,7 +44,12 @@ rule iconv
|
|||
|
||||
rule luabind
|
||||
{
|
||||
LINKLIBS on $(<) += -L$(LUABIND_ROOT)/lib -llua50 -llualib50 ;
|
||||
LINKLIBS on $(<) += -L$(LUABIND_ROOT)/lib ;
|
||||
if $(HOST) = "hamunaptra" {
|
||||
LINKLIBS on $(<) += -llua -llualib ;
|
||||
} else {
|
||||
LINKLIBS on $(<) += -llua50 -llualib50 ;
|
||||
}
|
||||
LINKLIBS on $(<) += -lm -lluabind ;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
// lua includes
|
||||
#include <lua.hpp>
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/operator.hpp>
|
||||
#include <luabind/iterator_policy.hpp>
|
||||
|
||||
// util includes
|
||||
|
@ -139,8 +140,8 @@ bind_building(lua_State * L)
|
|||
def("add_building", &add_building),
|
||||
|
||||
class_<struct building>("building")
|
||||
.def(tostring(self))
|
||||
.def(self == building())
|
||||
.def(tostring(self))
|
||||
.property("name", &building_getname, &building_setname)
|
||||
.property("info", &building_getinfo, &building_setinfo)
|
||||
.property("units", &building_units, return_stl_iterator)
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
// lua includes
|
||||
#include <lua.hpp>
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/operator.hpp>
|
||||
#include <luabind/iterator_policy.hpp>
|
||||
|
||||
#include <ostream>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
// lua includes
|
||||
#include <lua.hpp>
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/operator.hpp>
|
||||
#include <luabind/iterator_policy.hpp>
|
||||
|
||||
#include <ostream>
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
// lua includes
|
||||
#include <lua.hpp>
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/operator.hpp>
|
||||
#include <luabind/iterator_policy.hpp>
|
||||
|
||||
#include <ostream>
|
||||
|
|
Loading…
Reference in a new issue