project('stdlib', 'c')

cc = meson.get_compiler('c')
libm = cc.find_library('m')

glib_dep = dependency('glib-2.0', version: '>= 2.16', required: false)
openmp_dep = dependency('openmp', required: false)
thread_dep = dependency('threads', required: false)

if host_machine.system() == 'windows'
    cc = meson.get_compiler('c')
	socket_deps = [cc.find_library('ws2_32')]
else
    socket_deps = []
endif

subdir('lib')
subdir('src')

if glib_dep.found()
    subdir('test')
endif