Build examples using meson
parent
61efca48f0
commit
3ecede86c3
|
@ -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
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue