Define default options as const struct

This is more readable than a macro, and we could ifdef some fields.
This commit is contained in:
Romain Vimont
2021-10-27 18:43:47 +02:00
parent e4d5c1ce36
commit 27fa23846d
5 changed files with 60 additions and 55 deletions

View File

@@ -16,6 +16,7 @@ src = [
'src/keyboard_inject.c',
'src/mouse_inject.c',
'src/opengl.c',
'src/options.c',
'src/receiver.c',
'src/recorder.c',
'src/scrcpy.c',
@@ -184,6 +185,7 @@ if get_option('buildtype') == 'debug'
['test_cli', [
'tests/test_cli.c',
'src/cli.c',
'src/options.c',
'src/util/str_util.c',
]],
['test_clock', [