Provide config.h.in for old meson versions
The current meson version is able to generate a config.h from a configuration data object without any template. However, older versions of meson require a template, so provide it for compatibility.
This commit is contained in:
parent
3ed80a1fac
commit
396df8a9d8
2 changed files with 7 additions and 1 deletions
|
@ -59,7 +59,7 @@ conf.set('DEFAULT_BIT_RATE', '4000000') # 4Mbps
|
|||
# SKIP_FRAMES improves latency at the cost of framerate
|
||||
conf.set('SKIP_FRAMES', true)
|
||||
|
||||
configure_file(configuration: conf, output: 'config.h')
|
||||
configure_file(configuration: conf, input: 'src/config.h.in', output: 'config.h')
|
||||
|
||||
executable('scrcpy', src, dependencies: dependencies)
|
||||
|
||||
|
|
6
app/src/config.h.in
Normal file
6
app/src/config.h.in
Normal file
|
@ -0,0 +1,6 @@
|
|||
#mesondefine BUILD_DEBUG
|
||||
#mesondefine SCRCPY_VERSION
|
||||
#mesondefine DEFAULT_LOCAL_PORT
|
||||
#mesondefine DEFAULT_MAX_SIZE
|
||||
#mesondefine DEFAULT_BIT_RATE
|
||||
#mesondefine SKIP_FRAMES
|
Loading…
Reference in a new issue