mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-10 16:59:41 +00:00
Call ninja without changing directory
In build instructions, use: ninja -Cx ... instead of: cd x ninja ...
This commit is contained in:
parent
ab205084dc
commit
3ea4742321
10
BUILD.md
10
BUILD.md
@ -195,8 +195,7 @@ Then, build:
|
||||
|
||||
```bash
|
||||
meson x --buildtype release --strip -Db_lto=true
|
||||
cd x
|
||||
ninja
|
||||
ninja -Cx
|
||||
```
|
||||
|
||||
_Note: `ninja` [must][ninja-user] be run as a non-root user (only `ninja
|
||||
@ -219,7 +218,7 @@ To run without installing:
|
||||
After a successful build, you can install _scrcpy_ on the system:
|
||||
|
||||
```bash
|
||||
sudo ninja install # without sudo on Windows
|
||||
sudo ninja -Cx install # without sudo on Windows
|
||||
```
|
||||
|
||||
This installs two files:
|
||||
@ -245,7 +244,6 @@ configuration:
|
||||
```bash
|
||||
meson x --buildtype release --strip -Db_lto=true \
|
||||
-Dprebuilt_server=/path/to/scrcpy-server.jar
|
||||
cd x
|
||||
ninja
|
||||
sudo ninja install
|
||||
ninja -Cx
|
||||
sudo ninja -Cx install
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user