2018-10-18 16:31:50 -03:00
|
|
|
project('sernatur',
|
|
|
|
['c', 'vala'],
|
|
|
|
version: '1.0.0',
|
|
|
|
license: 'BSD-3',
|
|
|
|
default_options: [
|
2019-01-03 19:47:43 -03:00
|
|
|
'c_std=c11',
|
2018-10-18 16:31:50 -03:00
|
|
|
'b_ofast=if-release',
|
|
|
|
'b_march_native=if-release',
|
|
|
|
'b_ndebug=if-release'
|
|
|
|
]
|
|
|
|
)
|
2019-01-05 00:28:18 -03:00
|
|
|
add_project_arguments('-DGETTEXT_PACKAGE="' + meson.project_name() + '"', language: 'c')
|
2018-10-18 16:31:50 -03:00
|
|
|
|
2019-01-03 19:47:43 -03:00
|
|
|
debugging = get_option('debugging')
|
|
|
|
if debugging
|
2019-01-05 00:28:18 -03:00
|
|
|
add_project_arguments('-DDEBUG', language : 'c')
|
|
|
|
add_project_arguments('-D', 'DEBUG', language : 'vala')
|
2019-01-03 19:47:43 -03:00
|
|
|
endif
|
|
|
|
|
2018-11-01 21:52:30 -03:00
|
|
|
add_project_arguments(['--vapidir',
|
2019-01-03 19:47:43 -03:00
|
|
|
join_paths(meson.current_source_dir(), 'vapi')],
|
2018-11-01 21:52:30 -03:00
|
|
|
language: 'vala')
|
|
|
|
|
2018-11-01 22:08:06 -03:00
|
|
|
subdir('po')
|
2018-10-18 16:31:50 -03:00
|
|
|
subdir('data')
|
2019-01-03 19:47:43 -03:00
|
|
|
subdir('lib')
|
2018-10-18 16:31:50 -03:00
|
|
|
subdir('src')
|
2018-11-01 22:08:06 -03:00
|
|
|
subdir('doc')
|
2018-10-18 16:31:50 -03:00
|
|
|
subdir('script')
|
2019-01-15 16:39:41 -03:00
|
|
|
subdir('test')
|