Changeset View
Changeset View
Standalone View
Standalone View
build/premake/extern_libs5.lua
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | boost = { | ||||
link_settings = function() | link_settings = function() | ||||
if os.istarget("windows") or os.istarget("macosx") then | if os.istarget("windows") or os.istarget("macosx") then | ||||
add_default_lib_paths("boost") | add_default_lib_paths("boost") | ||||
end | end | ||||
add_default_links({ | add_default_links({ | ||||
-- The following are not strictly link dependencies on all systems, but | -- The following are not strictly link dependencies on all systems, but | ||||
-- are included for compatibility with different versions of Boost | -- are included for compatibility with different versions of Boost | ||||
android_names = { "boost_filesystem-gcc-mt", "boost_system-gcc-mt" }, | android_names = { "boost_filesystem-gcc-mt", "boost_system-gcc-mt" }, | ||||
unix_names = { os.findlib("boost_filesystem-mt") and "boost_filesystem-mt" or "boost_filesystem", os.findlib("boost_system-mt") and "boost_system-mt" or "boost_system" }, | unix_names = { | ||||
os.findlib("boost_filesystem-mt") and "boost_filesystem-mt" or "boost_filesystem", | |||||
os.findlib("boost_fiber-mt") and "boost_fiber-mt" or "boost_fiber", | |||||
os.findlib("boost_system-mt") and "boost_system-mt" or "boost_system" | |||||
}, | |||||
Stan: I guess that file doesn't need any more changes now :) | |||||
osx_names = { "boost_filesystem-mt", "boost_system-mt" }, | osx_names = { "boost_filesystem-mt", "boost_system-mt" }, | ||||
}) | }) | ||||
end, | end, | ||||
Done Inline ActionsMight want to only require it if using GRPC? Stan: Might want to only require it if using GRPC? | |||||
}, | }, | ||||
comsuppw = { | comsuppw = { | ||||
link_settings = function() | link_settings = function() | ||||
add_default_links({ | add_default_links({ | ||||
win_names = { "comsuppw" }, | win_names = { "comsuppw" }, | ||||
dbg_suffix = "d", | dbg_suffix = "d", | ||||
no_delayload = 1, | no_delayload = 1, | ||||
}) | }) | ||||
▲ Show 20 Lines • Show All 455 Lines • ▼ Show 20 Lines | link_settings = function() | ||||
win_names = { "zlib1" }, | win_names = { "zlib1" }, | ||||
unix_names = { "z" }, | unix_names = { "z" }, | ||||
no_delayload = 1, | no_delayload = 1, | ||||
}) | }) | ||||
end, | end, | ||||
}, | }, | ||||
} | } | ||||
if not _OPTIONS["without-rlinterface"] then | |||||
extern_lib_defs['grpc'] = { | |||||
compile_settings = function() | |||||
if os.istarget("windows") then | |||||
add_default_include_paths("grpc") | |||||
add_default_include_paths("grpc++") | |||||
Done Inline ActionsWarning? Stan: Warning? | |||||
add_default_include_paths("protobuf") | |||||
else | |||||
pkgconfig.add_includes("grpc") | |||||
pkgconfig.add_includes("grpc++") | |||||
pkgconfig.add_includes("protobuf") | |||||
end | |||||
end, | |||||
link_settings = function() | |||||
pkgconfig.add_links("protobuf") | |||||
pkgconfig.add_links("grpc") | |||||
pkgconfig.add_links("grpc++") | |||||
end | |||||
} | |||||
end | |||||
-- add a set of external libraries to the project; takes care of | -- add a set of external libraries to the project; takes care of | ||||
-- include / lib path and linking against the import library. | -- include / lib path and linking against the import library. | ||||
-- extern_libs: table of library names [string] | -- extern_libs: table of library names [string] | ||||
-- target_type: String defining the projects kind [string] | -- target_type: String defining the projects kind [string] | ||||
function project_add_extern_libs(extern_libs, target_type) | function project_add_extern_libs(extern_libs, target_type) | ||||
for i,extern_lib in pairs(extern_libs) do | for i,extern_lib in pairs(extern_libs) do | ||||
Show All 18 Lines |
Wildfire Games · Phabricator
I guess that file doesn't need any more changes now :)