From 3ea47423217775d2519fb5ac61edd55072639a64 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 31 Oct 2019 21:05:04 +0100 Subject: [PATCH] Call ninja without changing directory In build instructions, use: ninja -Cx ... instead of: cd x ninja ... --- BUILD.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/BUILD.md b/BUILD.md index 475580f8..3fef0f23 100644 --- a/BUILD.md +++ b/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 ```