22 lines
556 B
Meson
22 lines
556 B
Meson
|
project('FeatherMC', ['c', 'cpp'], version : '0.0', meson_version : '>= 0.49', default_options : [
|
||
|
'warning_level=2',
|
||
|
])
|
||
|
|
||
|
add_project_arguments('-DNOMINMAX', language : 'cpp')
|
||
|
|
||
|
feather_compiler = meson.get_compiler('cpp')
|
||
|
feather_cpp_std = 'c++17'
|
||
|
feather_platform = target_machine.system()
|
||
|
|
||
|
if feather_compiler.get_id() == 'msvc'
|
||
|
add_project_arguments('/std:' + feather_cpp_std, language : 'cpp')
|
||
|
endif
|
||
|
|
||
|
threads_dep = dependency('threads')
|
||
|
|
||
|
if feather_platform == 'windows'
|
||
|
ws2_32_dep = feather_compiler.find_library('ws2_32')
|
||
|
endif
|
||
|
|
||
|
subdir('src')
|