Add compilation flag for V4L2 feature

This allows to disable V4L2 support on Linux to build without
libavdevice.
This commit is contained in:
Romain Vimont
2022-02-12 12:33:40 +01:00
parent d0ab8c0e7b
commit cc27771dd1
3 changed files with 4 additions and 2 deletions

View File

@@ -4,3 +4,4 @@ option('prebuilt_server', type: 'string', description: 'Path of the prebuilt ser
option('portable', type: 'boolean', value: false, description: 'Use scrcpy-server from the same directory as the scrcpy executable')
option('server_debugger', type: 'boolean', value: false, description: 'Run a server debugger and wait for a client to be attached')
option('server_debugger_method', type: 'combo', choices: ['old', 'new'], value: 'new', description: 'Select the debugger method (Android < 9: "old", Android >= 9: "new")')
option('v4l2', type: 'boolean', value: true, description: 'Enable V4L2 feature when supported')