Skip to content

Commit

Permalink
Improve syntax in root meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsga committed Mar 13, 2024
1 parent 93ba94a commit 09e6125
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Checks
on:
push:
branches:
- dgsga-meson-builds
- dgsga-meson-build
paths-ignore:
- "CONTRIBUTORS"
- "NEWS"
Expand Down
11 changes: 9 additions & 2 deletions etc/spotlight/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ run_command(
'-o',
'spotlight_rawquery_lexer.c',
'spotlight_rawquery_lexer.l',
check: true
check: true,
)
run_command(
bison,
'-d',
'-o',
'sparql_parser.c',
'sparql_parser.y',
check: true,
)
run_command(bison, '-d', '-o', 'sparql_parser.c', 'sparql_parser.y', check: true)

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

Expand Down
2 changes: 1 addition & 1 deletion include/atalk/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if with_dtrace
'-h',
'-s',
'afp_dtrace.d',
check: true
check: true,
)
endif

Expand Down
33 changes: 15 additions & 18 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ if get_option('with-bdb') != ''
bdb_includes += include_directories(with_bdb / 'include' / subdir)
endif
endforeach
endif

else
foreach dir : bdb_dirs
foreach subdir : bdb_subdirs
if fs.exists('/usr' / dir / 'include' / subdir / 'db.h')
Expand All @@ -393,6 +392,7 @@ endif
break
endif
endforeach
endif

if enable_rpath
bdb_link_args += '-R' + bdb_libdir
Expand Down Expand Up @@ -536,18 +536,18 @@ if get_option('with-gssapi') != ''
required: false,
)
gssapi_includes += include_directories(with_gssapi / 'include')
endif

gss = cc.find_library('gss', dirs: libsearch_dirs, required: false)
if not gss.found()
gss = cc.find_library('gssapi', dirs: libsearch_dirs, required: false)
endif
if not gss.found()
gss = cc.find_library(
'gssapi_krb5',
dirs: libsearch_dirs,
required: false,
)
else
gss = cc.find_library('gss', dirs: libsearch_dirs, required: false)
if not gss.found()
gss = cc.find_library('gssapi', dirs: libsearch_dirs, required: false)
endif
if not gss.found()
gss = cc.find_library(
'gssapi_krb5',
dirs: libsearch_dirs,
required: false,
)
endif
endif

if not gss.found()
Expand Down Expand Up @@ -776,8 +776,7 @@ else
or tracker_control.found()
)
if tracker_ok

# Check for talloc
# Check for talloc

if talloc.found()
cdata.set('HAVE_TALLOC', 1)
Expand Down Expand Up @@ -1290,7 +1289,6 @@ cdata.set('compiled_backends', compiled_backends)
default_backend = get_option('with-cnid-default-backend')
cdata.set('DEFAULT_CNID_SCHEME', '"' + default_backend + '"')


if default_backend == 'dbd' and not use_dbd_backend
error('Specified default CNID scheme dbd was not selected for compilation')
elif default_backend == 'last' and not use_last_backend
Expand Down Expand Up @@ -1629,7 +1627,6 @@ sed_command = [
'@INPUT@',
]


#
# Check for cracklib support
#
Expand Down

0 comments on commit 09e6125

Please sign in to comment.