add enet to external library definitions and add it as a dependency of the network and engine subsystems.

(required for dacian's new netcode)
warning: enet isn't yet compiled on OS X and linux

This was SVN commit r5997.
This commit is contained in:
janwas 2008-05-31 20:00:37 +00:00
parent aa185909f4
commit a845570fef
2 changed files with 12 additions and 7 deletions

View File

@ -79,6 +79,12 @@ extern_lib_defs = {
directx = { directx = {
dbg_suffix = "", dbg_suffix = "",
}, },
enet =
{
win_names = { "enet" },
unix_names = { "enet" }, -- TODO: ensure this works on unix
dbg_suffix = "_dbg",
},
fcollada = { fcollada = {
win_names = { "FCollada" }, win_names = { "FCollada" },
unix_names = { "FColladaSD" }, unix_names = { "FColladaSD" },

View File

@ -315,6 +315,7 @@ function setup_all_libs ()
extern_libs = { extern_libs = {
"spidermonkey", "spidermonkey",
"xerces", "xerces",
"enet",
"boost", -- dragged in via server->simulation.h->random "boost", -- dragged in via server->simulation.h->random
} }
setup_static_lib_package("network", source_dirs, extern_libs, {}) setup_static_lib_package("network", source_dirs, extern_libs, {})
@ -331,7 +332,7 @@ function setup_all_libs ()
"sound", "sound",
"scripting", "scripting",
"maths", "maths",
"maths/scripting" "maths/scripting",
} }
extern_libs = { extern_libs = {
"spidermonkey", "spidermonkey",
@ -339,7 +340,8 @@ function setup_all_libs ()
"xerces", "xerces",
"opengl", "opengl",
"zlib", "zlib",
"boost" "boost",
"enet",
} }
setup_static_lib_package("engine", source_dirs, extern_libs, {}) setup_static_lib_package("engine", source_dirs, extern_libs, {})
@ -348,14 +350,12 @@ function setup_all_libs ()
"graphics", "graphics",
"graphics/scripting", "graphics/scripting",
"renderer" "renderer"
} }
extern_libs = { extern_libs = {
"opengl", "opengl",
"sdl", -- key definitions "sdl", -- key definitions
"spidermonkey", -- for graphics/scripting "spidermonkey", -- for graphics/scripting
"boost" "boost"
} }
setup_static_lib_package("graphics", source_dirs, extern_libs, {}) setup_static_lib_package("graphics", source_dirs, extern_libs, {})
@ -376,14 +376,12 @@ function setup_all_libs ()
source_dirs = { source_dirs = {
"tools/atlas/GameInterface", "tools/atlas/GameInterface",
"tools/atlas/GameInterface/Handlers" "tools/atlas/GameInterface/Handlers"
} }
extern_libs = { extern_libs = {
"boost", "boost",
"sdl", -- key definitions "sdl", -- key definitions
"opengl", "opengl",
"spidermonkey" "spidermonkey"
} }
setup_static_lib_package("atlas", source_dirs, extern_libs, {}) setup_static_lib_package("atlas", source_dirs, extern_libs, {})
@ -471,7 +469,8 @@ used_extern_libs = {
"dbghelp", "dbghelp",
"cxxtest", "cxxtest",
"directx", "directx",
"comsuppw" "comsuppw",
"enet"
} }
-- Bundles static libs together with main.cpp and builds game executable. -- Bundles static libs together with main.cpp and builds game executable.