| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- project(
- 'scufcont',
- 'c',
- version: '0.0.1',
- default_options: {
- 'buildtype': 'release'
- }
- )
- c_args = [
- '-std=c99',
- '-Wall',
- '-Wextra',
- '-pedantic'
- ]
- cmocka_dep = dependency('cmocka')
- scufcont_include = include_directories('include')
- scufcont_lib = library(
- 'scufcont',
- 'src/DString.c',
- 'src/scufcont.c',
- include_directories: [
- scufcont_include
- ],
- c_args: [
- c_args,
- '-D_SCUFCONT_VERSION="' + meson.project_version() + '"',
- ]
- )
- scufcont_dep = declare_dependency(
- compile_args: [
- c_args,
- '-D_SCUFCONT_VERSION="' + meson.project_version() + '"',
- ],
- include_directories: scufcont_include,
- link_with: scufcont_lib,
- version: meson.project_version()
- )
- if meson.is_subproject()
- meson.override_dependency('scufcont', scufcont_dep)
- endif
- if get_option('SCUFCONT_BUILD_TESTS') == true
- subdir('tests')
- endif
|