[sysprof] build: gate capture pkgconfig by install-static



commit 9e2743fa765cf2d780f800bdfd46ad5478acf76e
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 22 13:45:55 2022 -0700

    build: gate capture pkgconfig by install-static

 src/libsysprof-capture/meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof-capture/meson.build b/src/libsysprof-capture/meson.build
index 128b90fe..28beeb03 100644
--- a/src/libsysprof-capture/meson.build
+++ b/src/libsysprof-capture/meson.build
@@ -1,3 +1,5 @@
+install_static = not meson.is_subproject() and get_option('install-static')
+
 libsysprof_capture_headers = files([
   'sysprof-address.h',
   'sysprof-clock.h',
@@ -50,7 +52,7 @@ libsysprof_capture = static_library(
            dependencies: libsysprof_capture_deps,
                  c_args: [ '-DSYSPROF_CAPTURE_COMPILATION' ],
             install_dir: get_option('libdir'),
-                install: not meson.is_subproject() and get_option('install-static'),
+                install: install_static,
   gnu_symbol_visibility: 'hidden',
                     pic: true,
 )
@@ -63,7 +65,7 @@ libsysprof_capture_dep = declare_dependency(
   include_directories: libsysprof_capture_include_dirs,
 )
 
-if not meson.is_subproject()
+if install_static
   pkgconfig.generate(
                  libsysprof_capture,
         subdirs: [ sysprof_header_subdir ],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]