Build examples using meson

pull/22/head
Andri Yngvason 2020-02-09 11:41:43 +00:00
parent 61efca48f0
commit 3ecede86c3
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,29 @@
libpng = dependency('libpng', required: false)
executable(
'draw',
[
'draw.c',
],
dependencies: [
neatvnc_dep,
pixman,
libuv,
]
)
if libpng.found()
executable(
'png-server',
[
'png-server.c',
'../src/pngfb.c',
],
dependencies: [
neatvnc_dep,
pixman,
libuv,
libpng,
]
)
endif

View File

@ -91,6 +91,10 @@ neatvnc_dep = declare_dependency(
link_with: neatvnc,
)
if get_option('examples')
subdir('examples')
endif
install_headers('include/neatvnc.h')
pkgconfig = import('pkgconfig')

View File

@ -1,2 +1,3 @@
option('tight-encoding', type: 'feature', value: 'disabled', description: 'Enable Tight encoding (experimental)')
option('tls', type: 'feature', value: 'auto', description: 'Enable encryption & authentication')
option('examples', type: 'boolean', value: false, description: 'Build examples')