summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.h.meson.in1
-rw-r--r--meson.build1
-rw-r--r--meson_options.txt1
3 files changed, 3 insertions, 0 deletions
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')