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
1 changed files with 4 additions and 6 deletions
10
BUILD.md
10
BUILD.md
|
@ -195,8 +195,7 @@ Then, build:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
meson x --buildtype release --strip -Db_lto=true
|
meson x --buildtype release --strip -Db_lto=true
|
||||||
cd x
|
ninja -Cx
|
||||||
ninja
|
|
||||||
```
|
```
|
||||||
|
|
||||||
_Note: `ninja` [must][ninja-user] be run as a non-root user (only `ninja
|
_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:
|
After a successful build, you can install _scrcpy_ on the system:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo ninja install # without sudo on Windows
|
sudo ninja -Cx install # without sudo on Windows
|
||||||
```
|
```
|
||||||
|
|
||||||
This installs two files:
|
This installs two files:
|
||||||
|
@ -245,7 +244,6 @@ configuration:
|
||||||
```bash
|
```bash
|
||||||
meson x --buildtype release --strip -Db_lto=true \
|
meson x --buildtype release --strip -Db_lto=true \
|
||||||
-Dprebuilt_server=/path/to/scrcpy-server.jar
|
-Dprebuilt_server=/path/to/scrcpy-server.jar
|
||||||
cd x
|
ninja -Cx
|
||||||
ninja
|
sudo ninja -Cx install
|
||||||
sudo ninja install
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue