File: make.bat

package info (click to toggle)
portmidi 2%3A2.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,136 kB
  • sloc: ansic: 8,188; java: 532; cpp: 461; makefile: 55
file content (50 lines) | stat: -rw-r--r-- 1,729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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"