summaryrefslogtreecommitdiff
path: root/src/lib/evil/meson.build
blob: db2871c9fa95acc1a007359450dfd38b6a3b3cb8 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
evil_deps = []
evil_pub_deps = []
if target_machine.system() == 'windows'
  evil_header_src = [
  'Evil.h',
  'evil_dlfcn.h',
  'evil_fcntl.h',
  'evil_langinfo.h',
  'evil_locale.h',
  'evil_macro.h',
  'evil_macro_pop.h',
  'evil_macro_wrapper.h',
  'evil_main.h',
  'evil_stdio.h',
  'evil_stdlib.h',
  'evil_string.h',
  'evil_time.h',
  'evil_unistd.h',
  'evil_util.h',
  'dirent.h',
  'pwd.h',
  ]
  evil_header_sys_src = [join_paths('sys','mman.h')]

  evil_src = [
  'evil_dlfcn.c',
  'evil_fcntl.c',
  'evil_langinfo.c',
  'evil_locale.c',
  'evil_main.c',
  'evil_mman.c',
  'evil_pwd.c',
  'evil_stdio.c',
  'evil_stdlib.c',
  'evil_string.c',
  'evil_time.c',
  'evil_unistd.c',
  'evil_util.c',
  'evil_private.h',
  ]

  psapi = cc.find_library('psapi')
  ole32 = cc.find_library('ole32')
  ws2_32 = cc.find_library('ws2_32')
  secur32 = cc.find_library('secur32')
  uuid = cc.find_library('uuid')

  evil_lib = library('evil', evil_src,
    dependencies : [psapi, ole32, ws2_32, secur32, uuid, regexp],
    include_directories : [config_dir],
    install: true,
    version: meson.project_version(),
  )

  evil = declare_dependency(
    include_directories: [include_directories('.')],
    dependencies : [psapi, ole32, ws2_32, secur32, uuid, regexp],
    link_with: evil_lib,
  )
else
  evil = declare_dependency()
  automatic_pkgfile = false
endif