project('pkgconfig-gen', 'c') pkgg = import('pkgconfig') lib = shared_library('simple', 'simple.c', install : true) libver = '1.0' h = install_headers('simple.h') pkgg.generate( libraries : lib, subdirs : '.', version : libver, name : 'libsimple', filebase : 'simple', description : 'A simple demo library.', requires : 'glib-2.0', # Not really, but only here to test that this works. requires_private : ['gio-2.0', 'gobject-2.0'], libraries_private : '-lz', )