Fastbuild all work for static linking
Need : Dll for game and lib to do hot reload Need : static for release only Way to compile only julietapp only shader app, only juliet.dll and game.dll
This commit is contained in:
22
fbuild.bff
22
fbuild.bff
@@ -59,12 +59,12 @@ Settings
|
||||
#if __WINDOWS__
|
||||
.Debug_Optimizations_MSVC =
|
||||
[
|
||||
.CompilerOptions = ' /MTd /Od /RTC1 /GS /Oy-'
|
||||
.CompilerOptions = ' /MDd /Od /RTC1 /GS /Oy-'
|
||||
.CompilerOptionsC = .CompilerOptions
|
||||
]
|
||||
.Profile_Optimizations_MSVC =
|
||||
[
|
||||
.CompilerOptions = ' /MT /Ox /Oy /Oi /GS- /GF /Gy /Gw /Zo'
|
||||
.CompilerOptions = ' /MD /Ox /Oy /Oi /GS- /GF /Gy /Gw /Zo'
|
||||
.CompilerOptionsC = .CompilerOptions
|
||||
.LinkerOptions = ' /OPT:REF,ICF'
|
||||
]
|
||||
@@ -83,7 +83,7 @@ Settings
|
||||
.Debug_Optimizations =
|
||||
[
|
||||
#if __WINDOWS__ // Using clang-cl.exe on Windows
|
||||
.CompilerOptions = ' /Od'
|
||||
.CompilerOptions = ' /MDd /Od'
|
||||
#else
|
||||
.CompilerOptions = ' -O0'
|
||||
#endif
|
||||
@@ -92,6 +92,11 @@ Settings
|
||||
.Profile_Optimizations =
|
||||
[
|
||||
.CompilerOptions = ' -O2'
|
||||
|
||||
#if __WINDOWS__ // Using clang-cl.exe on Windows
|
||||
.CompilerOptions + ' /MD'
|
||||
#endif
|
||||
|
||||
.CompilerOptionsC = .CompilerOptions
|
||||
]
|
||||
.Release_Optimizations =
|
||||
@@ -148,9 +153,9 @@ Settings
|
||||
[
|
||||
.ProjectBuildCommand = 'cd ^$(SolutionDir)\..\..\Code\ & fbuild -vs -dist -monitor -cache ^$(ProjectName)-^$(Configuration)'
|
||||
.ProjectRebuildCommand = 'cd ^$(SolutionDir)\..\..\Code\ & fbuild -vs -dist -monitor -cache -clean ^$(ProjectName)-^$(Configuration)'
|
||||
.OutputDirectory = '^$(SolutionDir)\Temp'
|
||||
.IntermediateDirectory = '^$(SolutionDir)\Temp'
|
||||
.BuildLogFile = '^$(SolutionDir)\Temp\^$(ProjectName)-^$(Configuration).log'
|
||||
.OutputDirectory = '^$(SolutionDir)\Intermediate'
|
||||
.IntermediateDirectory = '^$(SolutionDir)\Intermediate'
|
||||
.BuildLogFile = '^$(SolutionDir)\Intermediate\^$(ProjectName)-^$(Configuration).log'
|
||||
.Platform = 'x64'
|
||||
.PlatformToolset = '$VS_PlatformToolset$'
|
||||
]
|
||||
@@ -179,6 +184,8 @@ Settings
|
||||
|
||||
// Include all projects to build
|
||||
#include "Juliet/Juliet.bff"
|
||||
#include "Game/Game.bff"
|
||||
#include "JulietApp/JulietApp.Bff"
|
||||
|
||||
// Aliases : All-$Platform$-$Config$
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -193,8 +200,7 @@ ForEach( .BuildConfig in .BuildConfigs )
|
||||
//------------------------------------------------------------------------------
|
||||
Alias( 'Exes' )
|
||||
{
|
||||
.Targets = { 'FBuildWorker-Debug', 'FBuildWorker-Profile', 'FBuildWorker-Release'
|
||||
'FBuild-Debug', 'FBuild-Profile', 'FBuild-Release' }
|
||||
.Targets = { 'JulietApp-Debug', 'JulietApp-Profile', 'JulietApp-Release' }
|
||||
}
|
||||
|
||||
// Aliases : All-$Platform$
|
||||
|
||||
Reference in New Issue
Block a user