Simplify portable build configuration

To create a portable build (with scrcpy-server.jar accessible from the
scrcpy directory), replace OVERRIDE_SERVER_PATH by a simple compilation
flag: PORTABLE.

This paves the way to use more complex rules to determine the path of
scrcpy-server.jar in portable builds.
This commit is contained in:
Romain Vimont
2019-06-08 19:03:22 +02:00
parent b777760bca
commit eb34098add
4 changed files with 10 additions and 17 deletions

View File

@@ -12,8 +12,8 @@
#define SOCKET_NAME "scrcpy"
#ifdef OVERRIDE_SERVER_PATH
# define DEFAULT_SERVER_PATH OVERRIDE_SERVER_PATH
#ifdef PORTABLE
# define DEFAULT_SERVER_PATH "scrcpy-server.jar"
#else
# define DEFAULT_SERVER_PATH PREFIX "/share/scrcpy/scrcpy-server.jar"
#endif