1project('libtestprovider','c') 2 3libtestprovider=static_library('testprovider', 4 files('./provider.c'), 5 install:true, 6 c_args:['-Wall','-Werror'], 7) 8 9pkg = import('pkgconfig') 10 11 12pkg.generate( 13 name:'testprovider', 14 filebase:'libtestprovider', 15 description: 'fortest', 16 requires: [], 17 libraries_private: ['-Wl,--whole-archive'] + 18 ['-L${libdir}','-l:libtestprovider.a']+ 19 ['-Wl,--no-whole-archive'] 20) 21