Skip to content

Commit

Permalink
添加 assimp 库
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack253-png committed Jan 13, 2025
1 parent f98f794 commit 19a330b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@
[submodule "extlibs/MoltenVK"]
path = extlibs/MoltenVK
url = https://github.com/KhronosGroup/MoltenVK
[submodule "extlibs/assimp"]
path = extlibs/assimp
url = https://github.com/assimp/assimp
6 changes: 6 additions & 0 deletions extlibs/assimp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
add_requires("assimp", { configs = { shared = true } })

target("assimp-wrap")
set_kind("binary")
add_files("../src/external/placeholder.cpp")
add_packages("assimp")
1 change: 1 addition & 0 deletions src/external/placeholder.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
int main() {}
1 change: 1 addition & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ includes("extlibs/xxhash.lua")
includes("extlibs/openal.lua")
includes("extlibs/meshoptimizer.lua")
includes("extlibs/yoga.lua")
includes("extlibs/assimp.lua")
if not is_plat("bsd") then
includes("extlibs/shaderc.lua")
end
Expand Down

0 comments on commit 19a330b

Please sign in to comment.