refactor(engine): 重构第三方库引用路径
将glad和stb库从Extra2D目录移动到third_party目录,并更新相关引用路径 添加nlohmann和simpleini第三方库的头文件路径
This commit is contained in:
parent
7c7d9cca92
commit
a2b142eb99
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -15,12 +15,18 @@ function define_extra2d_engine()
|
||||||
|
|
||||||
-- 引擎源文件
|
-- 引擎源文件
|
||||||
add_files("Extra2D/src/**.cpp")
|
add_files("Extra2D/src/**.cpp")
|
||||||
add_files("Extra2D/src/glad/glad.c")
|
add_files("third_party/glad/src/glad.c")
|
||||||
|
|
||||||
-- 头文件路径
|
-- 头文件路径
|
||||||
add_includedirs("Extra2D/include", {public = true})
|
add_includedirs("Extra2D/include", {public = true})
|
||||||
add_includedirs("Extra2D/include/extra2d/platform", {public = true})
|
add_includedirs("Extra2D/include/extra2d/platform", {public = true})
|
||||||
|
|
||||||
|
-- 第三方库头文件路径
|
||||||
|
add_includedirs("third_party/glad/include", {public = true})
|
||||||
|
add_includedirs("third_party/nlohmann", {public = true})
|
||||||
|
add_includedirs("third_party/simpleini", {public = true})
|
||||||
|
add_includedirs("third_party/stb", {public = true})
|
||||||
|
|
||||||
-- 平台配置
|
-- 平台配置
|
||||||
local plat = get_current_plat()
|
local plat = get_current_plat()
|
||||||
if plat == "switch" then
|
if plat == "switch" then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue