mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Auto merge of #6306 - metajack:shared-target-dir, r=mbrubeck
This speeds up `./mach build --dev` followed by `./mach build-cef` by 25%. When rust-lang/cargo#497 is fixed, this speedup will increase dramatically. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6306) <!-- Reviewable:end -->
This commit is contained in:
commit
d6263c9b6e
14 changed files with 31 additions and 30 deletions
|
@ -12,7 +12,6 @@ crate-type = ["dylib"]
|
|||
log = "*"
|
||||
url = "*"
|
||||
libc = "*"
|
||||
objc = "0.1"
|
||||
|
||||
[dependencies.servo]
|
||||
path = "../../components/servo"
|
||||
|
@ -72,6 +71,7 @@ git = "https://github.com/servo/rust-stb-image"
|
|||
git = "https://github.com/servo/gleam"
|
||||
|
||||
[target.x86_64-apple-darwin.dependencies]
|
||||
objc = "0.1"
|
||||
cocoa = "*"
|
||||
core-foundation = "*"
|
||||
core-graphics = "*"
|
||||
|
|
|
@ -51,7 +51,7 @@ Run `./mach build-gonk` from the root directory
|
|||
|
||||
## Copy the files to the Flame
|
||||
|
||||
To reduce the size of libmozjs.so (`ports/gonk/target/arm-linux-androideabi/build/mozjs-sys-*/out/libmozjs.so`),
|
||||
To reduce the size of libmozjs.so (`target/arm-linux-androideabi/build/mozjs-sys-*/out/libmozjs.so`),
|
||||
you can run `strip` on it. Use the one in your toolchain (`$ANDROID_TOOLCHAIN/bin/arm-linux-androideabi-strip libmozjs.so`).
|
||||
|
||||
Make sure the device is on, connected to wifi, with high or no screen timeout.
|
||||
|
@ -64,7 +64,7 @@ adb remount
|
|||
adb push /path/to/stripped/mozjs.so system/lib
|
||||
|
||||
# Copy b2s
|
||||
adb push ports/gonk/target/arm-linux-androideabi system/bin
|
||||
adb push target/arm-linux-androideabi system/bin
|
||||
|
||||
# Copy resources
|
||||
adb shell mkdir sdcard/servo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue