33 lines
1.0 KiB
Meson
33 lines
1.0 KiB
Meson
project('psxavenc', 'c', default_options: ['c_std=c11'])
|
|
|
|
add_project_arguments('-D_POSIX_C_SOURCE=201112L', '-ffast-math', language : 'c')
|
|
|
|
conf_data = configuration_data()
|
|
conf_data.set('VERSION', '"' + run_command('git', '-C', meson.project_source_root(), 'describe', '--tags', '--always', '--dirty', '--match=v*', check: true).stdout().strip() + '"')
|
|
configure_file(output: 'config.h', configuration: conf_data)
|
|
|
|
libm_dep = meson.get_compiler('c').find_library('m')
|
|
|
|
ffmpeg = [
|
|
dependency('libavformat'),
|
|
dependency('libavcodec'),
|
|
dependency('libavutil'),
|
|
dependency('libswresample'),
|
|
dependency('libswscale')
|
|
]
|
|
|
|
libpsxav = static_library('psxav', [
|
|
'libpsxav/adpcm.c',
|
|
'libpsxav/cdrom.c',
|
|
'libpsxav/libpsxav.h'
|
|
])
|
|
libpsxav_dep = declare_dependency(include_directories: include_directories('libpsxav'), link_with: libpsxav)
|
|
|
|
executable('psxavenc', [
|
|
'psxavenc/args.c',
|
|
'psxavenc/decoding.c',
|
|
'psxavenc/filefmt.c',
|
|
'psxavenc/main.c',
|
|
'psxavenc/mdec.c'
|
|
], dependencies: [libm_dep, ffmpeg, libpsxav_dep], install: true)
|