Skip to content

Commit 09e6125

Browse files
author
dgsga
committed
Improve syntax in root meson.build
1 parent 93ba94a commit 09e6125

4 files changed

Lines changed: 26 additions & 22 deletions

File tree

.github/workflows/meson.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Checks
22
on:
33
push:
44
branches:
5-
- dgsga-meson-builds
5+
- dgsga-meson-build
66
paths-ignore:
77
- "CONTRIBUTORS"
88
- "NEWS"

etc/spotlight/meson.build

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ run_command(
33
'-o',
44
'spotlight_rawquery_lexer.c',
55
'spotlight_rawquery_lexer.l',
6-
check: true
6+
check: true,
7+
)
8+
run_command(
9+
bison,
10+
'-d',
11+
'-o',
12+
'sparql_parser.c',
13+
'sparql_parser.y',
14+
check: true,
715
)
8-
run_command(bison, '-d', '-o', 'sparql_parser.c', 'sparql_parser.y', check: true)
916

1017
srp_sources = ['sparql_map.c', 'sparql_parser.c', 'spotlight_rawquery_lexer.c']
1118

include/atalk/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if with_dtrace
3030
'-h',
3131
'-s',
3232
'afp_dtrace.d',
33-
check: true
33+
check: true,
3434
)
3535
endif
3636

meson.build

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ if get_option('with-bdb') != ''
375375
bdb_includes += include_directories(with_bdb / 'include' / subdir)
376376
endif
377377
endforeach
378-
endif
379-
378+
else
380379
foreach dir : bdb_dirs
381380
foreach subdir : bdb_subdirs
382381
if fs.exists('/usr' / dir / 'include' / subdir / 'db.h')
@@ -393,6 +392,7 @@ endif
393392
break
394393
endif
395394
endforeach
395+
endif
396396

397397
if enable_rpath
398398
bdb_link_args += '-R' + bdb_libdir
@@ -536,18 +536,18 @@ if get_option('with-gssapi') != ''
536536
required: false,
537537
)
538538
gssapi_includes += include_directories(with_gssapi / 'include')
539-
endif
540-
541-
gss = cc.find_library('gss', dirs: libsearch_dirs, required: false)
542-
if not gss.found()
543-
gss = cc.find_library('gssapi', dirs: libsearch_dirs, required: false)
544-
endif
545-
if not gss.found()
546-
gss = cc.find_library(
547-
'gssapi_krb5',
548-
dirs: libsearch_dirs,
549-
required: false,
550-
)
539+
else
540+
gss = cc.find_library('gss', dirs: libsearch_dirs, required: false)
541+
if not gss.found()
542+
gss = cc.find_library('gssapi', dirs: libsearch_dirs, required: false)
543+
endif
544+
if not gss.found()
545+
gss = cc.find_library(
546+
'gssapi_krb5',
547+
dirs: libsearch_dirs,
548+
required: false,
549+
)
550+
endif
551551
endif
552552

553553
if not gss.found()
@@ -776,8 +776,7 @@ else
776776
or tracker_control.found()
777777
)
778778
if tracker_ok
779-
780-
# Check for talloc
779+
# Check for talloc
781780

782781
if talloc.found()
783782
cdata.set('HAVE_TALLOC', 1)
@@ -1290,7 +1289,6 @@ cdata.set('compiled_backends', compiled_backends)
12901289
default_backend = get_option('with-cnid-default-backend')
12911290
cdata.set('DEFAULT_CNID_SCHEME', '"' + default_backend + '"')
12921291

1293-
12941292
if default_backend == 'dbd' and not use_dbd_backend
12951293
error('Specified default CNID scheme dbd was not selected for compilation')
12961294
elif default_backend == 'last' and not use_last_backend
@@ -1629,7 +1627,6 @@ sed_command = [
16291627
'@INPUT@',
16301628
]
16311629

1632-
16331630
#
16341631
# Check for cracklib support
16351632
#

0 commit comments

Comments
 (0)