Protocol for Instrumentation of Emulators
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
772 B

project('pine', 'cpp', default_options : ['cpp_std=c++17',
'buildtype=debug'])
compiler = meson.get_compiler('cpp')
winsock = compiler.find_library('ws2_32', required: false)
thread_dep = dependency('threads')
src = ['src/client.cpp', 'src/pine.h']
executable('client', src, dependencies : [thread_dep, winsock])
catch2 = dependency('catch2', required : false)
test_src = ['src/tests.cpp']
if catch2.found()
# TODO: in the future if we need to add threads to the API test cases might
# run into an infinite loop, i have absolutely no clue why that happens but
# including thread_dep here just leads to it. so don't include that future me.
e = executable('tests', test_src, dependencies : [catch2, winsock], cpp_args :
'-DTESTS')
test('tests', e)
endif