Skip to content

Commit

Permalink
meson: don't use xxhash dependency to avoid generating bogus .pc file
Browse files Browse the repository at this point in the history
No need to include xxhash dependency in .pc, it is fully inlined.
  • Loading branch information
kasper93 committed Nov 30, 2023
1 parent 795600a commit b453387
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ if libdovi.found()
build_deps += libdovi
endif

xxhash = dependency('libxxhash', required: get_option('xxhash')).partial_dependency(includes: true, compile_args: true)
xxhash_inc = include_directories()
xxhash = dependency('libxxhash', required: get_option('xxhash'))
components.set('xxhash', xxhash.found())
if xxhash.found()
build_deps += xxhash
xxhash_inc = xxhash.get_variable('includedir')
endif

# Generate configuration files
Expand Down Expand Up @@ -243,7 +244,7 @@ lib = library('placebo', sources,
install: true,
dependencies: build_deps + glad_dep,
soversion: apiver,
include_directories: [ inc, vulkan_headers_inc, fast_float_inc ],
include_directories: [ inc, vulkan_headers_inc, fast_float_inc, xxhash_inc ],
link_args: link_args,
link_depends: link_depends,
gnu_symbol_visibility: 'hidden',
Expand Down

0 comments on commit b453387

Please sign in to comment.