meson: move pkgconfig after subdir defining babl
authorØyvind Kolås <pippin@gimp.org>
Tue, 6 Aug 2019 12:35:01 +0000 (14:35 +0200)
committerØyvind Kolås <pippin@gimp.org>
Tue, 6 Aug 2019 12:37:15 +0000 (14:37 +0200)
Use the meson pkgconfig generator after the babl library object has
been defined.

meson.build

index fe1cc3bcf191edcfdccd7b1b1b38e47feb80d3cb..c971e7cc404cd50aaee87592f105c41ec1c55857 100644 (file)
@@ -358,21 +358,6 @@ configure_file(
   configuration: conf
 )
 
-# pkg-config file
-pkgconfig.generate(filebase: 'babl',
-  name: 'babl',
-  description: 'Dynamic, any to any, pixel format conversion library',
-  version: meson.project_version(),
-  libraries: [
-    '-l' + lib_name,
-  ],
-  libraries_private: [
-    '-lm', '-lpthread',
-  ],
-  subdirs: [
-    lib_name,
-  ],
-)
 
 ################################################################################
 # Subdirs
@@ -400,3 +385,18 @@ if w3m_bin.found() and build_docs
     capture: true,
   )
 endif
+
+
+# pkg-config file
+pkgconfig.generate(filebase: 'babl',
+  name: 'babl',
+  description: 'Dynamic, any to any, pixel format conversion library',
+  version: meson.project_version(),
+  libraries: [ babl ],
+  libraries_private: [
+    '-lm',
+  ],
+  subdirs: [
+    lib_name,
+  ],
+)