Merge pull request #442 from npes87184/master
server/meson.build: support relative path for prebuilt_server
This commit is contained in:
commit
fc81d0d771
1 changed files with 4 additions and 0 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue