diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2018-01-26 16:26:38 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2018-01-26 16:26:38 +0100 |
commit | ba3f1f0e17b460d1298a91fb5edca3e2e8e2bd9a (patch) | |
tree | ac033a845018d5ef36f04112e5071c9a235e953e | |
parent | 087cd3f22124e8fc09b113958ecb144cc3ba3e07 (diff) | |
download | libufodecode-ba3f1f0e17b460d1298a91fb5edca3e2e8e2bd9a.tar.gz libufodecode-ba3f1f0e17b460d1298a91fb5edca3e2e8e2bd9a.tar.bz2 libufodecode-ba3f1f0e17b460d1298a91fb5edca3e2e8e2bd9a.tar.xz libufodecode-ba3f1f0e17b460d1298a91fb5edca3e2e8e2bd9a.zip |
Add meson option to control sensor width
-rw-r--r-- | config.h.meson.in | 1 | ||||
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | meson_options.txt | 1 |
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') |