Added experimental new build system
Former-commit-id: ab7fb35db6be4b975d0558680c840d72e38562f9
This commit is contained in:
@@ -1,37 +1,20 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraAudio"
|
||||
end
|
||||
MODULE.Name = "Audio"
|
||||
|
||||
defines "NAZARA_AUDIO_OPENAL"
|
||||
|
||||
files
|
||||
{
|
||||
"../include/Nazara/Audio/**.hpp",
|
||||
"../include/Nazara/Audio/**.inl",
|
||||
"../src/Nazara/Audio/**.hpp",
|
||||
"../src/Nazara/Audio/**.cpp"
|
||||
MODULE.Defines = {
|
||||
"NAZARA_AUDIO_OPENAL"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Audio/Posix/*.hpp", "../src/Nazara/Audio/Posix/*.cpp" }
|
||||
links "sndfile-1"
|
||||
else
|
||||
excludes { "../src/Nazara/Audio/Win32/*.hpp", "../src/Nazara/Audio/Win32/*.cpp" }
|
||||
-- Link posix ?
|
||||
end
|
||||
MODULE.Libraries = {
|
||||
"NazaraCore",
|
||||
"sndfile-1"
|
||||
}
|
||||
|
||||
if (_OPTIONS["united"]) then
|
||||
excludes "../src/Nazara/Audio/Debug/NewOverload.cpp"
|
||||
else
|
||||
configuration "DebugStatic"
|
||||
links "NazaraCore-s-d"
|
||||
MODULE.OsFiles.Windows = {
|
||||
"../src/Nazara/Audio/Win32/**.hpp",
|
||||
"../src/Nazara/Audio/Win32/**.cpp"
|
||||
}
|
||||
|
||||
configuration "ReleaseStatic"
|
||||
links "NazaraCore-s"
|
||||
|
||||
configuration "DebugDLL"
|
||||
links "NazaraCore-d"
|
||||
|
||||
configuration "ReleaseDLL"
|
||||
links "NazaraCore"
|
||||
end
|
||||
MODULE.OsFiles.Posix = {
|
||||
"../src/Nazara/Audio/Posix/**.hpp",
|
||||
"../src/Nazara/Audio/Posix/**.cpp"
|
||||
}
|
||||
@@ -1,9 +1,6 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraCore"
|
||||
end
|
||||
MODULE.Name = "Core"
|
||||
|
||||
files
|
||||
{
|
||||
MODULE.Files = {
|
||||
"../include/Nazara/Prerequesites.hpp",
|
||||
"../include/Nazara/Core/**.hpp",
|
||||
"../include/Nazara/Core/**.inl",
|
||||
@@ -13,8 +10,12 @@ files
|
||||
"../src/Nazara/Core/**.cpp"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Core/Posix/**.hpp", "../src/Nazara/Core/Posix/**.cpp" }
|
||||
else
|
||||
excludes { "../src/Nazara/Core/Win32/**.hpp", "../src/Nazara/Core/Win32/**.cpp" }
|
||||
end
|
||||
MODULE.OsFiles.Windows = {
|
||||
"../src/Nazara/Core/Win32/**.hpp",
|
||||
"../src/Nazara/Core/Win32/**.cpp"
|
||||
}
|
||||
|
||||
MODULE.OsFiles.Posix = {
|
||||
"../src/Nazara/Core/Posix/**.hpp",
|
||||
"../src/Nazara/Core/Posix/**.cpp"
|
||||
}
|
||||
|
||||
@@ -1,41 +1,7 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraGraphics"
|
||||
end
|
||||
MODULE.Name = "Graphics"
|
||||
|
||||
files
|
||||
{
|
||||
"../include/Nazara/Graphics/**.hpp",
|
||||
"../include/Nazara/Graphics/**.inl",
|
||||
"../src/Nazara/Graphics/**.hpp",
|
||||
"../src/Nazara/Graphics/**.cpp"
|
||||
MODULE.Libraries = {
|
||||
"NazaraCore",
|
||||
"NazaraUtility",
|
||||
"NazaraRenderer"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Graphics/Posix/*.hpp", "../src/Nazara/Graphics/Posix/*.cpp" }
|
||||
else
|
||||
excludes { "../src/Nazara/Graphics/Win32/*.hpp", "../src/Nazara/Graphics/Win32/*.cpp" }
|
||||
end
|
||||
|
||||
if (_OPTIONS["united"]) then
|
||||
excludes "../src/Nazara/Graphics/Debug/NewOverload.cpp"
|
||||
else
|
||||
configuration "DebugStatic"
|
||||
links "NazaraCore-s-d"
|
||||
links "NazaraUtility-s-d"
|
||||
links "NazaraRenderer-s-d"
|
||||
|
||||
configuration "ReleaseStatic"
|
||||
links "NazaraCore-s"
|
||||
links "NazaraUtility-s"
|
||||
links "NazaraRenderer-s"
|
||||
|
||||
configuration "DebugDLL"
|
||||
links "NazaraCore-d"
|
||||
links "NazaraUtility-d"
|
||||
links "NazaraRenderer-d"
|
||||
|
||||
configuration "ReleaseDLL"
|
||||
links "NazaraCore"
|
||||
links "NazaraUtility"
|
||||
links "NazaraRenderer"
|
||||
end
|
||||
|
||||
@@ -1,39 +1,7 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraLua"
|
||||
end
|
||||
-- Quelle ironie
|
||||
MODULE.Name = "Lua"
|
||||
|
||||
files
|
||||
{
|
||||
"../include/Nazara/Lua/**.hpp",
|
||||
"../include/Nazara/Lua/**.inl",
|
||||
"../src/Nazara/Lua/**.hpp",
|
||||
"../src/Nazara/Lua/**.cpp"
|
||||
MODULE.Libraries = {
|
||||
"lua",
|
||||
"NazaraCore"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Lua/Posix/*.hpp", "../src/Nazara/Lua/Posix/*.cpp" }
|
||||
else
|
||||
excludes { "../src/Nazara/Lua/Win32/*.hpp", "../src/Nazara/Lua/Win32/*.cpp" }
|
||||
end
|
||||
|
||||
if (_OPTIONS["united"]) then
|
||||
excludes "../src/Nazara/Lua/Debug/NewOverload.cpp"
|
||||
else
|
||||
configuration "DebugStatic"
|
||||
links "NazaraCore-s-d"
|
||||
|
||||
configuration "ReleaseStatic"
|
||||
links "NazaraCore-s"
|
||||
|
||||
configuration "DebugDLL"
|
||||
links "NazaraCore-d"
|
||||
|
||||
configuration "ReleaseDLL"
|
||||
links "NazaraCore"
|
||||
end
|
||||
|
||||
configuration "Debug*"
|
||||
links "lua-s-d"
|
||||
|
||||
configuration "Release*"
|
||||
links "lua-s"
|
||||
|
||||
@@ -1,33 +1,5 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraNoise"
|
||||
end
|
||||
MODULE.Name = "Noise"
|
||||
|
||||
files
|
||||
{
|
||||
"../include/Nazara/Noise/**.hpp",
|
||||
"../include/Nazara/Noise/**.inl",
|
||||
"../src/Nazara/Noise/**.hpp",
|
||||
"../src/Nazara/Noise/**.cpp"
|
||||
MODULE.Libraries = {
|
||||
"NazaraCore"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Noise/Posix/*.hpp", "../src/Nazara/Noise/Posix/*.cpp" }
|
||||
else
|
||||
excludes { "../src/Nazara/Noise/Win32/*.hpp", "../src/Nazara/Noise/Win32/*.cpp" }
|
||||
end
|
||||
|
||||
if (_OPTIONS["united"]) then
|
||||
excludes "../src/Nazara/Noise/Debug/NewOverload.cpp"
|
||||
else
|
||||
configuration "DebugStatic"
|
||||
links "NazaraCore-s-d"
|
||||
|
||||
configuration "ReleaseStatic"
|
||||
links "NazaraCore-s"
|
||||
|
||||
configuration "DebugDLL"
|
||||
links "NazaraCore-d"
|
||||
|
||||
configuration "ReleaseDLL"
|
||||
links "NazaraCore"
|
||||
end
|
||||
|
||||
@@ -1,39 +1,6 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraPhysics"
|
||||
end
|
||||
MODULE.Name = "Physics"
|
||||
|
||||
files
|
||||
{
|
||||
"../include/Nazara/Physics/**.hpp",
|
||||
"../include/Nazara/Physics/**.inl",
|
||||
"../src/Nazara/Physics/**.hpp",
|
||||
"../src/Nazara/Physics/**.cpp"
|
||||
MODULE.Libraries = {
|
||||
"NazaraCore",
|
||||
"newton"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Physics/Posix/*.hpp", "../src/Nazara/Physics/Posix/*.cpp" }
|
||||
else
|
||||
excludes { "../src/Nazara/Physics/Win32/*.hpp", "../src/Nazara/Physics/Win32/*.cpp" }
|
||||
end
|
||||
|
||||
if (_OPTIONS["united"]) then
|
||||
excludes "../src/Nazara/Physics/Debug/NewOverload.cpp"
|
||||
else
|
||||
configuration "DebugStatic"
|
||||
links "NazaraCore-s-d"
|
||||
|
||||
configuration "ReleaseStatic"
|
||||
links "NazaraCore-s"
|
||||
|
||||
configuration "DebugDLL"
|
||||
links "NazaraCore-d"
|
||||
|
||||
configuration "ReleaseDLL"
|
||||
links "NazaraCore"
|
||||
end
|
||||
|
||||
configuration "Debug*"
|
||||
links "newton_d"
|
||||
|
||||
configuration "Release*"
|
||||
links "newton"
|
||||
|
||||
@@ -1,42 +1,26 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraRenderer"
|
||||
end
|
||||
MODULE.Name = "Renderer"
|
||||
|
||||
defines "NAZARA_RENDERER_OPENGL"
|
||||
|
||||
files
|
||||
{
|
||||
"../include/Nazara/Renderer/**.hpp",
|
||||
"../include/Nazara/Renderer/**.inl",
|
||||
"../src/Nazara/Renderer/**.hpp",
|
||||
"../src/Nazara/Renderer/**.cpp"
|
||||
MODULE.Defines = {
|
||||
"NAZARA_RENDERER_OPENGL"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Renderer/Posix/*.hpp", "../src/Nazara/Renderer/Posix/*.cpp" }
|
||||
links "gdi32"
|
||||
links "opengl32"
|
||||
links "winmm"
|
||||
else
|
||||
excludes { "../src/Nazara/Renderer/Win32/*.hpp", "../src/Nazara/Renderer/Win32/*.cpp" }
|
||||
end
|
||||
MODULE.Libraries = {
|
||||
"NazaraCore",
|
||||
"NazaraUtility"
|
||||
}
|
||||
|
||||
if (_OPTIONS["united"]) then
|
||||
excludes "../src/Nazara/Renderer/Debug/NewOverload.cpp"
|
||||
else
|
||||
configuration "DebugStatic"
|
||||
links "NazaraCore-s-d"
|
||||
links "NazaraUtility-s-d"
|
||||
MODULE.OsFiles.Windows = {
|
||||
"../src/Nazara/Renderer/Win32/**.hpp",
|
||||
"../src/Nazara/Renderer/Win32/**.cpp"
|
||||
}
|
||||
|
||||
configuration "ReleaseStatic"
|
||||
links "NazaraCore-s"
|
||||
links "NazaraUtility-s"
|
||||
MODULE.OsFiles.Posix = {
|
||||
"../src/Nazara/Renderer/Posix/**.hpp",
|
||||
"../src/Nazara/Renderer/Posix/**.cpp"
|
||||
}
|
||||
|
||||
configuration "DebugDLL"
|
||||
links "NazaraCore-d"
|
||||
links "NazaraUtility-d"
|
||||
|
||||
configuration "ReleaseDLL"
|
||||
links "NazaraCore"
|
||||
links "NazaraUtility"
|
||||
end
|
||||
MODULE.OsLibraries.Windows = {
|
||||
"gdi32",
|
||||
"opengl32",
|
||||
"winmm"
|
||||
}
|
||||
|
||||
@@ -1,42 +1,22 @@
|
||||
if (not _OPTIONS["united"]) then
|
||||
project "NazaraUtility"
|
||||
end
|
||||
MODULE.Name = "Utility"
|
||||
|
||||
files
|
||||
{
|
||||
"../include/Nazara/Utility/**.hpp",
|
||||
"../include/Nazara/Utility/**.inl",
|
||||
"../src/Nazara/Utility/**.hpp",
|
||||
"../src/Nazara/Utility/**.cpp"
|
||||
MODULE.Libraries = {
|
||||
"freetype-s",
|
||||
"NazaraCore",
|
||||
"stb_image"
|
||||
}
|
||||
|
||||
links "freetype-s"
|
||||
MODULE.OsFiles.Windows = {
|
||||
"../src/Nazara/Utility/Win32/**.hpp",
|
||||
"../src/Nazara/Utility/Win32/**.cpp"
|
||||
}
|
||||
|
||||
if (os.is("windows")) then
|
||||
excludes { "../src/Nazara/Utility/Posix/*.hpp", "../src/Nazara/Utility/Posix/*.cpp" }
|
||||
links "gdi32"
|
||||
else
|
||||
excludes { "../src/Nazara/Utility/Win32/*.hpp", "../src/Nazara/Utility/Win32/*.cpp" }
|
||||
end
|
||||
MODULE.OsFiles.Posix = {
|
||||
"../src/Nazara/Utility/Posix/**.hpp",
|
||||
"../src/Nazara/Utility/Posix/**.cpp"
|
||||
}
|
||||
|
||||
if (_OPTIONS["united"]) then
|
||||
excludes "../src/Nazara/Utility/Debug/NewOverload.cpp"
|
||||
else
|
||||
configuration "DebugStatic"
|
||||
links "NazaraCore-s-d"
|
||||
MODULE.OsLibraries.Windows = {
|
||||
"gdi32"
|
||||
}
|
||||
|
||||
configuration "ReleaseStatic"
|
||||
links "NazaraCore-s"
|
||||
|
||||
configuration "DebugDLL"
|
||||
links "NazaraCore-d"
|
||||
|
||||
configuration "ReleaseDLL"
|
||||
links "NazaraCore"
|
||||
end
|
||||
|
||||
configuration "Debug*"
|
||||
links "stb_image-s-d"
|
||||
|
||||
configuration "Release*"
|
||||
links "stb_image-s"
|
||||
|
||||
Reference in New Issue
Block a user