From b488340f22f4fddc8936c8d14fc5d71af4d3677e Mon Sep 17 00:00:00 2001 From: janwas Date: Sat, 28 Jun 2008 20:02:05 +0000 Subject: [PATCH] add debug symbols for enet (rationale: see enet/lib/rationale.txt) requires update of workspace. This was SVN commit r6145. --- build/premake/extern_libs.lua | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/build/premake/extern_libs.lua b/build/premake/extern_libs.lua index 641c60f1ab..e143bf535f 100644 --- a/build/premake/extern_libs.lua +++ b/build/premake/extern_libs.lua @@ -39,7 +39,7 @@ end -- running on Windows. -- * unix_names: as above; shared object names when running on non-Windows. -- both of the above are 'required'; if not specified, no linking against the --- library happens on platforms whose *_names are missings. +-- library happens on platforms whose *_names are missing. -- (rationale: this allows for libraries that do not -- link against anything, e.g. Boost). -- * dbg_suffix: changes the debug suffix from the above default. @@ -81,10 +81,19 @@ extern_lib_defs = { }, enet = { - win_names = { "enet" }, - unix_names = { "enet" }, - dbg_suffix = "_dbg", - no_delayload = 1, -- no DLL is involved, so avoid linker warning + add_func = function() + if OS == "windows" then + tinsert(package.includepaths, libraries_dir.."enet/include") + tinsert(package.config["Debug" ].libpaths, libraries_dir.."enet/lib/debug") + tinsert(package.config["Testing"].libpaths, libraries_dir.."enet/lib/debug") + tinsert(package.config["Release"].libpaths, libraries_dir.."enet/lib/release") + tinsert(package.config["Debug" ].links, "enet_dbg") + tinsert(package.config["Testing"].links, "enet_dbg") + tinsert(package.config["Release"].links, "enet") + else + tinsert(package.linkoptions, "-lenet") + end + end, }, fcollada = { win_names = { "FCollada" },