rgamble / libcsv

Fast and flexible CSV library written in pure ANSI C that can read and write CSV data.
GNU Lesser General Public License v2.1
181 stars 40 forks source link

Add Meson support #31

Closed yihuajack closed 1 year ago

yihuajack commented 1 year ago

Currently, libcsv cannot directly found by Meson's dependency() method. This method can find libraries by various ways including pkgconfig files .pc, but libcsv does not provide .pc files. Users may have to manually declare on their own like

libcsv_inc = include_directories('/usr/include')
libcsv_lib = static_library('/usr/lib/x86_64-linux-gnu/libcsv.a')
libcsv_dep = declare_dependency(link_with : libcsv_lib, include_directories : libcsv_inc)

which is inconvenient. Hope this useful library can add Meson support.