Merge pull request #442 from npes87184/master

server/meson.build: support relative path for prebuilt_server
This commit is contained in:
Romain Vimont 2019-03-03 11:16:13 +01:00 committed by GitHub
commit fc81d0d771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,10 @@ if prebuilt_server == ''
install: true, install: true,
install_dir: 'share/scrcpy') install_dir: 'share/scrcpy')
else else
if not prebuilt_server.startswith('/')
# relative path needs some trick
prebuilt_server = meson.source_root() + '/' + prebuilt_server
endif
custom_target('scrcpy-server-prebuilt', custom_target('scrcpy-server-prebuilt',
input: prebuilt_server, input: prebuilt_server,
output: 'scrcpy-server.jar', output: 'scrcpy-server.jar',