Make dependencies build scripts more flexible, to accept a build type
(native or cross) and a link type (static or shared).
This will allow to build binaries for Linux and macOS.
Extract the code which process arguments to a function.
This will make it optional, so that the script which just
downloads the official adb binaries does not use arguments.
The project has 3 build dependencies:
- SDL
- FFmpeg
- libusb
For Windows, the release script downloaded pre-built build dependencies
(either from upstream, or from the scrcpy-deps repository).
Instead, download the source releases and build locally. This offers
more flexibility.
The official adb release is still downloaded and included as is in the
release archive (it is not a build dependency).
Also upgrade FFmpeg to 6.1.1 and libusb to 1.0.27.
PR #4713 <https://github.com/Genymobile/scrcpy/pull/4713>