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
|
system_sources = [
'FatalError.cxx',
'FileDescriptor.cxx',
'Open.cxx',
'EventPipe.cxx',
'Clock.cxx',
]
if host_machine.system() == 'linux'
system_sources += [
'EventFD.cxx',
'SignalFD.cxx',
'EpollFD.cxx',
]
endif
system = static_library(
'system',
system_sources,
include_directories: inc,
)
if is_windows
winsock_dep = c_compiler.find_library('ws2_32')
else
winsock_dep = dependency('', required: false)
endif
system_dep = declare_dependency(
link_with: system,
dependencies: [
winsock_dep,
],
)
|