diff options
author | Keith Packard <keithp@keithp.com> | 2010-07-29 11:09:19 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-07-29 11:09:19 -0700 |
commit | 950f0a8c54e5835ee5d8b0aea360bd8362c21bc5 (patch) | |
tree | e80bf24bd3089d21c3d3b5a5201811b3a7592781 | |
parent | 669c5f52abb972a82ed6efbee7a8c7d20afb5cd0 (diff) |
altosui: construct Darwin application directory
This adds the necessary files and build steps to construct
AltosUI.app on a Darwin system.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | ao-tools/altosui/AltosUI.app/Contents/Info.plist | 38 | ||||
-rwxr-xr-x | ao-tools/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub | bin | 0 -> 61296 bytes | |||
-rw-r--r-- | ao-tools/altosui/AltosUI.app/Contents/PkgInfo | 1 | ||||
-rw-r--r-- | ao-tools/altosui/AltosUI.app/Contents/Resources/AltosUIIcon.icns (renamed from ao-tools/altosui/AltosUIIcon.icns) | bin | 129010 -> 129010 bytes | |||
-rw-r--r-- | ao-tools/altosui/Makefile | 28 |
5 files changed, 66 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosUI.app/Contents/Info.plist b/ao-tools/altosui/AltosUI.app/Contents/Info.plist new file mode 100644 index 00000000..97b1b59c --- /dev/null +++ b/ao-tools/altosui/AltosUI.app/Contents/Info.plist @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> +<plist version="0.9"> +<dict> + <key>CFBundleName</key> + <string>altosui</string> + <key>CFBundleVersion</key> + <string>100.0</string> + <key>CFBundleAllowMixedLocalizations</key> + <string>true</string> + <key>CFBundleExecutable</key> + <string>JavaApplicationStub</string> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleGetInfoString</key> + <string>AltOS UI version 0.7</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleIconFile</key> + <string>AltosUIIcon.icns</string> + <key>Java</key> + <dict> + <key>MainClass</key> + <string>altosui.AltosUI</string> + <key>JVMVersion</key> + <string>1.5+</string> + <key>ClassPath</key> + <array> + <string>$JAVAROOT/altosui.jar</string> + <string>$JAVAROOT/freetts.jar</string> + </array> + </dict> +</dict> +</plist> diff --git a/ao-tools/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub b/ao-tools/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub Binary files differnew file mode 100755 index 00000000..c661d3e1 --- /dev/null +++ b/ao-tools/altosui/AltosUI.app/Contents/MacOS/JavaApplicationStub diff --git a/ao-tools/altosui/AltosUI.app/Contents/PkgInfo b/ao-tools/altosui/AltosUI.app/Contents/PkgInfo new file mode 100644 index 00000000..8a43480f --- /dev/null +++ b/ao-tools/altosui/AltosUI.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPLAM.O diff --git a/ao-tools/altosui/AltosUIIcon.icns b/ao-tools/altosui/AltosUI.app/Contents/Resources/AltosUIIcon.icns Binary files differindex fe49f362..fe49f362 100644 --- a/ao-tools/altosui/AltosUIIcon.icns +++ b/ao-tools/altosui/AltosUI.app/Contents/Resources/AltosUIIcon.icns diff --git a/ao-tools/altosui/Makefile b/ao-tools/altosui/Makefile index a2d70c18..51a85a13 100644 --- a/ao-tools/altosui/Makefile +++ b/ao-tools/altosui/Makefile @@ -33,7 +33,17 @@ FREETTSJAR= \ JAVAFLAGS=-Xlint:unchecked -all: altosui.jar +OS:=$(shell uname) + +ifeq ($(OS),Linux) +ALTOSUI_APP=altosui +endif + +ifeq ($(OS),Darwin) +ALTOSUI_APP=AltosUI.app/Contents/Resources/Java/altosui.jar +endif + +all: altosui.jar $(ALTOSUI_APP) $(CLASSFILES): @@ -54,6 +64,22 @@ classes/libaltosJNI: $(FREETTSJAR): ln -s $(FREETTSLIB)/$@ . +ifeq ($(OS),Darwin) +RESOURCES=altosui.jar $(FREETTSJAR) ../libaltos/libaltos.dylib + +$(ALTOSUI_APP): $(RESOURCES) + mkdir -p AltosUI.app/Contents/Resources/Java + cp $(RESOURCES) AltosUI.app/Contents/Resources/Java + +endif + +ifeq ($(OS),Linux) +altosui: + echo "#!/bin/sh" > $@ + echo "exec java -Djava.library.path=../libaltos -jar altosui.jar" >> $@ +endif + clean: rm -f *.class $(FREETTSJAR) altosui.jar + rm -f AltosUI.app/Contents/Resources/Java/* rm -rf classes |