Skip to content

Commit

Permalink
Traktor: Using msbuild when building from VS code on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Feb 29, 2024
1 parent 431fc06 commit a4e24ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 46 deletions.
29 changes: 0 additions & 29 deletions scripts/build-projects-fbuild-win64.bat

This file was deleted.

20 changes: 9 additions & 11 deletions scripts/build-vscode.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@ set PLATFORM=%1
set CONFIG=%2

call %~dp0config.bat
call %~dp0config-vs-x64.bat

echo Building...
echo Building %CONFIG%...
echo %TRAKTOR_HOME%
echo %FBUILD%

if "%PLATFORM%" == "Windows" (
call %~dp0config-vs-x64.bat
pushd "%TRAKTOR_HOME%\build\win64"
%FBUILD% -config "Extern Win64.bff" -noprogress -cache %CONFIG%
%FBUILD% -config "Traktor Win64.bff" -noprogress -cache %CONFIG%
popd
pushd "%TRAKTOR_HOME%\build\win64"
msbuild -m "Traktor Win64.sln" /p:Configuration=%CONFIG% /p:Platform="x64"
popd
)

if "%PLATFORM%" == "Android" (
pushd "%TRAKTOR_HOME%\build\android"
%TRAKTOR_HOME%\3rdp\jom-windows\jom /L /F "Extern Android.mak" %CONFIG%
%TRAKTOR_HOME%\3rdp\jom-windows\jom /L /F "Traktor Android.mak" %CONFIG%
popd
pushd "%TRAKTOR_HOME%\build\android"
%TRAKTOR_HOME%\3rdp\jom-windows\jom /L /F "Extern Android.mak" %CONFIG%
%TRAKTOR_HOME%\3rdp\jom-windows\jom /L /F "Traktor Android.mak" %CONFIG%
popd
)
6 changes: 0 additions & 6 deletions scripts/config.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ set VMA_SDK=%TRAKTOR_HOME%\3rdp\VulkanMemoryAllocator
:: Export name of solution builder binary.
set SOLUTIONBUILDER=%TRAKTOR_HOME%\bin\win64\releasestatic\Traktor.SolutionBuilder.App

:: Export path to Ninja binary.
set NINJA=%TRAKTOR_HOME%\3rdp\ninja-windows\ninja

:: Export path to FBuild executable.
set FBUILD=%TRAKTOR_HOME%\3rdp\fastbuild-windows\FBuild.exe

:: Android SDK
set ANDROID_HOME=%TRAKTOR_HOME:\=/%/3rdp/android-sdk-windows
set ANDROID_NDK_ROOT=%ANDROID_HOME:\=/%/ndk-bundle

0 comments on commit a4e24ec

Please sign in to comment.