improve build.bat
This commit is contained in:
Vendored
+20
-11
@@ -4,6 +4,24 @@
|
||||
.ProjectName = 'ImGui'
|
||||
.ProjectPath = 'External/imgui'
|
||||
|
||||
// Unity
|
||||
//--------------------------------------------------------------------------
|
||||
Unity( '$ProjectName$-Unity' )
|
||||
{
|
||||
.UnityInputFiles = {
|
||||
'$ProjectPath$/imgui.cpp',
|
||||
'$ProjectPath$/imgui_demo.cpp',
|
||||
'$ProjectPath$/imgui_draw.cpp',
|
||||
'$ProjectPath$/imgui_tables.cpp',
|
||||
'$ProjectPath$/imgui_widgets.cpp',
|
||||
'$ProjectPath$/backends/imgui_impl_win32.cpp',
|
||||
'$ProjectPath$/backends/imgui_impl_dx12.cpp'
|
||||
}
|
||||
.UnityOutputPath = 'Intermediate/$ProjectPath$/'
|
||||
.UnityOutputPattern = '$ProjectName$_Unity*.cpp'
|
||||
.UnityMaxFiles = 1
|
||||
}
|
||||
|
||||
// Library
|
||||
//--------------------------------------------------------------------------
|
||||
ForEach( .BuildConfig in .BuildConfigs )
|
||||
@@ -15,17 +33,8 @@
|
||||
//--------------------------------------------------------------------------
|
||||
ObjectList( '$ProjectName$-Objs-$Platform$-$BuildConfigName$' )
|
||||
{
|
||||
// Core ImGui files
|
||||
.CompilerInputFiles = {
|
||||
'$ProjectPath$/imgui.cpp',
|
||||
'$ProjectPath$/imgui_demo.cpp',
|
||||
'$ProjectPath$/imgui_draw.cpp',
|
||||
'$ProjectPath$/imgui_tables.cpp',
|
||||
'$ProjectPath$/imgui_widgets.cpp',
|
||||
// Backends
|
||||
'$ProjectPath$/backends/imgui_impl_win32.cpp',
|
||||
'$ProjectPath$/backends/imgui_impl_dx12.cpp'
|
||||
}
|
||||
// Input (Unity)
|
||||
.CompilerInputUnity = '$ProjectName$-Unity'
|
||||
|
||||
// Extra Compiler Options
|
||||
.CompilerOptions + ' "-I$ProjectPath$"'
|
||||
|
||||
Reference in New Issue
Block a user