require "utils" if eal_impl then eal_impl.suffix = ("_" .. platform) end require "solution" require "library" iOSTestProject = TestProject:New{ } iOSLibProject = LibProject:New{ targetprefix = "lib", } function iOSTestProject:GenerateDependencies() TestProject.GenerateDependencies(self) for config in iter({ "Debug", "Release", "Retail" }) do configuration{ config } linkoptions { "-stdlib=libc++", "-framework Foundation", "-lz.1.2.5" } end end function iOSTestProject:GenerateConfigurations() TestProject.GenerateConfigurations(self) configuration { "*" } flags { "iOS_TestTarget_Add" } files { "../../gear_testing/resources/ios/gear_testing.xcappdata", "../../gear_testing/core/ios_testsMain.mm" } filesiOSTestTarget { "../../gear_testing/core/ios_testsTests.mm" } xcode_deployment_target("7.0") end iOSLibrary = Library:New{ LibProject = LibProject:New{}, TestProject = iOSTestProject, LibProject = iOSLibProject, } local subdir = joindir(platform, "xcode") iOSSolution = Solution:New{ Library = iOSLibrary, subdir = subdir, location = joindir("solutions", subdir), platform = "ios", iosconfigurations = { ["Re*"] = { flags = { "Optimize" }, }, }, iOSDefaults = { flags = { "ExtraWarnings", "NoPCH", "Xcode_OnlyActiveArch" }, buildoptions = { "-std=c++11", "-stdlib=libc++", "-mno-thumb" }, -- gtest specific defines defines = { "GTEST_USE_OWN_TR1_TUPLE=1" }, } } function iOSSolution:GenerateConfigurations() Solution.GenerateConfigurations(self) for name, options in pairs(self.iosconfigurations) do self:GenerateConfiguration(name, options) end self:GenerateConfiguration("*", self.iOSDefaults) end RegisterSolution("ios", iOSSolution)