2018-11-12 21:09:11 +08:00
|
|
|
project('scrcpy', 'c',
|
2021-01-02 07:53:32 +08:00
|
|
|
version: '1.17',
|
2020-04-14 04:43:28 +08:00
|
|
|
meson_version: '>= 0.48',
|
2019-11-26 16:22:20 +08:00
|
|
|
default_options: [
|
|
|
|
'c_std=c11',
|
|
|
|
'warning_level=2',
|
2021-02-17 06:26:35 +08:00
|
|
|
'b_ndebug=if-release',
|
2019-11-26 16:22:20 +08:00
|
|
|
])
|
2018-02-13 18:55:12 +08:00
|
|
|
|
2019-07-29 21:19:07 +08:00
|
|
|
if get_option('compile_app')
|
2018-02-14 18:10:09 +08:00
|
|
|
subdir('app')
|
|
|
|
endif
|
|
|
|
|
2019-07-29 21:19:07 +08:00
|
|
|
if get_option('compile_server')
|
2018-02-14 18:10:09 +08:00
|
|
|
subdir('server')
|
|
|
|
endif
|
2018-02-13 18:55:12 +08:00
|
|
|
|
|
|
|
run_target('run', command: ['scripts/run-scrcpy.sh'])
|