Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5.lua
Context not available. | |||||
newoption { trigger = "with-system-nvtt", description = "Search standard paths for nvidia-texture-tools library, instead of using bundled copy" } | newoption { trigger = "with-system-nvtt", description = "Search standard paths for nvidia-texture-tools library, instead of using bundled copy" } | ||||
newoption { trigger = "without-audio", description = "Disable use of OpenAL/Ogg/Vorbis APIs" } | newoption { trigger = "without-audio", description = "Disable use of OpenAL/Ogg/Vorbis APIs" } | ||||
newoption { trigger = "without-lobby", description = "Disable the use of gloox and the multiplayer lobby" } | newoption { trigger = "without-lobby", description = "Disable the use of gloox and the multiplayer lobby" } | ||||
newoption { trigger = "without-rdb", description = "Disable the use of the replay database" } | |||||
newoption { trigger = "without-miniupnpc", description = "Disable use of miniupnpc for port forwarding" } | newoption { trigger = "without-miniupnpc", description = "Disable use of miniupnpc for port forwarding" } | ||||
newoption { trigger = "without-nvtt", description = "Disable use of NVTT" } | newoption { trigger = "without-nvtt", description = "Disable use of NVTT" } | ||||
newoption { trigger = "without-pch", description = "Disable generation and usage of precompiled headers" } | newoption { trigger = "without-pch", description = "Disable generation and usage of precompiled headers" } | ||||
Context not available. | |||||
defines { "CONFIG2_LOBBY=0" } | defines { "CONFIG2_LOBBY=0" } | ||||
end | end | ||||
if _OPTIONS["without-rdb"] then | |||||
defines { "CONFIG2_RDB=0" } | |||||
end | |||||
if _OPTIONS["without-miniupnpc"] then | if _OPTIONS["without-miniupnpc"] then | ||||
defines { "CONFIG2_MINIUPNPC=0" } | defines { "CONFIG2_MINIUPNPC=0" } | ||||
end | end | ||||
Context not available. | |||||
} | } | ||||
filter {} | filter {} | ||||
-- FIXME | |||||
if not _OPTIONS["without-rdb"] then | |||||
if _OPTIONS["without-lobby"] then | |||||
error("Rdb needs lobby support, 'cause gentz doesn't know how premake works and is playing it safe") | |||||
end | |||||
source_dirs = { | |||||
"rdb", | |||||
"rdb/scripting", | |||||
"lobby/scripting", | |||||
"i18n", | |||||
} | |||||
extern_libs = { | |||||
"spidermonkey", | |||||
"asio", | |||||
"boost", | |||||
"enet", | |||||
"gloox", | |||||
"icu", | |||||
"iconv", | |||||
"libsodium", | |||||
"tinygettext", | |||||
"sdl", | |||||
"libxml2", | |||||
"zlib", | |||||
"enet", | |||||
"libcurl" | |||||
} | |||||
setup_static_lib_project("rdb", source_dirs, extern_libs, {}) | |||||
if _OPTIONS["use-shared-glooxwrapper"] and not _OPTIONS["build-shared-glooxwrapper"] then | |||||
table.insert(static_lib_names_debug, "glooxwrapper_dbg") | |||||
table.insert(static_lib_names_release, "glooxwrapper") | |||||
else | |||||
source_dirs = { | |||||
"lobby/glooxwrapper", | |||||
} | |||||
extern_libs = { | |||||
"boost", | |||||
"gloox", | |||||
} | |||||
if _OPTIONS["build-shared-glooxwrapper"] then | |||||
setup_shared_lib_project("glooxwrapper", source_dirs, extern_libs, {}) | |||||
else | |||||
setup_static_lib_project("glooxwrapper", source_dirs, extern_libs, {}) | |||||
end | |||||
end | |||||
else | |||||
source_dirs = { | |||||
"rdb/scripting", | |||||
"lobby/scripting", | |||||
"third_party/encryption" | |||||
} | |||||
extern_libs = { | |||||
"spidermonkey", | |||||
"boost", | |||||
"libsodium" | |||||
} | |||||
setup_static_lib_project("rdb", source_dirs, extern_libs, {}) | |||||
files { source_root.."rdb/Globals.cpp" } | |||||
end | |||||
if not _OPTIONS["without-lobby"] then | if not _OPTIONS["without-lobby"] then | ||||
source_dirs = { | source_dirs = { | ||||
Context not available. | |||||
"icu", | "icu", | ||||
"iconv", | "iconv", | ||||
"libsodium", | "libsodium", | ||||
"asio", | |||||
"valgrind", | "valgrind", | ||||
} | } | ||||
Context not available. |
Wildfire Games · Phabricator