Add recastnavigation (#440)
* Add recastnavigation * Update xmake.lua * Update xmake.lua * Update xmake.luapull/443/head
parent
9a263b093e
commit
30e6efbbfb
2 changed files with 67 additions and 0 deletions
@ -0,0 +1,44 @@ |
||||
set_xmakever("2.5.1") |
||||
set_languages("cxx11") |
||||
|
||||
add_rules("mode.debug", "mode.release") |
||||
|
||||
target("DebugUtils") |
||||
set_kind("static") |
||||
add_includedirs( |
||||
"DebugUtils/Include", |
||||
"Detour/Include", |
||||
"DetourTileCache/Include", |
||||
"Recast/Include") |
||||
add_headerfiles("DebugUtils/Include/*.h") |
||||
add_files("DebugUtils/Source/*.cpp") |
||||
|
||||
target("Detour") |
||||
set_kind("static") |
||||
add_includedirs("Detour/Include") |
||||
add_headerfiles("Detour/Include/*.h") |
||||
add_files("Detour/Source/*.cpp") |
||||
|
||||
target("DetourCrowd") |
||||
set_kind("static") |
||||
add_includedirs( |
||||
"DetourCrowd/Include", |
||||
"Detour/Include", |
||||
"Recast/Include") |
||||
add_headerfiles("DetourCrowd/Include/*.h") |
||||
add_files("DetourCrowd/Source/*.cpp") |
||||
|
||||
target("DetourTileCache") |
||||
set_kind("static") |
||||
add_includedirs( |
||||
"DetourTileCache/Include", |
||||
"Detour/Include", |
||||
"Recast/Include") |
||||
add_headerfiles("DetourTileCache/Include/*.h") |
||||
add_files("DetourTileCache/Source/*.cpp") |
||||
|
||||
target("Recast") |
||||
set_kind("static") |
||||
add_includedirs("Recast/Include") |
||||
add_headerfiles("Recast/Include/*.h") |
||||
add_files("Recast/Source/*.cpp") |
@ -0,0 +1,23 @@ |
||||
package("recastnavigation") |
||||
|
||||
set_homepage("https://github.com/recastnavigation/recastnavigation") |
||||
set_description("Navigation-mesh Toolset for Games") |
||||
set_license("zlib") |
||||
|
||||
set_urls("https://github.com/recastnavigation/recastnavigation/archive/refs/tags/$(version).zip", |
||||
"https://github.com/recastnavigation/recastnavigation.git") |
||||
|
||||
add_versions("1.5.1", "c541b56bab7543d7c741a3153af9a9024165b607de21503b90c9a399e626947a") |
||||
|
||||
on_install(function (package) |
||||
local configs = {} |
||||
if package:config("shared") then |
||||
configs.kind = "shared" |
||||
end |
||||
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua") |
||||
import("package.tools.xmake").install(package, configs) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:has_cxxfuncs("rcCreateHeightfield", {includes = "Recast.h"})) |
||||
end) |
Loading…
Reference in new issue