Install private header files to a private folder
until xmake supports https://github.com/xmake-io/xmake/issues/2577
This commit is contained in:
parent
8f4c828d0c
commit
e63bb072da
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(".")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue