meson: Generate pkgconfig file

Lets multiple projects use the same Tracy library.
This commit is contained in:
Ivan Molodetskikh 2023-10-14 08:35:24 +04:00
parent 170a07c46b
commit 7a2ce93998

View File

@ -190,6 +190,9 @@ if tracy_shared_libs
tracy_dep_compile_args += [ '-DTRACY_IMPORTS' ]
endif
pkg = import('pkgconfig')
pkg.generate(tracy, extra_cflags: tracy_dep_compile_args)
tracy_dep = declare_dependency(
compile_args : tracy_dep_compile_args,
link_with : tracy,