aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 6e57aa64d0d242c4ac5434ad45800e25e1df5fd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
project('calt', 'c',
  version : '0.0.0.1',
  default_options : [
    'warning_level=3',
    'c_std=c11',
    'werror=true',
    'b_ndebug=if-release'
  ])

inc = include_directories('include')

subdir('include')
subdir('src')

lib = library(meson.project_name(), src, header,
  install : true,
  include_directories : inc,
)

calt = declare_dependency(
  include_directories: inc,
  link_with : lib)

if get_option('enable_test')
  subdir('test')
endif

pkg_mod = import('pkgconfig')
pkg_mod.generate(
  name : meson.project_name(),
  filebase : meson.project_name(),
  description : 'A C library that is to implement extend and be an alternative to the C stadard library',
  subdirs : 'calt',
  libraries : lib,
  version : meson.project_version(),
)