forked from rsjaffe/MIDI2LR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.bat
21 lines (20 loc) · 1014 Bytes
/
compile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
REM For compiling C++ source, need to run this in the VS developer command prompt.
REM For details, see https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs
REM To compile lua files, obtain/build version 5.1.4 of luac.exe and place in this directory.
REM This is the Windows version of the batch file. For Mac or Linux will need appropriate batch file.
SETLOCAL ENABLEEXTENSIONS
IF EXIST luac.exe (
IF NOT EXIST Source\LRPlugin\MIDI2LR.lrplugin\compiled\ mkdir Source\LRPlugin\MIDI2LR.lrplugin\compiled\
PUSHD Source\LRPlugin\MIDI2LR.lrplugin\
FOR %%a IN (*.lua) DO ..\..\..\luac -o compiled/%%a %%a
POPD
) ELSE (
ECHO luac.exe not found, lua files not compiled.
ECHO
)
IF DEFINED VSINSTALLDIR (
msbuild Builds\VisualStudio2017\MIDI2LR_App.vcxproj /p:configuration=Release /p:platform=x64
msbuild Builds\VisualStudio2017\MIDI2LR_App.vcxproj /p:configuration=Debug /p:platform=x64
) ELSE (
echo Not in Visual Studio developer command prompt, build project will not be called.
)