guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#56664] [PATCH] gnu: Add qtscrcpy.


From: phodina
Subject: [bug#56664] [PATCH] gnu: Add qtscrcpy.
Date: Wed, 20 Jul 2022 15:03:50 +0000


Hi Maxime,

  1. The Android part scrcpy-server is prebuild due to Guix not supporting gradle and Android builds. Without this the tool does not work.

OK, though then this is a draft patch that's blocked by supporting gradle and Android; Guix is a build-from-source distro (there are some bootstrap seeds, but the idea is to reduce them, not enlarge them).

I understand that the aim is to reduce the prebuild stuff not vice versa that's why I labeled it here. One solution could be to replace the location by specifying some env variable and the user would supply either the prebuild version from the repo or build it themself e.g. in Docker.

This way the package would not have any prebuild files. Would that be okay?
 

Someone else has been looking into supporting Android (something about a longsoon-build-system), maybe you can test that, and I don't know if anyone has been looking at addressing the gradle problems.


Do you mean the work of Julien Lepiller [1]? 

Also, from a cursory look, I'm not seeing gradle there and neither am I seeing Android builds, maybe all that's needed is adding the adb package (which is packaged in Guix), no gradle or Android support needed, or I didn't look in the right places?


Android sources are located under the directory server [2]. There's also meson build file but it will still need Android build environment to create the executable out of the java files.

 I've currently hardcoded the x86 architecture in the install phase. Not sure how to make it architecture agnostic.

Here I'm refering to the CMake which places the output in 'output/x86/...' directory. Unfortunately the CMakeLists.txt does not specify how to install the files so it has to be done manually.

Could you suggest some package which I could use as an example to write Guile code that will make it independent of the machine arch?

Also, why are tests disabled?

Haven't found any. Will add note about no test suite.


We are not restricted to plain text in descriptions, you can use Texinfo markup like @emph.

Thanks, will use more the markup :-)


[1]  https://framagit.org/tyreunom/guix-android
[2]  https://github.com/barry-ran/QtScrcpy/tree/v2.0.1/server 

----
Petr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]