cvector/meson.build

30 lines
797 B
Meson

project('cvector', 'c',
version: '0.1.0',
default_options: ['c_std=c99', 'warning_level=3', 'optimization=3',
'buildtype=release'])
srcfiles = ['./vector.c']
headerfiles = ['./vector.h']
lib_args = [
'-fstack-protector-all',
'-Wstack-protector',
'-Wall',
'-Wextra',
'-Wnonnull',
'-ftree-vectorize',
'-pedantic',
'-pipe'
]
cc = meson.get_compiler('c')
shlib = shared_library('cvector', srcfiles,
install: true,
c_args: lib_args)
pkg_mod = import('pkgconfig')
pkg_mod.generate(name: 'cvector',
filebase: 'cvector',
description: 'Simple C implementation of C++ and Rust inspired vectors',
libraries: shlib,
version: '0.1.0')