project('librin', 'c', license : 'LGPL2.1', version : '0.0.4', default_options : ['c_std=gnu89', 'buildtype=release']) inc = include_directories('include') pkg = import('pkgconfig') subdir('include') subdir('src') if ((not get_option('static')) and (not get_option('shared'))) librin = library('rin', sources, version : meson.project_version(), include_directories : inc, install : true) endif if get_option('static') librin = static_library('rin', sources, version : meson.project_version(), include_directories : inc, install : true) endif if get_option('shared') librin = shared_library('rin', sources, version : meson.project_version(), include_directories : inc, install : true) endif pkg.generate(librin) if get_option('tests') subdir('test') endif