mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Build an app bundle on OS X
This commit is contained in:
parent
f7e3be4d6a
commit
5f3fb70bf5
3 changed files with 55 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,3 +8,4 @@
|
||||||
*.dummy
|
*.dummy
|
||||||
servo-test
|
servo-test
|
||||||
Makefile
|
Makefile
|
||||||
|
Servo.app
|
||||||
|
|
34
Info.plist
Normal file
34
Info.plist
Normal 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>
|
21
Makefile.in
21
Makefile.in
|
@ -49,7 +49,7 @@ CLEAN_DEPS += \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: servo
|
all: servo package
|
||||||
|
|
||||||
servo: $(SERVO_DEPS)
|
servo: $(SERVO_DEPS)
|
||||||
$(RUSTC) $(RUSTFLAGS) -o $@ $<
|
$(RUSTC) $(RUSTFLAGS) -o $@ $<
|
||||||
|
@ -101,3 +101,22 @@ clean-cocoa:
|
||||||
.PHONY: clean-servo
|
.PHONY: clean-servo
|
||||||
clean-servo:
|
clean-servo:
|
||||||
rm -f servo servo-test
|
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
|
Loading…
Add table
Add a link
Reference in a new issue