From ba3f1f0e17b460d1298a91fb5edca3e2e8e2bd9a Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 26 Jan 2018 16:26:38 +0100 Subject: Add meson option to control sensor width --- config.h.meson.in | 1 + meson.build | 1 + meson_options.txt | 1 + 3 files changed, 3 insertions(+) create mode 100644 meson_options.txt diff --git a/config.h.meson.in b/config.h.meson.in index e6671c4..dfd7b2f 100644 --- a/config.h.meson.in +++ b/config.h.meson.in @@ -1,2 +1,3 @@ #mesondefine DEBUG #mesondefine HAVE_SSE +#mesondefine IPECAMERA_WIDTH diff --git a/meson.build b/meson.build index 6d18f84..4ee8ef7 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,7 @@ conf = configuration_data() conf.set('DEBUG', get_option('buildtype') == 'debug') conf.set('HAVE_SSE', have_sse) +conf.set('IPECAMERA_WIDTH', get_option('ipecamera_width')) configure_file( input: 'config.h.meson.in', diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..7346c25 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1 @@ +option('ipecamera_width', type: 'string', value: '5120', description: 'Sensor width in pixels') -- cgit v1.2.3