meson.build 435 Bytes
Newer Older
Daniel Stone's avatar
Daniel Stone committed
1 2 3 4 5 6 7 8 9
if not get_option('wcap-decode')
	subdir_done()
endif

srcs_wcap = [
	'main.c',
	'wcap-decode.c',
]

10 11 12 13
wcap_dep_cairo = dependency('cairo', required: false)
if not wcap_dep_cairo.found()
	error('wcap requires cairo which was not found. Or, you can use \'-Dwcap-decode=false\'.')
endif
Daniel Stone's avatar
Daniel Stone committed
14 15 16 17 18

executable(
	'wcap-decode',
	srcs_wcap,
	include_directories: include_directories('..'),
19
	dependencies: [ dep_libm, wcap_dep_cairo ],
Daniel Stone's avatar
Daniel Stone committed
20 21
	install: true
)