contrib: create static library for elfparser

I want to move a bunch of this "contrib" style sources into their own
area so we can statically link them but keep them separate from main
sysprof code.
This commit is contained in:
Christian Hergert
2023-05-25 14:54:28 -07:00
parent 7ec74308b5
commit 92b3b77dd2
8 changed files with 1061 additions and 3 deletions

View File

@ -0,0 +1,19 @@
libelfparser_sources = [
'demangle.cpp',
'elfparser.c',
]
libelfparser_deps = [
dependency('glib-2.0', version: glib_req_version),
]
libelfparser_static = static_library('elfparser', libelfparser_sources,
dependencies: libelfparser_deps,
gnu_symbol_visibility: 'hidden',
)
libelfparser_static_dep = declare_dependency(
include_directories: include_directories('.'),
dependencies: libelfparser_deps,
link_with: libelfparser_static,
)