meson.build
| 1 | project('cutils', 'c') |
| 2 | |
| 3 | WARNINGS = ['-Wall', '-Wpedantic', '-Wextra', '-Wnull-dereference', '-Wshadow', '-Wconversion', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wcast-qual', '-Wstrict-overflow=5', '-Wunreachable-code', '-Wno-unused-parameter', '-Wno-unused-function', '-Wno-long-long'] |
| 4 | CFLAGS = ['-std=c11', '-fstrict-aliasing', '-fPIC', '-Wno-long-long', '-Og'] + WARNINGS |
| 5 | |
| 6 | subdir('include') |
| 7 | subdir('src') |
| 8 | |
| 9 | |
| 10 | pkg = import('pkgconfig') |
| 11 | libs = 'cutils' |
| 12 | headers = 'include' |
| 13 | |
| 14 | pkg.generate(libraries : cutils_lib, subdirs : headers, version : '1.0', name : 'libcutils', filebase : 'cutils', description : 'Collection of some portable helper function and data structures in C89.') |
| 15 |