mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
build: allow disabling installation of static libraries
This commit is contained in:
@ -11,6 +11,9 @@ option('gtk', type: 'boolean')
|
|||||||
# Disable libsysprof/ui (in situations you only want sysprof-capture)
|
# Disable libsysprof/ui (in situations you only want sysprof-capture)
|
||||||
option('libsysprof', type: 'boolean')
|
option('libsysprof', type: 'boolean')
|
||||||
|
|
||||||
|
# Allow disabling the installation of libsysprof-capture*.a
|
||||||
|
option('install-static', type: 'boolean')
|
||||||
|
|
||||||
# Optionally compile sysprofd, which is needed to get elevated privileges.
|
# Optionally compile sysprofd, which is needed to get elevated privileges.
|
||||||
# You only really want to ignore this if you are running from a container
|
# You only really want to ignore this if you are running from a container
|
||||||
# and are talking to a host daemon. Also, if you're compiling for something
|
# and are talking to a host daemon. Also, if you're compiling for something
|
||||||
|
|||||||
@ -50,7 +50,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(),
|
install: not meson.is_subproject() and get_option('install-static'),
|
||||||
gnu_symbol_visibility: 'hidden',
|
gnu_symbol_visibility: 'hidden',
|
||||||
pic: true,
|
pic: true,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user