Changeset View
Changeset View
Standalone View
Standalone View
build/premake/extern_libs5.lua
Show First 20 Lines • Show All 403 Lines • ▼ Show 20 Lines | link_settings = function() | ||||
add_default_links({ | add_default_links({ | ||||
win_names = { "libcurl" }, | win_names = { "libcurl" }, | ||||
unix_names = { "curl" }, | unix_names = { "curl" }, | ||||
osx_names = { "curl", "z" }, | osx_names = { "curl", "z" }, | ||||
osx_frameworks = { "Security" } | osx_frameworks = { "Security" } | ||||
}) | }) | ||||
end, | end, | ||||
}, | }, | ||||
libjpg = { | |||||
compile_settings = function() | |||||
if os.istarget("windows") or os.istarget("macosx") then | |||||
add_default_include_paths("libjpg") | |||||
end | |||||
end, | |||||
link_settings = function() | |||||
if os.istarget("windows") or os.istarget("macosx") then | |||||
add_default_lib_paths("libjpg") | |||||
end | |||||
add_default_links({ | |||||
win_names = { "jpeg-6b" }, | |||||
unix_names = { "jpeg" }, | |||||
}) | |||||
end, | |||||
}, | |||||
libpng = { | libpng = { | ||||
compile_settings = function() | compile_settings = function() | ||||
if os.istarget("windows") then | if os.istarget("windows") then | ||||
add_default_include_paths("libpng") | add_default_include_paths("libpng") | ||||
else | else | ||||
-- Support LIBPNG_CONFIG for overriding the default (pkg-config --cflags libpng) | -- Support LIBPNG_CONFIG for overriding the default (pkg-config --cflags libpng) | ||||
-- 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("libpng", os.getenv("LIBPNG_CONFIG")) | pkgconfig.add_includes("libpng", os.getenv("LIBPNG_CONFIG")) | ||||
▲ Show 20 Lines • Show All 317 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator