Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5.lua
Show All 9 Lines | |||||
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-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" } | ||||
newoption { trigger = "without-tests", description = "Disable generation of test projects" } | newoption { trigger = "without-tests", description = "Disable generation of test projects" } | ||||
-- Linux specific options | |||||
Itms: Maybe write Linux/BSD since the code checks for that. | |||||
newoption { trigger = "prefer-local-libs", description = "Prefer locally built libs" } | |||||
ItmsUnsubmitted Done Inline ActionsI agree that we shouldn't use rpath, so maybe we could add in the description that users/maintainers who use the option should also create/distribute a ld.so.conf file? Itms: I agree that we shouldn't use `rpath`, so maybe we could add in the description that… | |||||
-- OS X specific options | -- OS X specific options | ||||
newoption { trigger = "macosx-bundle", description = "Enable OSX bundle, the argument is the bundle identifier string (e.g. com.wildfiregames.0ad)" } | newoption { trigger = "macosx-bundle", description = "Enable OSX bundle, the argument is the bundle identifier string (e.g. com.wildfiregames.0ad)" } | ||||
newoption { trigger = "macosx-version-min", description = "Set minimum required version of the OS X API, the build will possibly fail if an older SDK is used, while newer API functions will be weakly linked (i.e. resolved at runtime)" } | newoption { trigger = "macosx-version-min", description = "Set minimum required version of the OS X API, the build will possibly fail if an older SDK is used, while newer API functions will be weakly linked (i.e. resolved at runtime)" } | ||||
newoption { trigger = "sysroot", description = "Set compiler system root path, used for building against a non-system SDK. For example /usr/local becomes SYSROOT/user/local" } | newoption { trigger = "sysroot", description = "Set compiler system root path, used for building against a non-system SDK. For example /usr/local becomes SYSROOT/user/local" } | ||||
-- Windows specific options | -- Windows specific options | ||||
newoption { trigger = "build-shared-glooxwrapper", description = "Rebuild glooxwrapper DLL for Windows. Requires the same compiler version that gloox was built with" } | newoption { trigger = "build-shared-glooxwrapper", description = "Rebuild glooxwrapper DLL for Windows. Requires the same compiler version that gloox was built with" } | ||||
newoption { trigger = "use-shared-glooxwrapper", description = "Use prebuilt glooxwrapper DLL for Windows" } | newoption { trigger = "use-shared-glooxwrapper", description = "Use prebuilt glooxwrapper DLL for Windows" } | ||||
▲ Show 20 Lines • Show All 314 Lines • ▼ Show 20 Lines | else -- *nix | ||||
if _OPTIONS["datadir"] then | if _OPTIONS["datadir"] then | ||||
defines { "INSTALLED_DATADIR=" .. _OPTIONS["datadir"] } | defines { "INSTALLED_DATADIR=" .. _OPTIONS["datadir"] } | ||||
end | end | ||||
if _OPTIONS["libdir"] then | if _OPTIONS["libdir"] then | ||||
defines { "INSTALLED_LIBDIR=" .. _OPTIONS["libdir"] } | defines { "INSTALLED_LIBDIR=" .. _OPTIONS["libdir"] } | ||||
end | end | ||||
if os.istarget("linux") or os.istarget("bsd") then | if os.istarget("linux") or os.istarget("bsd") then | ||||
if _OPTIONS["prefer-local-libs"] then | |||||
libdirs { "/usr/local/lib" } | |||||
end | |||||
-- To use our local shared libraries, they need to be found in the | -- To use our local shared libraries, they need to be found in the | ||||
-- runtime dynamic linker path. Add their path to -rpath. | -- runtime dynamic linker path. Add their path to -rpath. | ||||
if _OPTIONS["libdir"] then | if _OPTIONS["libdir"] then | ||||
linkoptions {"-Wl,-rpath," .. _OPTIONS["libdir"] } | linkoptions {"-Wl,-rpath," .. _OPTIONS["libdir"] } | ||||
else | else | ||||
-- On FreeBSD we need to allow use of $ORIGIN | -- On FreeBSD we need to allow use of $ORIGIN | ||||
if os.istarget("bsd") then | if os.istarget("bsd") then | ||||
linkoptions { "-Wl,-z,origin" } | linkoptions { "-Wl,-z,origin" } | ||||
▲ Show 20 Lines • Show All 1,098 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Maybe write Linux/BSD since the code checks for that.