meson: Add missing deps (#5)

Also noted by @QuLogic in GitHub comments prior.
This commit is contained in:
meme 2021-12-15 13:08:48 -05:00 committed by GitHub
parent 71c2e2c3d5
commit 4c8e8bf419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -111,13 +111,18 @@ configure_file(
configuration: cdata,
)
threads_dep = dependency('threads')
dl_dep = cc.find_library('dl', required: false)
tcc = library('tcc', sources,
c_args: ['-DONE_SOURCE=0'],
install: true,
dependencies: [threads_dep, dl_dep],
)
tcc_dep = declare_dependency(
link_with: tcc,
include_directories: include_directories('.'),
variables: {'libdir': get_option('libdir')},
)
pkg = import('pkgconfig')