Build: Don't install private headers
This commit is contained in:
parent
272a5c9ec1
commit
1e1dc3ebce
|
|
@ -16,7 +16,7 @@ if has_config("assimp") then
|
|||
add_deps("NazaraUtility")
|
||||
add_packages("assimp")
|
||||
|
||||
add_headerfiles("**.hpp", "**.inl", { prefixdir = "private" })
|
||||
add_headerfiles("**.hpp", "**.inl", { prefixdir = "private", install = false })
|
||||
add_includedirs(".")
|
||||
add_files("**.cpp")
|
||||
end
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ if has_config("ffmpeg") then
|
|||
add_deps("NazaraUtility")
|
||||
add_packages("ffmpeg")
|
||||
|
||||
add_headerfiles("**.hpp", "**.inl", { prefixdir = "private" })
|
||||
add_headerfiles("**.hpp", "**.inl", { prefixdir = "private", install = false })
|
||||
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", { prefixdir = "private" })
|
||||
add_headerfiles("Engine/**.hpp", { prefixdir = "private", install = false })
|
||||
add_files("resources.cpp")
|
||||
add_files("Engine/**.cpp")
|
||||
add_includedirs(".")
|
||||
|
|
|
|||
|
|
@ -116,8 +116,8 @@ if has_config("shadernodes") then
|
|||
end
|
||||
|
||||
add_includedirs("../src")
|
||||
add_headerfiles("../src/ShaderNode/**.hpp", "../src/ShaderNode/**.inl")
|
||||
add_headerfiles("../src/ShaderNode/**.hpp", "../src/ShaderNode/**.inl", { prefixdir = "private", install = false })
|
||||
add_files("../src/ShaderNode/**.cpp")
|
||||
add_files("../src/ShaderNode/Previews/PreviewValues.cpp", {unity_ignored = true}) -- fixes an issue with MSVC and operator*
|
||||
add_files("../src/ShaderNode/Previews/PreviewValues.cpp", { unity_ignored = true }) -- fixes an issue with MSVC and operator*
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -261,7 +261,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, { prefixdir = "private" })
|
||||
add_headerfiles("src/Nazara/" .. name .. "/**" .. ext, { prefixdir = "private", install = false })
|
||||
end
|
||||
|
||||
remove_headerfiles("src/Nazara/" .. name .. "/Resources/**.h")
|
||||
|
|
|
|||
Loading…
Reference in New Issue