88 lines
3 KiB
Text
88 lines
3 KiB
Text
// TestFramework
|
|
//------------------------------------------------------------------------------
|
|
{
|
|
.ProjectName = 'TestFramework'
|
|
.ProjectPath = 'TestFramework'
|
|
|
|
// Visual Studio Project Generation
|
|
//--------------------------------------------------------------------------
|
|
VCXProject( '$ProjectName$-proj' )
|
|
{
|
|
.ProjectOutput = '$ProjectPath$\$ProjectName$.vcxproj'
|
|
.ProjectInputPaths = '$ProjectPath$\'
|
|
.ProjectBasePath = '$ProjectPath$\'
|
|
}
|
|
|
|
// Unity
|
|
//--------------------------------------------------------------------------
|
|
Unity( '$ProjectName$-UnityGenerate' )
|
|
{
|
|
.UnityInputPath = '$ProjectPath$\'
|
|
.UnityOutputPath = '$OutputBase$\Unity\$ProjectPath$\'
|
|
}
|
|
|
|
// Windows (MSVC)
|
|
//--------------------------------------------------------------------------
|
|
// Lib
|
|
ForEach( .Config in .Configs_Windows_MSVC )
|
|
{
|
|
Using( .Config )
|
|
.OutputBase + '\$Platform$-$Config$'
|
|
|
|
// Static Library
|
|
Library( '$ProjectName$-Lib-$Platform$-$Config$' )
|
|
{
|
|
// Test framework uses exceptions
|
|
.CompilerOptions + .UseExceptions
|
|
|
|
// Input (Unity)
|
|
.CompilerInputUnity = '$ProjectName$-UnityGenerate'
|
|
|
|
// Output
|
|
.CompilerOutputPath = '$OutputBase$\$ProjectName$\'
|
|
.LibrarianOutput = '$OutputBase$\$ProjectName$\$ProjectName$.lib'
|
|
}
|
|
Alias( '$ProjectName$-$Platform$-$Config$' ) { .Targets = '$ProjectName$-Lib-$Platform$-$Config$' }
|
|
}
|
|
|
|
// Windows (Clang)
|
|
//--------------------------------------------------------------------------
|
|
ForEach( .Config in .Configs_Windows_Clang )
|
|
{
|
|
Using( .Config )
|
|
.OutputBase + '\$Platform$-$Config$'
|
|
|
|
// Static Library
|
|
Library( '$ProjectName$-Lib-$Platform$-$Config$' )
|
|
{
|
|
// Test framework uses exceptions
|
|
.CompilerOptions + .UseExceptions
|
|
|
|
// Input (Unity)
|
|
.CompilerInputUnity = '$ProjectName$-UnityGenerate'
|
|
|
|
// Output
|
|
.CompilerOutputPath = '$OutputBase$\$ProjectName$\'
|
|
.LibrarianOutput = '$OutputBase$\$ProjectName$\$ProjectName$.lib'
|
|
}
|
|
Alias( '$ProjectName$-$Platform$-$Config$' ) { .Targets = '$ProjectName$-Lib-$Platform$-$Config$' }
|
|
}
|
|
|
|
// Aliases
|
|
//--------------------------------------------------------------------------
|
|
// Per-Config
|
|
Alias( '$ProjectName$-Debug' ) { .Targets = { '$ProjectName$-X86-Debug', '$ProjectName$-X64-Debug', '$ProjectName$-X86Clang-Debug' } }
|
|
Alias( '$ProjectName$-Profile' ) { .Targets = { '$ProjectName$-X86-Profile', '$ProjectName$-X64-Profile' } }
|
|
Alias( '$ProjectName$-Release' ) { .Targets = { '$ProjectName$-X86-Release', '$ProjectName$-X64-Release' } }
|
|
|
|
// Per-Platform
|
|
Alias( '$ProjectName$-X86' ) { .Targets = { '$ProjectName$-X86-Debug', '$ProjectName$-X64-Release', '$ProjectName$-X86-Profile' } }
|
|
Alias( '$ProjectName$-X64' ) { .Targets = { '$ProjectName$-X64-Debug', '$ProjectName$-X64-Release', '$ProjectName$-X64-Profile' } }
|
|
Alias( '$ProjectName$-X86Clang' ) { .Targets = { '$ProjectName$-X86Clang-Debug' } }
|
|
|
|
// All
|
|
Alias( '$ProjectName$' )
|
|
{
|
|
.Targets = { '$ProjectName$-Debug', '$ProjectName$-Profile', '$ProjectName$-Release' }
|
|
}
|
|
}
|