mirror of https://github.com/Genymobile/scrcpy
Replace meson subprojects by subdir
Since Meson 0.44, subproject_dir may not be '.' anymore. This implies we must move app/ and server/ to a subprojects/ directory, which requires to also change some gradle files. Instead, just use subdir(), with options to disable building of the app or the server.hidpi
parent
ff94462d8a
commit
c2127d0819
@ -1 +0,0 @@
|
|||||||
option('override_server_jar', type: 'string')
|
|
@ -1,6 +1,11 @@
|
|||||||
project('scrcpy', 'c', subproject_dir: '.')
|
project('scrcpy', 'c')
|
||||||
|
|
||||||
subproject('app')
|
if get_option('build_app')
|
||||||
subproject('server')
|
subdir('app')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if get_option('build_server')
|
||||||
|
subdir('server')
|
||||||
|
endif
|
||||||
|
|
||||||
run_target('run', command: ['scripts/run-scrcpy.sh'])
|
run_target('run', command: ['scripts/run-scrcpy.sh'])
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
option('build_app', type: 'boolean', value: true)
|
||||||
|
option('build_server', type: 'boolean', value: true)
|
||||||
|
option('override_server_jar', type: 'string')
|
Loading…
Reference in New Issue