--proj Engine
if( make_air_engine ) then
project "Engine"
local projectname = "Engine"
if IsIOS() then
CommonSet ( projectname, "StaticLib" )
else
CommonSet ( projectname, "SharedLib" )
end
local dirFilesList =
{
"../Engine/Include/Common",
"../Engine/Include/Engine",
"../Engine/Include/Math",
"../Engine/Include/InputSystem",
"../Engine/Src/Engine",
"../Engine/Src/Math",
"../Engine/Src/Common",
"../Engine/Src/InputSystem",
}
SimpleAddFilesWithFolders( dirFilesList )
includedirs
{
"../Engine/Include/",
"../Engine/Include/Common/",
"../Engine/Include/Engine/",
"../Engine/Include/Math/",
"../Engine/Include/InputSystem",
"../Dependencies/include/",
"../Dependencies/Include/bass/",
"../Dependencies/Include/freetype-2.5.2/",
"../Dependencies/Include/DevIL177/",
"../Dependencies/Include/nedmalloc/",
"../Dependencies/Include/vld/",
--"../plugins/AgeInputSystem/Include",
}
local ignoreCompileFiles =
{
"../Engine/Src/Engine/RenderTargetScene.cpp",
"../Engine/Src/Engine/RenderTargetLightBuffer.cpp",
"../Engine/Src/Engine/RenderTargetGBuffer.cpp",
"../Engine/Src/Engine/RenderTargetDepthMap.cpp",
"../Engine/Src/Engine/PostScreenCompositor.cpp",
"../Engine/Src/Engine/GBufferRenderProcess.cpp",
"../Engine/Src/Engine/PostProcessManager.cpp",
}
excludes( ignoreCompileFiles )
--[[
pchheader ( "stdafx.h" )
pchsource ( "stdafx.cpp" )
]]
configuration { "Debug" }
links { "lua514_d", "zlib_d", "zziplib_d", "freetype_d", "nedmalloc_d", "freeimage_d", "freeimageplus_d", }
configuration { "Release", }
links { "lua514", "zlib", "zziplib", "freetype", "nedmalloc", "freeimage", "freeimageplus", }
configuration { }
if IsWin() then
links { "xinput", "dxguid", "dinput8", "winmm", }
elseif IsMac() then
links { "Cocoa.framework", "IOKit.framework", "Carbon.framework", }
elseif IsIOS() then
links { "Foundation.framework", }
elseif IsLinux() then
links { }
end
defines { "ENGINE_EXPORTS", "GRAPHIC_EXPORTS", "MATH_EXPORTS", "LEFT_HAND_COORDINATE", "AIR_EXPORT", }
end