mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +00:00
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:
19
contrib/elfparser/meson.build
Normal file
19
contrib/elfparser/meson.build
Normal 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,
|
||||
)
|
||||
Reference in New Issue
Block a user