mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-21 09:49:06 +00:00
Rename SCRCPY_SERVER_JAR to SCRCPY_SERVER_PATH
The server is currently a JAR, but it may ba an APK or a DEX, so the variable name should not contain the type. Rename the environment variable, the Meson options and the C definitions.
This commit is contained in:
parent
60f3185185
commit
089378926b
6 changed files with 15 additions and 15 deletions
|
@ -48,19 +48,19 @@ conf.set_quoted('SCRCPY_VERSION', '0.1')
|
|||
conf.set_quoted('PREFIX', get_option('prefix'))
|
||||
|
||||
# the path of the server, which will be appended to the prefix
|
||||
# ignored if OVERRIDE_SERVER_JAR if defined
|
||||
# ignored if OVERRIDE_SERVER_PATH if defined
|
||||
# must be consistent with the install_dir in server/meson.build
|
||||
conf.set_quoted('PREFIXED_SERVER_JAR', '/share/scrcpy/scrcpy-server.jar')
|
||||
conf.set_quoted('PREFIXED_SERVER_PATH', '/share/scrcpy/scrcpy-server.jar')
|
||||
|
||||
# the path of the server to be used "as is"
|
||||
# this is useful for building a "portable" version (with the server in the same
|
||||
# directory as the client)
|
||||
override_server_jar = get_option('override_server_jar')
|
||||
if override_server_jar != ''
|
||||
conf.set_quoted('OVERRIDE_SERVER_JAR', override_server_jar)
|
||||
override_server_path = get_option('override_server_path')
|
||||
if override_server_path != ''
|
||||
conf.set_quoted('OVERRIDE_SERVER_PATH', override_server_path)
|
||||
else
|
||||
# undefine it
|
||||
conf.set('OVERRIDE_SERVER_JAR', false)
|
||||
conf.set('OVERRIDE_SERVER_PATH', false)
|
||||
endif
|
||||
|
||||
# the default client TCP port for the "adb reverse" tunnel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue