Update xmake.lua
This commit is contained in:
parent
b07d612506
commit
f0de7efd2d
|
|
@ -136,7 +136,6 @@ if is_plat("windows") then
|
||||||
|
|
||||||
add_defines("_CRT_SECURE_NO_WARNINGS")
|
add_defines("_CRT_SECURE_NO_WARNINGS")
|
||||||
add_cxxflags("/bigobj", "/permissive-", "/Zc:__cplusplus", "/Zc:referenceBinding", "/Zc:throwingNew")
|
add_cxxflags("/bigobj", "/permissive-", "/Zc:__cplusplus", "/Zc:referenceBinding", "/Zc:throwingNew")
|
||||||
add_cxxflags("/FC")
|
|
||||||
add_cxflags("/w44062") -- Enable warning: switch case not handled
|
add_cxflags("/w44062") -- Enable warning: switch case not handled
|
||||||
add_cxflags("/wd4251") -- Disable warning: class needs to have dll-interface to be used by clients of class blah blah blah
|
add_cxflags("/wd4251") -- Disable warning: class needs to have dll-interface to be used by clients of class blah blah blah
|
||||||
end
|
end
|
||||||
|
|
@ -169,8 +168,11 @@ for name, module in pairs(modules) do
|
||||||
add_defines("NAZARA_" .. name:upper() .. "_DEBUG")
|
add_defines("NAZARA_" .. name:upper() .. "_DEBUG")
|
||||||
end
|
end
|
||||||
|
|
||||||
add_headerfiles("include/(Nazara/" .. name .. "/**.hpp)", "include/(Nazara/" .. name .. "/**.inl)")
|
for _, ext in ipairs({".h", ".hpp", ".inl", ".natvis"}) do
|
||||||
add_headerfiles("src/(Nazara/" .. name .. "/**.hpp)", "src/(Nazara/" .. name .. "/**.inl)")
|
add_headerfiles("include/(Nazara/" .. name .. "/**" .. ext .. ")")
|
||||||
|
add_headerfiles("src/Nazara/" .. name .. "/**" .. ext)
|
||||||
|
end
|
||||||
|
|
||||||
add_files("src/Nazara/" .. name .. "/**.cpp")
|
add_files("src/Nazara/" .. name .. "/**.cpp")
|
||||||
add_includedirs("src")
|
add_includedirs("src")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue