Build an app bundle on OS X

This commit is contained in:
Brian Anderson 2012-04-23 17:43:45 -07:00
parent f7e3be4d6a
commit 5f3fb70bf5
3 changed files with 55 additions and 1 deletions

1
.gitignore vendored
View file

@ -8,3 +8,4 @@
*.dummy
servo-test
Makefile
Servo.app

34
Info.plist Normal file
View file

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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>Servo</string>
<key>CFBundleIconFile</key>
<string>Calculator.icns</string>
<key>CFBundleIdentifier</key>
<string>org.mozilla.servo</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Servo</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.1</string>
<key>LSHasLocalizedDisplayName</key>
<true/>
<key>LSMinimumSystemVersion</key>
<string>10.3</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsSuddenTermination</key>
<false/>
</dict>
</plist>

View file

@ -49,7 +49,7 @@ CLEAN_DEPS += \
$(NULL)
.PHONY: all
all: servo
all: servo package
servo: $(SERVO_DEPS)
$(RUSTC) $(RUSTFLAGS) -o $@ $<
@ -101,3 +101,22 @@ clean-cocoa:
.PHONY: clean-servo
clean-servo:
rm -f servo servo-test
ifeq ($(OSTYPE),darwin)
package: servo
mkdir -p Servo.app/Contents/MacOS/src/rust-cocoa
mkdir -p Servo.app/Contents/MacOS/src/rust-sdl
mkdir -p Servo.app/Contents/MacOS/src/rust-azure
cp Info.plist Servo.app/Contents/
cp servo Servo.app/Contents/MacOS/
cp src/rust-cocoa/lib*.dylib Servo.app/Contents/MacOS/src/rust-cocoa/
cp src/rust-sdl/lib*.dylib Servo.app/Contents/MacOS/src/rust-sdl/
cp src/rust-azure/lib*.dylib Servo.app/Contents/MacOS/src/rust-azure/
else
.PHONY: package
package:
endif