Authentication framework
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.
 
 
 

46 lines
1.6 KiB

project('simsecl', 'c', default_options : ['default_library=static', 'c_std=c99'], subproject_dir : 'meson')
incdir = include_directories(['src', 'include'])
if get_option('buildtype').startswith('debug')
add_project_arguments('-DSIMSECL_DEBUG', language : 'c')
else
endif
simsecl_src = ['src/simsecl.c']
#depmpack = dependency('mpack', required:true)
depsodium = dependency('libsodium', required:true)
subproject('parasol', default_options : ['default_library=static'])
depparasol = dependency('parasol', fallback : ['parasol', 'parasol_dep'], required:true)
subproject('mpack', default_options : ['default_library=static', 'c_std=c99'])
depmpack = dependency('mpack', fallback : ['mpack', 'ludocode_mpack_dep'], required:true)
libsimsecl = library('simsecl', simsecl_src, include_directories : incdir, dependencies: [depsodium, depparasol, depmpack])
simsecl_dep = declare_dependency(link_with : libsimsecl, include_directories : incdir)
if not meson.is_subproject()
# executable('simsecl-tests', 'src/tests.c', include_directories : incdir)
# Client
cc = meson.get_compiler('c')
deplibui = cc.find_library('libui', required:false)
if deplibui.found()
executable('simsecl-client-libui', 'src/client-libui/main.c', include_directories : incdir, dependencies: [deplibui, simsecl_dep])
endif
# Server
subproject('lob', default_options : ['default_library=static', 'c_std=gnu89', 'use_boksi=false'])
deplob = dependency('lob', fallback : ['lob', 'lob_dep'], required:false)
if deplob.found()
executable('simsecl-server', 'src/server/main.c', include_directories : incdir, dependencies: [simsecl_dep, deplob])
endif
endif