1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 10:41:55 +00:00
miraclecast/meson.build

49 lines
1.1 KiB
Meson
Raw Normal View History

2017-04-05 08:40:26 +00:00
project('Miraclecast',
'c',
version: '1',
meson_version: '>=0.39',
default_options: ['c_std=gnu11', 'b_lundef=true']
2017-04-05 08:40:26 +00:00
)
2017-04-03 14:16:29 +00:00
add_project_arguments('-D_GNU_SOURCE', language: 'c')
2017-04-05 08:40:26 +00:00
2017-04-03 14:16:29 +00:00
conf_data = configuration_data()
conf_data.set_quoted('BUILD_BINDIR',
join_paths(get_option('prefix'), get_option('bindir'))
2017-04-03 14:16:29 +00:00
)
conf_data.set_quoted('PACKAGE_STRING',
'@0@ @1@'.format(meson.project_name(), meson.project_version())
2017-04-03 14:16:29 +00:00
)
configure_file(output: 'config.h',
configuration: conf_data
)
2017-04-05 08:40:26 +00:00
c_compiler = meson.get_compiler('c')
readline = c_compiler.find_library('readline', required: false)
if readline.found()
add_project_arguments('-DHAVE_READLINE', language: 'c')
endif
2017-04-03 14:16:29 +00:00
if get_option('build-enable-debug')
add_project_arguments('-DBUILD_ENABLE_DEBUG', language: 'c')
endif
2017-04-05 08:40:26 +00:00
2017-04-03 14:16:29 +00:00
if get_option('rely-udev')
add_project_arguments('-DRELY_UDEV', language: 'c')
2017-04-05 08:40:26 +00:00
endif
2017-04-03 14:16:29 +00:00
glib2 = dependency('glib-2.0')
udev = dependency('libudev')
libsystemd = dependency('libsystemd')
2017-04-05 08:40:26 +00:00
subdir('src')
subdir('res')
2017-04-03 14:16:29 +00:00
if get_option('build-tests')
subdir('test')
endif
2017-04-05 08:40:26 +00:00
if get_option('build-demo')
subdir('demo')
endif