aboutsummaryrefslogtreecommitdiff
path: root/portmidi/pm_java/make.bat
diff options
context:
space:
mode:
Diffstat (limited to 'portmidi/pm_java/make.bat')
-rw-r--r--portmidi/pm_java/make.bat50
1 files changed, 50 insertions, 0 deletions
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 @@
1@echo off
2
3rem This is an out-of-date script for Windows to build a Java application
4rem (PmDefaults) with PortMidi external library.xb
5
6rem Compile the java PortMidi interface classes.
7javac jportmidi/*.java
8
9rem Compile the pmdefaults application.
10javac -classpath . pmdefaults/*.java
11
12rem Temporarily copy the portmusic_logo.png file here to add to the jar file.
13copy pmdefaults\portmusic_logo.png . > nul
14
15rem Create a directory to hold the distribution.
16mkdir win32
17
18rem Attempt to copy the interface DLL to the distribution directory.
19
20if exist "..\release\pmjni.dll" goto have-dll
21
22echo "ERROR: pmjni.dll not found!"
23exit /b 1
24
25:have-dll
26copy "..\release\pmjni.dll" win32\pmjni.dll > nul
27
28rem Create a java archive (jar) file of the distribution.
29jar cmf pmdefaults\manifest.txt win32\pmdefaults.jar pmdefaults\*.class portmusic_logo.png jportmidi\*.class
30
31rem Clean up the temporary image file now that it is in the jar file.
32del portmusic_logo.png
33
34rem Copy the java execution code obtained from
35rem http://devwizard.free.fr/html/en/JavaExe.html to the distribution
36rem directory. The copy also renames the file to our desired executable
37rem name.
38copy JavaExe.exe win32\pmdefaults.exe > nul
39
40rem Integrate the icon into the executable using UpdateRsrcJavaExe from
41rem http://devwizard.free.fr
42UpdateRsrcJavaExe -run -exe=win32\pmdefaults.exe -ico=pmdefaults\pmdefaults.ico
43
44rem Copy the 32-bit windows read me file to the distribution directory.
45copy pmdefaults\readme-win32.txt win32\README.txt > nul
46
47rem Copy the license file to the distribution directory.
48copy pmdefaults\pmdefaults-license.txt win32\license.txt > nul
49
50echo "You can run pmdefaults.exe in win32"