assert(platform == "durango") require "gear4_ms" require "solution" require "library" require "project" DurangoTestProject = MSTestProject:New{ } DurangoLibProject = MSLibProject:New{ } -- function DurangoLibProject:GenerateConfigurations() MSLibProject.GenerateConfigurations(self) configuration { "*" } linkoptions { "/ignore:4264" } end function DurangoTestProject:GenerateConfigurations() configuration { "*" } flags { "NoIncrementalLink", "Durango_DeployApp", "Durango_RemoveExtraDeployFiles" } links { "pixEvt" , "d3d11_x" , "combase" , "kernelx" , "uuid" , "ws2_32" } linkoptions { "/ignore:4264" } targetsuffix ("") prebuildcommands { "rd /S /Q \"$(LayoutDir)/Contributors\" 2> NUL", "rd /S /Q \"$(LayoutDir)/Image\" 2> NUL" } postbuildcommands { "xcopy \"$(SolutionDir)../../../gear_testing/resources/durango/*.png\" \"$(TargetDir)\" /y/r/f" } durangologodir("$(SolutionDir)../../../gear_testing/resources/durango") durangologodiruserelativepath("true") durangomanifestextensions([[ ]]) MSTestProject.GenerateConfigurations(self) end DurangoLibrary = MSLibrary:New{ TestProject = DurangoTestProject, LibProject = DurangoLibProject } DurangoSolution = MSSolution:New{ Library = DurangoLibrary, location = joindir("solutions", MSSolution.subdir), platform = "durango", durangoconfigurations = { ["Debug"] = { flags = { "VS_RuntimeLibrary_MultiThreadedDLLDebug" }, }, ["Re*"] = { flags = { "VS_RuntimeLibrary_MultiThreadedDLL", "VS_EnableParallelCodeGeneration", }, }, }, DurangoDefaults = { defines = { "_DURANGO", "_VARIADIC_MAX=10", "WINAPI_FAMILY=WINAPI_FAMILY_TV_TITLE", "WIN32_LEAN_AND_MEAN", "_CRT_SECURE_NO_WARNINGS", }, flags = { "VS_ConsumeWindowsRuntimeExtension", "VS_Enable_CPP_Exceptions_Yes", "EnableEnhancedInstructionSet_AVX", "VS_FloatingPointModel_Precise", "NoMinimalRebuild", -- "VS_BufferSecurityCheck_Yes", -- TRC XR-009: not mandatory for exclusive OS game } } } function DurangoSolution:GenerateConfigurations() MSSolution.GenerateConfigurations(self) for name, options in pairs(self.durangoconfigurations) do self:GenerateConfiguration(name, options) end self:GenerateConfiguration("*",self.DurangoDefaults) end RegisterSolution("durango", DurangoSolution)