Install private header files to a private folder

until xmake supports https://github.com/xmake-io/xmake/issues/2577
This commit is contained in:
SirLynix 2022-07-18 08:47:57 +02:00
parent 8f4c828d0c
commit e63bb072da
4 changed files with 4 additions and 6 deletions

View File

@ -16,8 +16,7 @@ if has_config("assimp") then
add_deps("NazaraUtility")
add_packages("assimp")
add_headerfiles("**.hpp")
add_headerfiles("**.inl")
add_headerfiles("**.hpp", "**.inl", { prefixdir = "private" })
add_includedirs(".")
add_files("**.cpp")
end

View File

@ -16,8 +16,7 @@ if has_config("ffmpeg") then
add_deps("NazaraUtility")
add_packages("ffmpeg")
add_headerfiles("**.hpp")
add_headerfiles("**.inl")
add_headerfiles("**.hpp", "**.inl", { prefixdir = "private" })
add_includedirs(".")
add_files("**.cpp")
end

View File

@ -19,7 +19,7 @@ if has_config("tests") then
add_deps("NazaraAudio", "NazaraCore", "NazaraNetwork", "NazaraPhysics2D")
add_packages("catch2", "entt")
add_headerfiles("Engine/**.hpp")
add_headerfiles("Engine/**.hpp", { prefixdir = "private" })
add_files("resources.cpp")
add_files("Engine/**.cpp")
add_includedirs(".")

View File

@ -257,7 +257,7 @@ for name, module in pairs(modules) do
local headerExts = {".h", ".hpp", ".inl", ".natvis"}
for _, ext in ipairs(headerExts) do
add_headerfiles("include/(Nazara/" .. name .. "/**" .. ext .. ")")
add_headerfiles("src/Nazara/" .. name .. "/**" .. ext)
add_headerfiles("src/Nazara/" .. name .. "/**" .. ext, { prefixdir = "private" })
end
remove_headerfiles("src/Nazara/" .. name .. "/Resources/**.h")