forked from mojyack/coop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
26 lines (21 loc) · 839 Bytes
/
meson.build
File metadata and controls
26 lines (21 loc) · 839 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
project('coop', 'cpp', version : '1.2.4', default_options : ['warning_level=3', 'werror=false', 'cpp_std=c++23'])
add_project_arguments('-Wfatal-errors', language: 'cpp')
add_project_arguments('-Wno-missing-field-initializers', language: 'cpp')
deps = []
if host_machine.system() == 'windows'
cpp = meson.get_compiler('cpp')
deps += [
cpp.find_library('ws2_32'),
]
endif
coop = declare_dependency(dependencies : deps, include_directories: include_directories('include'))
install_subdir('include/coop', install_dir : 'include')
pkgconfig = import('pkgconfig')
pkgconfig.generate(
description: 'C++ asynchronous coroutine runtime',
name : 'coop',
)
if get_option('examples')
executable('example', ['example/main.cpp'], dependencies : coop)
executable('pipe-test', ['example/pipe-test.cpp'], dependencies : coop)
endif