meson: Add optional legacy-database-entry-format support
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Sun, 21 Oct 2018 10:09:28 +0000 (17:09 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:56 +0000 (17:25 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt

index 5919fef..91d43c5 100644 (file)
@@ -213,6 +213,10 @@ if get_option('ipv6')
   cdata.set('HAVE_IPV6', 1)
 endif
 
+if get_option('legacy-database-entry-format')
+  cdata.set('ENABLE_LEGACY_DATABASE_ENTRY_FORMAT', 1)
+endif
+
 atomictest = '''void func() {
   volatile int atomic = 2;
   __sync_bool_compare_and_swap (&atomic, 2, 3);
index 7537d79..9619fc8 100644 (file)
@@ -11,6 +11,9 @@ option('database',
         type : 'combo', value : 'tdb',
         choices : [ 'gdbm', 'tdb', 'simple' ],
         description : 'Database backend')
+option('legacy-database-entry-format',
+       type : 'boolean', value : 'true',
+       description : 'Try to load legacy (< 1.0) database files (card, device and volume restore)')
 option('pulsedspdir',
        type : 'string',
        description : 'Specify location where OSS wrapper will be installed')