Permalink
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (71 sloc) 2.08 KB
SubDir LUAPLUS ;
#C.Defines * : LUA_WIDESTRING=1 LUA_WIDESTRING_FILE=1 ;
Workspace LuaPlus :
lua
luac
$(LUA_VERSION)-static
;
SubIncludeRelative Src LuaPlus : LuaPlusSharedLib ;
SubIncludeRelative Src LuaPlus : LuaPlusStaticLib ;
SubIncludeRelative Src LuaPlus : Lua ;
SubIncludeRelative Src LuaPlus : LuaC ;
if $(OS) = NT
{
SubInclude LUAPLUS Src ManagedLuaPlus : ManagedLuaPlus ;
# SubInclude LUAPLUS Src ManagedLuaPlus : LuaPlusClrPure ;
if $(LUA_VERSION) in lua51 lua51-luaplus {
SubInclude LUAPLUS Src Lua51Proxy : Lua51Proxy ;
}
SubInclude LUAPLUS Tools LuaPlusDebuggerAddin ;
Workspace LuaPlus :
# LuaPlusClrPure
LuaPlusDebuggerAddin
LuaPlusDebuggerControls
ManagedLuaPlus
;
}
{
local modules ;
local modulefiles ;
local dir ;
for dir in [ Glob $(LUAPLUS)/Src/Modules : * : 0 ] {
local module = [ Match (.+)/ : $(dir) ] ;
if $(module) {
local file = [ Glob $(LUAPLUS)/Src/Modules/$(module) : $(module).jam : 0 ] ;
if $(file) {
modules += $(module:L) ;
modulefiles += $(module)=$(module).jam ;
} else {
file = [ Glob $(LUAPLUS)/Src/Modules/$(module) : Jamfile.jam : 0 ] ;
if $(file) {
modules += $(module:L) ;
modulefiles += $(module)=Jamfile.jam ;
}
}
}
}
local file ;
for file in [ Glob $(LUAPLUS)/Src/modules.jambuild : *.jam : 0 ] {
local isDownload = [ Match \!(download)\.jam : $(file) ] ;
if $(isDownload) = download {
local module = [ Match (.+)\!download\.jam : $(file) ] ;
SUBDIR = $(LUAPLUS)/Src/Modules/$(module) ;
include $(LUAPLUS)/Src/modules.jambuild/$(file) ;
continue ;
}
local module = [ Match (.+)\.jam : $(file) ] ;
if ! ( $(module) in $(modules) ) {
modules += $(module:L) ;
modulefiles += $(module)=../../modules.jambuild/$(module).jam ;
}
}
local moduleinfo ;
for moduleinfo in $(modulefiles) {
local parts = [ Split $(moduleinfo) : \= ] ;
if [ Glob $(LUAPLUS)/Src/Modules : $(parts[1])/ : 1 ] {
SubInclude LUAPLUS Src Modules $(parts[1]) : $(parts[2]) ;
} else {
#Echo * Not building $(parts[1]), because its source files do not exist. ;
}
}
}