mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: gate capture pkgconfig by install-static
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
install_static = not meson.is_subproject() and get_option('install-static')
|
||||||
|
|
||||||
libsysprof_capture_headers = files([
|
libsysprof_capture_headers = files([
|
||||||
'sysprof-address.h',
|
'sysprof-address.h',
|
||||||
'sysprof-clock.h',
|
'sysprof-clock.h',
|
||||||
@ -50,7 +52,7 @@ libsysprof_capture = static_library(
|
|||||||
dependencies: libsysprof_capture_deps,
|
dependencies: libsysprof_capture_deps,
|
||||||
c_args: [ '-DSYSPROF_CAPTURE_COMPILATION' ],
|
c_args: [ '-DSYSPROF_CAPTURE_COMPILATION' ],
|
||||||
install_dir: get_option('libdir'),
|
install_dir: get_option('libdir'),
|
||||||
install: not meson.is_subproject() and get_option('install-static'),
|
install: install_static,
|
||||||
gnu_symbol_visibility: 'hidden',
|
gnu_symbol_visibility: 'hidden',
|
||||||
pic: true,
|
pic: true,
|
||||||
)
|
)
|
||||||
@ -63,7 +65,7 @@ libsysprof_capture_dep = declare_dependency(
|
|||||||
include_directories: libsysprof_capture_include_dirs,
|
include_directories: libsysprof_capture_include_dirs,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not meson.is_subproject()
|
if install_static
|
||||||
pkgconfig.generate(
|
pkgconfig.generate(
|
||||||
libsysprof_capture,
|
libsysprof_capture,
|
||||||
subdirs: [ sysprof_header_subdir ],
|
subdirs: [ sysprof_header_subdir ],
|
||||||
|
|||||||
Reference in New Issue
Block a user