NeuralAmpModelerPlugin

Plugin for Neural Amp Modeler
Log | Files | Refs | Submodules | README | LICENSE

postbuild-win.bat (4176B)


      1 @echo off
      2 
      3 REM - CALL "$(SolutionDir)scripts\postbuild-win.bat" "$(TargetExt)" "$(BINARY_NAME)" "$(Platform)" "$(COPY_VST2)" "$(TargetPath)" "$(VST2_32_PATH)" "$(VST2_64_PATH)" "$(VST3_32_PATH)" "$(VST3_64_PATH)" "$(AAX_32_PATH)" "$(AAX_64_PATH)" "$(BUILD_DIR)" "$(VST_ICON)" "$(AAX_ICON)" "
      4 REM $(CREATE_BUNDLE_SCRIPT)"
      5 
      6 set FORMAT=%1
      7 set NAME=%2
      8 set PLATFORM=%3
      9 set COPY_VST2=%4
     10 set BUILT_BINARY=%5
     11 set VST2_32_PATH=%6
     12 set VST2_64_PATH=%7 
     13 set VST3_32_PATH=%8
     14 set VST3_64_PATH=%9
     15 shift
     16 shift 
     17 shift
     18 shift
     19 shift 
     20 shift
     21 set AAX_32_PATH=%4
     22 set AAX_64_PATH=%5
     23 set BUILD_DIR=%6
     24 set VST_ICON=%7
     25 set AAX_ICON=%8
     26 set CREATE_BUNDLE_SCRIPT=%9
     27 
     28 echo POSTBUILD SCRIPT VARIABLES -----------------------------------------------------
     29 echo FORMAT %FORMAT% 
     30 echo NAME %NAME% 
     31 echo PLATFORM %PLATFORM% 
     32 echo COPY_VST2 %COPY_VST2% 
     33 echo BUILT_BINARY %BUILT_BINARY% 
     34 echo VST2_32_PATH %VST2_32_PATH% 
     35 echo VST2_64_PATH %VST2_64_PATH% 
     36 echo VST3_32_PATH %VST3_32_PATH% 
     37 echo VST3_64_PATH %VST3_64_PATH% 
     38 echo BUILD_DIR %BUILD_DIR%
     39 echo VST_ICON %VST_ICON% 
     40 echo AAX_ICON %AAX_ICON% 
     41 echo CREATE_BUNDLE_SCRIPT %CREATE_BUNDLE_SCRIPT%
     42 echo END POSTBUILD SCRIPT VARIABLES -----------------------------------------------------
     43 
     44 if %PLATFORM% == "Win32" (
     45   if %FORMAT% == ".exe" (
     46     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%_%PLATFORM%.exe
     47   )
     48 
     49   if %FORMAT% == ".dll" (
     50     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%_%PLATFORM%.dll
     51   )
     52   
     53   if %FORMAT% == ".dll" (
     54     if %COPY_VST2% == "1" (
     55       echo copying 32bit binary to 32bit VST2 Plugins folder ... 
     56       copy /y %BUILT_BINARY% %VST2_32_PATH%
     57     ) else (
     58       echo not copying 32bit VST2 binary
     59     )
     60   )
     61   
     62   if %FORMAT% == ".vst3" (
     63     echo copying 32bit binary to VST3 BUNDLE ..
     64     call %CREATE_BUNDLE_SCRIPT% %BUILD_DIR%\%NAME%.vst3 %VST_ICON% %FORMAT%
     65     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%.vst3\Contents\x86-win
     66     if exist %VST3_32_PATH% ( 
     67       echo copying VST3 bundle to 32bit VST3 Plugins folder ...
     68       call %CREATE_BUNDLE_SCRIPT% %VST3_32_PATH%\%NAME%.vst3 %VST_ICON% %FORMAT%
     69       xcopy /E /H /Y %BUILD_DIR%\%NAME%.vst3\Contents\*  %VST3_32_PATH%\%NAME%.vst3\Contents\
     70     )
     71   )
     72   
     73   if %FORMAT% == ".aaxplugin" (
     74     echo copying 32bit binary to AAX BUNDLE ..
     75     call %CREATE_BUNDLE_SCRIPT% %BUILD_DIR%\%NAME%.aaxplugin %AAX_ICON% %FORMAT%
     76     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%.aaxplugin\Contents\Win32
     77     echo copying 32bit bundle to 32bit AAX Plugins folder ... 
     78     call %CREATE_BUNDLE_SCRIPT% %BUILD_DIR%\%NAME%.aaxplugin %AAX_ICON% %FORMAT%
     79     xcopy /E /H /Y %BUILD_DIR%\%NAME%.aaxplugin\Contents\* %AAX_32_PATH%\%NAME%.aaxplugin\Contents\
     80   )
     81 )
     82 
     83 if %PLATFORM% == "x64" (
     84   if not exist "%ProgramFiles(x86)%" (
     85     echo "This batch script fails on 32 bit windows... edit accordingly"
     86   )
     87 
     88   if %FORMAT% == ".exe" (
     89     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%_%PLATFORM%.exe
     90   )
     91 
     92   if %FORMAT% == ".dll" (
     93     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%_%PLATFORM%.dll
     94   )
     95   
     96   if %FORMAT% == ".dll" (
     97     if %COPY_VST2% == "1" (
     98       echo copying 64bit binary to 64bit VST2 Plugins folder ... 
     99       copy /y %BUILT_BINARY% %VST2_64_PATH%
    100     ) else (
    101       echo not copying 64bit VST2 binary
    102     )
    103   )
    104   
    105   if %FORMAT% == ".vst3" (
    106     echo copying 64bit binary to VST3 BUNDLE ...
    107     call %CREATE_BUNDLE_SCRIPT% %BUILD_DIR%\%NAME%.vst3 %VST_ICON% %FORMAT%
    108     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%.vst3\Contents\x86_64-win
    109     if exist %VST3_64_PATH% (
    110       echo copying VST3 bundle to 64bit VST3 Plugins folder ...
    111       call %CREATE_BUNDLE_SCRIPT% %VST3_64_PATH%\%NAME%.vst3 %VST_ICON% %FORMAT%
    112       xcopy /E /H /Y %BUILD_DIR%\%NAME%.vst3\Contents\*  %VST3_64_PATH%\%NAME%.vst3\Contents\
    113     )
    114   )
    115   
    116   if %FORMAT% == ".aaxplugin" (
    117     echo copying 64bit binary to AAX BUNDLE ...
    118     call %CREATE_BUNDLE_SCRIPT% %BUILD_DIR%\%NAME%.aaxplugin %AAX_ICON% %FORMAT%
    119     copy /y %BUILT_BINARY% %BUILD_DIR%\%NAME%.aaxplugin\Contents\x64
    120     echo copying 64bit bundle to 64bit AAX Plugins folder ... 
    121     call %CREATE_BUNDLE_SCRIPT% %BUILD_DIR%\%NAME%.aaxplugin %AAX_ICON% %FORMAT%
    122     xcopy /E /H /Y %BUILD_DIR%\%NAME%.aaxplugin\Contents\* %AAX_64_PATH%\%NAME%.aaxplugin\Contents\
    123   )
    124 )