summaryrefslogtreecommitdiff
path: root/src/lib/evil/unposix/meson.build
blob: 53d82022fad533594a02972ac92d8f921158cf4e (plain)
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
37
38
39
40
41
42
43
dir_package_include = '.'

if sys_windows
  evil_unposix_src = []

  evil_unposix_header_src = [
    'fnmatch.h',
    'libgen.h',
    'limits.h',
    'locale.h',
    'math.h',
    'pthread.h',
    'stdlib.h',
    'string.h',
    'strings.h',
    'unimplemented.h',
    'unistd.h',
  ]

  subdir('sys')

  evil_unposix_lib = static_library('evil_unposix',
    evil_unposix_src,
    include_directories: [include_directories('.'), config_dir],
    dependencies : [pcre_dep, getopt_dep],
    install: true,
    version: meson.project_version(),
  )

  evil_unposix = declare_dependency(
    include_directories: [include_directories('.')],
    dependencies: [pcre_dep, getopt_dep],
    link_with: evil_unposix_lib,
  )

  install_headers(evil_unposix_header_src,
    install_dir : dir_package_include,
  )
else
  evil_unposix = declare_dependency()
endif

automatic_pkgfile = (sys_windows == false)