gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

make.bat (1553B)


      1 @echo off
      2 
      3 rem Compile the java PortMidi interface classes.
      4 javac jportmidi/*.java
      5 
      6 rem Compile the pmdefaults application.
      7 javac -classpath . pmdefaults/*.java
      8 
      9 rem Temporarily copy the portmusic_logo.png file here to add to the jar file.
     10 copy pmdefaults\portmusic_logo.png . > nul
     11 
     12 rem Create a directory to hold the distribution.
     13 mkdir win32
     14 
     15 rem Attempt to copy the interface DLL to the distribution directory.
     16 
     17 if exist "..\release\pmjni.dll"  goto have-dll
     18 
     19 echo "ERROR: pmjni.dll not found!"
     20 exit /b 1
     21 
     22 :have-dll
     23 copy "..\release\pmjni.dll" win32\pmjni.dll > nul
     24 
     25 rem Create a java archive (jar) file of the distribution.
     26 jar cmf pmdefaults\manifest.txt win32\pmdefaults.jar pmdefaults\*.class portmusic_logo.png jportmidi\*.class
     27 
     28 rem Clean up the temporary image file now that it is in the jar file.
     29 del portmusic_logo.png
     30 
     31 rem Copy the java execution code obtained from
     32 rem http://devwizard.free.fr/html/en/JavaExe.html to the distribution
     33 rem directory.  The copy also renames the file to our desired executable
     34 rem name.
     35 copy JavaExe.exe win32\pmdefaults.exe > nul
     36 
     37 rem Integrate the icon into the executable using UpdateRsrcJavaExe from
     38 rem http://devwizard.free.fr
     39 UpdateRsrcJavaExe -run -exe=win32\pmdefaults.exe -ico=pmdefaults\pmdefaults.ico
     40 
     41 rem Copy the 32-bit windows read me file to the distribution directory.
     42 copy pmdefaults\readme-win32.txt win32\README.txt > nul
     43 
     44 rem Copy the license file to the distribution directory.
     45 copy pmdefaults\pmdefaults-license.txt win32\license.txt > nul
     46 
     47 echo "You can run pmdefaults.exe in win32"