From 988f5d2b5343850e19ad1512cefe6c53953aa02e Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 7 Oct 2024 06:50:04 +0200 Subject: Added bunch of examples --- portmidi/pm_java/make.bat | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 portmidi/pm_java/make.bat (limited to 'portmidi/pm_java/make.bat') diff --git a/portmidi/pm_java/make.bat b/portmidi/pm_java/make.bat new file mode 100644 index 0000000..ff15c2b --- /dev/null +++ b/portmidi/pm_java/make.bat @@ -0,0 +1,50 @@ +@echo off + +rem This is an out-of-date script for Windows to build a Java application +rem (PmDefaults) with PortMidi external library.xb + +rem Compile the java PortMidi interface classes. +javac jportmidi/*.java + +rem Compile the pmdefaults application. +javac -classpath . pmdefaults/*.java + +rem Temporarily copy the portmusic_logo.png file here to add to the jar file. +copy pmdefaults\portmusic_logo.png . > nul + +rem Create a directory to hold the distribution. +mkdir win32 + +rem Attempt to copy the interface DLL to the distribution directory. + +if exist "..\release\pmjni.dll" goto have-dll + +echo "ERROR: pmjni.dll not found!" +exit /b 1 + +:have-dll +copy "..\release\pmjni.dll" win32\pmjni.dll > nul + +rem Create a java archive (jar) file of the distribution. +jar cmf pmdefaults\manifest.txt win32\pmdefaults.jar pmdefaults\*.class portmusic_logo.png jportmidi\*.class + +rem Clean up the temporary image file now that it is in the jar file. +del portmusic_logo.png + +rem Copy the java execution code obtained from +rem http://devwizard.free.fr/html/en/JavaExe.html to the distribution +rem directory. The copy also renames the file to our desired executable +rem name. +copy JavaExe.exe win32\pmdefaults.exe > nul + +rem Integrate the icon into the executable using UpdateRsrcJavaExe from +rem http://devwizard.free.fr +UpdateRsrcJavaExe -run -exe=win32\pmdefaults.exe -ico=pmdefaults\pmdefaults.ico + +rem Copy the 32-bit windows read me file to the distribution directory. +copy pmdefaults\readme-win32.txt win32\README.txt > nul + +rem Copy the license file to the distribution directory. +copy pmdefaults\pmdefaults-license.txt win32\license.txt > nul + +echo "You can run pmdefaults.exe in win32" -- cgit v1.2.3