#!/usr/bin/python import sys # Force the local copy of csbuild to be used rather than the installed copy. sys.path.insert(0, "../../../") import csbuild csbuild.Toolchain( "gcc", "ios" ).Compiler().SetCppStandard( "c++11" ) csbuild.Toolchain( "gcc", "ios" ).SetCppStandardLibrary( "libc++" ) csbuild.DisablePrecompile() csbuild.DisableChunkedBuild() OUT_DIR = "out/{project.activeToolchainName}-{project.outputArchitecture}/{project.targetName}" INT_DIR = "obj/{project.activeToolchainName}-{project.outputArchitecture}/{project.targetName}/{project.name}" csbuild.SetOutputDirectory( OUT_DIR ) csbuild.SetIntermediateDirectory( INT_DIR ) csbuild.AddIncludeDirectories( "src" ) csbuild.AddLibraryDirectories( OUT_DIR ) @csbuild.project( "sharedLibrary", "src/sharedLibrary" ) def sharedLibrary(): csbuild.SetOutput( "sharedLibrary", csbuild.ProjectType.SharedLibrary ) @csbuild.project( "staticLibrary", "src/staticLibrary" ) def staticLibrary(): csbuild.SetOutput( "staticLibrary", csbuild.ProjectType.StaticLibrary ) @csbuild.project( "loadableModule", "src/loadableModule" ) def loadableModule(): csbuild.SetOutput( "loadableModule", csbuild.ProjectType.LoadableModule ) @csbuild.project( "mainApp", "src/mainApp", ["sharedLibrary", "staticLibrary", "loadableModule"] ) def mainApp(): csbuild.SetOutput( "mainApp", csbuild.ProjectType.Application )
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 15571 | ShadauxCat | Merge brandon_m_bare into mainline | ||
#1 | 12416 | ShadauxCat |
Integration from //guest/brandon_m_bare/csbuild/brandon_m_bare/... into //guest/ShadauxCat/csbuild/Mainline/... |
||
//guest/brandon_m_bare/csbuild/brandon_m_bare/UnitTests/OSX/HelloLibraries/make.py | |||||
#2 | 12345 | brandon_m_bare |
-- Cleaned up the gcc_darwin toolchain so that the SDK path and version are automatically retrieved only once in the entire execution of a make script. -- Similarly updated the ios toolchain so it's SDK paths and version are automatically retrieved. -- Cleaned up the sys path modification in the HelloLibraries makefile. #review-12337 @ShadauxCat |
||
#1 | 11833 | brandon_m_bare |
UnitTest: -- Added the OSX unit test, HelloLibraries. NOTE: This unit test should work for other PC-based platforms, but it's specifically OSX to show off the difference loadable modules and shared libraries (which are technically the same thing, but Apple makes a clear distinction between the two). |