Changeset View
Changeset View
Standalone View
Standalone View
build/premake/extern_libs5.lua
Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | link_settings = function() | ||||
filter "Debug" | filter "Debug" | ||||
links { "FColladaSD" } | links { "FColladaSD" } | ||||
filter "Release" | filter "Release" | ||||
links { "FColladaSR" } | links { "FColladaSR" } | ||||
filter { } | filter { } | ||||
end | end | ||||
end, | end, | ||||
}, | }, | ||||
fmt = { | |||||
compile_settings = function() | |||||
if os.istarget("windows") or os.istarget("macosx") then | |||||
add_default_include_paths("fmt") | |||||
end | |||||
-- With Linux & BSD, we assume that fmt is installed in a standard location. | |||||
-- | |||||
-- It would be nice to not assume, and to instead use pkgconfig: however that | |||||
-- requires fmt 5.3.0 or greater. | |||||
-- | |||||
-- Unfortunately (at the time of writing) only 69 out of 95 (~72.6%) of distros | |||||
-- that provide a fmt package meet this, according to | |||||
-- https://repology.org/badge/vertical-allrepos/fmt.svg?minversion=5.3 | |||||
-- | |||||
-- Whilst that might seem like a healthy majority, this does not include the 2018 | |||||
-- Long Term Support and 2019.10 releases of Ubuntu - not only popular and widely | |||||
Stan: It might be a stupid question. but can we check the version? | |||||
Done Inline ActionsTo check the version, we'd need some (ideally non-convoluted) way of finding out what the version is. s0600204: To check the version, we'd need some (ideally non-convoluted) way of finding out what the… | |||||
-- used as-is, but which are also used as a base for other popular distros (e.g. | |||||
-- Mint). | |||||
-- | |||||
-- When fmt 5.3 (or better) becomes more widely used, then we can safely use the | |||||
-- following line: | |||||
-- pkgconfig.add_includes("fmt") | |||||
end, | |||||
link_settings = function() | |||||
if os.istarget("windows") or os.istarget("macosx") then | |||||
add_default_lib_paths("fmt") | |||||
end | |||||
add_default_links({ | |||||
unix_names = { "fmt" }, | |||||
win_names = { "fmt" }, | |||||
}) | |||||
-- See comment above as to why this is commented out. | |||||
-- pkgconfig.add_links("fmt") | |||||
end | |||||
}, | |||||
gloox = { | gloox = { | ||||
compile_settings = function() | compile_settings = function() | ||||
if os.istarget("windows") then | if os.istarget("windows") then | ||||
add_default_include_paths("gloox") | add_default_include_paths("gloox") | ||||
else | else | ||||
-- Support GLOOX_CONFIG for overriding the default (pkg-config --cflags gloox) | -- Support GLOOX_CONFIG for overriding the default (pkg-config --cflags gloox) | ||||
-- i.e. on OSX where it gets set in update-workspaces.sh | -- i.e. on OSX where it gets set in update-workspaces.sh | ||||
pkgconfig.add_includes("gloox", os.getenv("GLOOX_CONFIG")) | pkgconfig.add_includes("gloox", os.getenv("GLOOX_CONFIG")) | ||||
▲ Show 20 Lines • Show All 429 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
It might be a stupid question. but can we check the version?