You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
797 B

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')