forked from actor-framework/actor-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
31 lines (22 loc) · 787 Bytes
/
meson.build
File metadata and controls
31 lines (22 loc) · 787 Bytes
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
project('caf', 'cpp', default_options : ['cpp_std=c++11'], version : '0.16.0')
cc = meson.get_compiler('cpp')
cc_id = cc.get_id()
cflags = []
if cc_id == 'clang'
cflags += ['-ftemplate-depth=512', '-ftemplate-backtrace-limit=0', '-Wno-deprecated-declarations']
elif cc_id == 'gcc'
cflags += ['-Wno-missing-field-initializers', '-Wno-deprecated-declarations']
endif
shared_deps = [dependency('threads')]
system = host_machine.system()
if system == 'windows' and cc_id == 'gcc'
cflags += ['-D_WIN32_WINNT=0x0600', '-DWIN32']
elif system == 'cygwin'
cflags += '-U__STRICT_ANSI__'
endif
if system == 'windows'
shared_deps += [cc.find_library('ws2_32'),
cc.find_library('iphlpapi'),
cc.find_library('psapi')]
endif
subdir('libcaf_core')