Change build scripts to call build tool with dotnet
This commit is contained in:
@@ -10,8 +10,8 @@ if [ $testfilesize -le 1000 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Compile the build tool.
|
# Compile the build tool.
|
||||||
xbuild /nologo /verbosity:quiet "Source/Tools/Flax.Build/Flax.Build.csproj" /property:Configuration=Release /property:Platform=AnyCPU /target:Build
|
msbuild /nologo /verbosity:quiet "Source/Tools/Flax.Build/Flax.Build.csproj" /property:Configuration=Release /property:Platform=AnyCPU /target:Build,Publish /p:PublishDir=./Binaries/Tools
|
||||||
|
|
||||||
# Run the build tool using the provided arguments.
|
# Run the build tool using the provided arguments.
|
||||||
#mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55555 Binaries/Tools/Flax.Build.exe "$@"
|
#mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55555 Binaries/Tools/Flax.Build.exe "$@"
|
||||||
mono Binaries/Tools/Flax.Build.exe "$@"
|
dotnet Binaries/Tools/Flax.Build.exe "$@"
|
||||||
|
|||||||
@@ -28,9 +28,11 @@ fc /b Cache\Intermediate\Build\Flax.Build.Files.txt Cache\Intermediate\Build\Fla
|
|||||||
if not errorlevel 1 goto SkipClean
|
if not errorlevel 1 goto SkipClean
|
||||||
|
|
||||||
copy /y Cache\Intermediate\Build\Flax.Build.Files.txt Cache\Intermediate\Build\Flax.Build.PrevFiles.txt >nul
|
copy /y Cache\Intermediate\Build\Flax.Build.Files.txt Cache\Intermediate\Build\Flax.Build.PrevFiles.txt >nul
|
||||||
|
%MSBUILD_PATH% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /target:Restore /property:RestorePackagesConfig=True
|
||||||
%MSBUILD_PATH% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Clean
|
%MSBUILD_PATH% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Clean
|
||||||
:SkipClean
|
:SkipClean
|
||||||
%MSBUILD_PATH% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Build
|
%MSBUILD_PATH% /nologo /verbosity:quiet Source\Tools\Flax.Build\Flax.Build.csproj /property:Configuration=Release /property:Platform=AnyCPU /target:Build,Publish /p:PublishDir=C:\dev\Flax\FlaxEngine\Binaries\Tools /p:SelfContained=true /p:RuntimeIdentifier=win-x64
|
||||||
|
::/p:PublishSingleFile=true /p:RuntimeIdentifier=win-x64
|
||||||
if errorlevel 1 goto Error_CompilationFailed
|
if errorlevel 1 goto Error_CompilationFailed
|
||||||
|
|
||||||
Binaries\Tools\Flax.Build.exe %*
|
Binaries\Tools\Flax.Build.exe %*
|
||||||
|
|||||||
@@ -175,9 +175,9 @@ namespace Flax.Build.Projects.VisualStudio
|
|||||||
vcProjectFileContent.AppendLine(" <LibraryWPath />");
|
vcProjectFileContent.AppendLine(" <LibraryWPath />");
|
||||||
vcProjectFileContent.AppendLine(" <SourcePath />");
|
vcProjectFileContent.AppendLine(" <SourcePath />");
|
||||||
vcProjectFileContent.AppendLine(" <ExcludePath />");
|
vcProjectFileContent.AppendLine(" <ExcludePath />");
|
||||||
vcProjectFileContent.AppendLine(string.Format(" <NMakeBuildCommandLine>{0} -build</NMakeBuildCommandLine>", cmdLine));
|
vcProjectFileContent.AppendLine(string.Format(" <NMakeBuildCommandLine>dotnet {0} -build</NMakeBuildCommandLine>", cmdLine));
|
||||||
vcProjectFileContent.AppendLine(string.Format(" <NMakeReBuildCommandLine>{0} -rebuild</NMakeReBuildCommandLine>", cmdLine));
|
vcProjectFileContent.AppendLine(string.Format(" <NMakeReBuildCommandLine>dotnet {0} -rebuild</NMakeReBuildCommandLine>", cmdLine));
|
||||||
vcProjectFileContent.AppendLine(string.Format(" <NMakeCleanCommandLine>{0} -clean</NMakeCleanCommandLine>", cmdLine));
|
vcProjectFileContent.AppendLine(string.Format(" <NMakeCleanCommandLine>dotnet {0} -clean</NMakeCleanCommandLine>", cmdLine));
|
||||||
vcProjectFileContent.AppendLine(string.Format(" <NMakeOutput>{0}</NMakeOutput>", outputTargetFilePath));
|
vcProjectFileContent.AppendLine(string.Format(" <NMakeOutput>{0}</NMakeOutput>", outputTargetFilePath));
|
||||||
|
|
||||||
if (preprocessorDefinitions.Count != 0)
|
if (preprocessorDefinitions.Count != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user