Skip to content

Commit

Permalink
Update meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsga authored Mar 2, 2024
1 parent 8fafc53 commit 7ed801c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1204,41 +1204,42 @@ endif
# Check whether BDB daemon needs to be compiled
#

cnid_backends = ''

# Determine whether or not to use Database Daemon CNID backend

dbd_backend = ' dbd'
if not get_option('with-cnid-dbd-backend')
use_dbd_backend = false
else
use_dbd_backend = true
cnid_backends += ' dbd'
cdata.set('CNID_BACKEND_DBD', 1)
endif

# Determine whether or not to use LAST DID scheme

last_backend = ' last'

if not get_option('with-cnid-last-backend')
use_last_backend = false
else
use_last_backend = true
cnid_backends += ' last'
cdata.set('CNID_BACKEND_LAST', 1)
endif

# Check for mysql CNID backend

mysql_backend = ' mysql'
mysqlclient = dependency('mysqlclient', required: false)

if not mysqlclient.found()
use_mysql_backend = false
else
cnid_backends += ' mysql'
use_mysql_backend = true
cdata.set('CNID_BACKEND_MYSQL', 1)
endif

cnid_backends = '"' + dbd_backend + last_backend + mysql_backend + '"'
cdata.set('compiled_backends', cnid_backends)
compiled_backends = '"' + cnid_backends + '"'
cdata.set('compiled_backends', compiled_backends)

# Determine default CNID backend

Expand All @@ -1256,9 +1257,6 @@ elif default_backend == 'mysql' and not use_mysql_backend
)
endif

cnid_backends = '"' + dbd_backend + last_backend + mysql_backend + '"'
cdata.set('compiled_backends', cnid_backends)

#
# Check for docbook
#
Expand Down

0 comments on commit 7ed801c

Please sign in to comment.