From 396df8a9d8425d272c2370ef72fd973ad8eb37d7 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 13 Feb 2018 10:24:02 +0100 Subject: [PATCH] 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. --- app/meson.build | 2 +- app/src/config.h.in | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 app/src/config.h.in diff --git a/app/meson.build b/app/meson.build index 3e03bd91..31fea04a 100644 --- a/app/meson.build +++ b/app/meson.build @@ -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) diff --git a/app/src/config.h.in b/app/src/config.h.in new file mode 100644 index 00000000..cb8ea5f0 --- /dev/null +++ b/app/src/config.h.in @@ -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