initial OS X app building stuff. May be broken.

git-svn-id: svn://svn.icculus.org/netradiant/trunk@176 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
divverent 2009-01-15 06:35:13 +00:00
parent ccf6f80900
commit f1136218cf
6 changed files with 34 additions and 1 deletions

View File

@ -191,7 +191,10 @@ ifeq ($(OS),Darwin)
# workaround: we have no "ldd" for OS X, so... # workaround: we have no "ldd" for OS X, so...
LDD = LDD =
#$(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch) INSTALLDIR_BASE := $(INSTALLDIR)
INSTALLDIR := $(INSTALLDIR_BASE)/NetRadiant.app/Contents/MacOS/install
endif
else else
$(error Unsupported build OS: $(OS)) $(error Unsupported build OS: $(OS))
@ -935,6 +938,7 @@ $(INSTALLDIR)/heretic2/h2data.$(EXE): \
install-data: binaries install-data: binaries
$(MKDIR) $(INSTALLDIR)/games $(MKDIR) $(INSTALLDIR)/games
$(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune $(FIND) $(INSTALLDIR)/ -name .svn -exec $(RM_R) {} \; -prune
[ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/
set -ex; \ set -ex; \
for GAME in games/*; do \ for GAME in games/*; do \
if [ -d "$$GAME/tools" ]; then \ if [ -d "$$GAME/tools" ]; then \

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>netradiant.sh</string>
<key>CFBundleIconFile</key>
<string>NetRadiant</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.5.0</string>
</dict>
</plist>

View File

@ -0,0 +1,10 @@
#!/bin/sh
MY_DIRECTORY="${0%/*}" # cut off the script name
MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off MacOS
MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off Contents
#export DYLD_LIBRARY_PATH="$MY_DIRECTORY/Contents/MacOS"
cd "$MY_DIRECTORY/Contents/MacOS/NetRadiant/install"
exec /usr/bin/open-x11 ./radiant.ppc

View File

@ -0,0 +1 @@
APPL????