Jamfiles (Test, DNC, WIP)

This commit is contained in:
Enno Rehling 2010-02-27 19:24:19 +00:00
parent 800dadd8ef
commit 7214f638ba
15 changed files with 60 additions and 114 deletions

View File

@ -1,10 +1,11 @@
SubDir TOP ; SubDir TOP ;
SubInclude TOP src ; if $(BUILDTYPE) = UNITY {
SubInclude TOP eressea ; SubInclude TOP eressea ;
}
if $(BUILDTYPE) = REGULAR { if $(BUILDTYPE) = REGULAR {
SubInclude TOP common ; SubInclude TOP src ;
SubInclude TOP eressea ; SubInclude TOP eressea ;
SubInclude TOP tools ; SubInclude TOP tools ;
} }

View File

@ -1,7 +1,7 @@
SubDir TOP eressea ; SubDir TOP eressea ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../src/gamecode ; SubDirHdrs $(SUBDIR)/../src/build ;
SubDirHdrs $(SUBDIR)/../src/kernel ; SubDirHdrs $(SUBDIR)/../src/kernel ;
SubDirHdrs $(SUBDIR)/../src/util ; SubDirHdrs $(SUBDIR)/../src/util ;
SubDirHdrs $(SUBDIR)/../src ; SubDirHdrs $(SUBDIR)/../src ;
@ -9,83 +9,30 @@ SubDirHdrs $(SUBDIR)/../external ;
SubDirHdrs $(SUBDIR)/.. ; SubDirHdrs $(SUBDIR)/.. ;
UsingLua ; UsingLua ;
UsingLuabind ;
SEARCH_SOURCE += [ FDirName $(TOP) src iniparser ] ; SEARCH_SOURCE += [ FDirName $(TOP) src build ] ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) curses ] ; SEARCH_SOURCE += [ FDirName $(SUBDIR) src ] ;
if $(BINDINGS) = LUABIND {
SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ;
}
if $(BINDINGS) = TOLUA {
SEARCH_SOURCE += [ FDirName $(SUBDIR) tolua ] ;
}
SubDirC++Flags -DHAVE_LUA ; SubDirC++Flags -DHAVE_LUA ;
SubDirHdrs $(XMLHDRS) ; SubDirHdrs $(XMLHDRS) ;
LUASERVER = eressea-lua ; SERVER = eressea ;
SERVER_SOURCES = main.c korrektur.c ; SERVER_SOURCES =
<build!external.c>
TOLUA_SOURCES = <build!gamecode.c>
<tolua>bindings.c <build!kernel.c>
<tolua>helpers.c <build!lib.c>
<tolua>bind_sqlite.c <build!util.c>
<tolua>bind_unit.c <src!server.c>
<tolua>bind_ship.c
<tolua>bind_storage.c
<tolua>bind_faction.c
<tolua>bind_region.c
<tolua>bind_message.c
<tolua>bind_hashtable.c
<tolua>bind_building.c
<tolua>bind_gmtool.c
;
LUABIND_SOURCES =
<lua>alliance.cpp
<lua>building.cpp
<lua>eressea.cpp
<lua>event.cpp
<lua>faction.cpp
<lua>message.cpp
<lua>objects.cpp
<lua>region.cpp
<lua>ship.cpp
<lua>spell.cpp
<lua>unit.cpp
<lua>item.cpp
<lua>test.cpp
<lua>gm.cpp
<lua>script.cpp
<lua>gamecode.cpp
;
if $(BINDINGS) = LUABIND {
Library bindings : $(LUABIND_SOURCES) ;
libluabind $(LUASERVER) ;
}
if $(BINDINGS) = TOLUA {
Library bindings : $(TOLUA_SOURCES) ;
libtolua $(LUASERVER) ;
}
liblua $(LUASERVER) ;
LUASERVER_SOURCES =
<src!iniparser>iniparser.c
<curses>listbox.c
server.c
console.c
editing.c
gmtool.c
; ;
# eressea-server with lua scripting libtolua $(SERVER) ;
LinkLibraries $(LUASERVER) : liblua $(SERVER) ;
bindings gamecode items spells kernel modules attributes races triggers util ;
libxml2 $(LUASERVER) ;
libcurses $(LUASERVER) ;
libmcheck $(LUASERVER) ;
LINKLIBS on $(LUASERVER) += -lm -ldl -lstdc++ ; # eressea-server with lua scripting
Main $(LUASERVER) : $(LUASERVER_SOURCES) ; libxml2 $(SERVER) ;
libcurses $(SERVER) ;
LINKLIBS on $(SERVER) += -lm -ldl -lstdc++ ;
Main $(SERVER) : $(SERVER_SOURCES) ;

View File

@ -1,4 +1,4 @@
SubDir TOP common races ; SubDir TOP src races ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ; SubDirHdrs $(SUBDIR)/../gamecode ;

View File

@ -1,4 +1,4 @@
SubDir TOP common spells ; SubDir TOP src spells ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ; SubDirHdrs $(SUBDIR)/../gamecode ;

View File

@ -1,11 +1,16 @@
SubDir TOP common ; SubDir TOP src ;
SubInclude TOP common kernel ; if $(BUILDTYPE) = REGULAR {
SubInclude TOP common gamecode ; SubInclude TOP src kernel ;
SubInclude TOP common spells ; SubInclude TOP src gamecode ;
SubInclude TOP common races ; SubInclude TOP src spells ;
SubInclude TOP common triggers ; SubInclude TOP src races ;
SubInclude TOP common util ; SubInclude TOP src triggers ;
SubInclude TOP common attributes ; SubInclude TOP src util ;
SubInclude TOP common modules ; SubInclude TOP src attributes ;
SubInclude TOP common items ; SubInclude TOP src modules ;
SubInclude TOP src items ;
} else {
# UNITY build
SubInclude TOP src build ;
}

View File

@ -1,4 +1,4 @@
SubDir TOP common attributes ; SubDir TOP src attributes ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ; SubDirHdrs $(SUBDIR)/../gamecode ;

View File

@ -1,7 +0,0 @@
#include "common/settings.h"
#include <platform.h>
#include "stdafx.h"
#include <util/listbox.c>
#include <gmtool.c>
#include <eressea.c>

View File

@ -1,18 +1,18 @@
SubDir TOP combined ; SubDir TOP src build ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../eressea ; SubDirHdrs $(SUBDIR)/../../eressea ;
SubDirHdrs $(SUBDIR)/../common/gamecode ; SubDirHdrs $(SUBDIR)/../../src/gamecode ;
SubDirHdrs $(SUBDIR)/../common/kernel ; SubDirHdrs $(SUBDIR)/../../src/kernel ;
SubDirHdrs $(SUBDIR)/../common/util ; SubDirHdrs $(SUBDIR)/../../src/util ;
SubDirHdrs $(SUBDIR)/../common ; SubDirHdrs $(SUBDIR)/../../src ;
SubDirHdrs $(SUBDIR)/../tools ; SubDirHdrs $(SUBDIR)/../../tools ;
SubDirHdrs $(SUBDIR)/../external ; SubDirHdrs $(SUBDIR)/../../external ;
SubDirHdrs $(SUBDIR)/.. ; SubDirHdrs $(SUBDIR)/.. ;
UsingLua ; UsingLua ;
SEARCH_SOURCE += [ FDirName $(TOP) common iniparser ] ; SEARCH_SOURCE += [ FDirName $(TOP) src iniparser ] ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) curses ] ; SEARCH_SOURCE += [ FDirName $(SUBDIR) curses ] ;
if $(BINDINGS) = LUABIND { if $(BINDINGS) = LUABIND {
SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ; SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ;

View File

@ -1,4 +1,4 @@
SubDir TOP common gamecode ; SubDir TOP src gamecode ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../kernel ; SubDirHdrs $(SUBDIR)/../kernel ;

View File

@ -1,4 +1,4 @@
SubDir TOP common items ; SubDir TOP src items ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ; SubDirHdrs $(SUBDIR)/../gamecode ;

View File

@ -1,4 +1,4 @@
SubDir TOP common kernel ; SubDir TOP src kernel ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../util ; SubDirHdrs $(SUBDIR)/../util ;

View File

@ -1,4 +1,4 @@
SubDir TOP common modules ; SubDir TOP src modules ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ; SubDirHdrs $(SUBDIR)/../gamecode ;

View File

@ -1,4 +1,4 @@
SubDir TOP common triggers ; SubDir TOP src triggers ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ; SubDirHdrs $(SUBDIR)/../gamecode ;

View File

@ -1,4 +1,4 @@
SubDir TOP common util ; SubDir TOP src util ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/.. ; SubDirHdrs $(SUBDIR)/.. ;

View File

@ -1,10 +1,10 @@
SubDir TOP tools ; SubDir TOP tools ;
TargetDirectory ; TargetDirectory ;
SubDirHdrs $(SUBDIR)/../common/gamecode ; SubDirHdrs $(SUBDIR)/../src/gamecode ;
SubDirHdrs $(SUBDIR)/../common/kernel ; SubDirHdrs $(SUBDIR)/../src/kernel ;
SubDirHdrs $(SUBDIR)/../common/util ; SubDirHdrs $(SUBDIR)/../src/util ;
SubDirHdrs $(SUBDIR)/../common ; SubDirHdrs $(SUBDIR)/../src ;
SubDirHdrs $(SUBDIR)/.. ; SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(XMLHDRS) ; SubDirHdrs $(XMLHDRS) ;