-
-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set icon and server env paths for meson devenv #5658
Conversation
This allows users to compile and run the project without root. ``` meson setup x meson compile -C x meson devenv -C x scrcpy ```
Great, I didn't know about I also discovered that since 0.49, you can use the diff --git app/meson.build app/meson.build
index c74ee1021..abef527f5 100644
--- app/meson.build
+++ app/meson.build
@@ -282,6 +282,6 @@ endif
if meson.version().version_compare('>= 0.58.0')
devenv = environment()
- devenv.set('SCRCPY_ICON_PATH', join_paths(meson.current_source_dir(), 'data/icon.png'))
+ devenv.set('SCRCPY_ICON_PATH', meson.current_source_dir() / 'data/icon.png'))
meson.add_devenv(devenv)
endif
diff --git server/meson.build server/meson.build
index 2e5fa9d2a..8a53656cf 100644
--- server/meson.build
+++ server/meson.build
@@ -26,6 +26,6 @@ endif
if meson.version().version_compare('>= 0.58.0')
devenv = environment()
- devenv.set('SCRCPY_SERVER_PATH', join_paths(meson.current_build_dir(), 'scrcpy-server'))
+ devenv.set('SCRCPY_SERVER_PATH', meson.current_build_dir() / 'scrcpy-server'))
meson.add_devenv(devenv)
endif |
Should I bumb the required meson version or is the Line 3 in 0e2d084
|
Oh, I thought it was ok without bumping because it is in a block checking version >= 0.5.8. But in fact, it will probably still fail due to a syntax error on 0.48. So it's probably better to keep it like it is. |
The oldest Ubuntu LTS version seems to use |
It was bumped by eb8f7a1. |
The commit is from 2020 when Stretch went out of support. |
A new '/' operator was introduced in Meson 0.49 to replace join_paths(): - <https://mesonbuild.com/Reference-manual_functions.html#join_paths> - <https://mesonbuild.com/Syntax.html#string-path-building> Refs Genymobile#5658 <Genymobile#5658>
This allows users to compile and run the project in a dev environment. meson setup x meson compile -C x meson devenv -C x scrcpy This is an alternative to `./run x`. PR Genymobile#5658 <Genymobile#5658> Signed-off-by: Romain Vimont <[email protected]>
A new '/' operator was introduced in Meson 0.49 to replace join_paths(): - <https://mesonbuild.com/Reference-manual_functions.html#join_paths> - <https://mesonbuild.com/Syntax.html#string-path-building> Refs Genymobile#5658 <Genymobile#5658>
This allows users to compile and run the project in a dev environment. meson setup x meson compile -C x meson devenv -C x scrcpy This is an alternative to `./run x`. PR Genymobile#5658 <Genymobile#5658> Signed-off-by: Romain Vimont <[email protected]>
This allows users to compile and run the project in a dev environment. meson setup x meson compile -C x meson devenv -C x scrcpy This is an alternative to `./run x`. PR #5658 <#5658> Signed-off-by: Romain Vimont <[email protected]>
A new '/' operator was introduced in Meson 0.49 to replace join_paths(): - <https://mesonbuild.com/Reference-manual_functions.html#join_paths> - <https://mesonbuild.com/Syntax.html#string-path-building> Refs Genymobile#5658 <Genymobile#5658>
This allows users to compile and run the project in a dev environment. meson setup x meson compile -C x meson devenv -C x scrcpy This is an alternative to `./run x`. PR Genymobile#5658 <Genymobile#5658> Signed-off-by: Romain Vimont <[email protected]>
Please review the branch |
It looks fine and runs fine. However I didn't run an |
Thank you. Merged into |
This allows users to compile and run the project without root.