Commit 5a85a5b0 authored by Kiste's avatar Kiste
Browse files

Add meson build system

parent 8d3b79b0
project('xwax', 'c')
mdep = meson.get_compiler('c').find_library('m', required: false)
srcs = [
'controller.c',
'cues.c',
'deck.c',
'device.c',
'dummy.c',
'excrate.c',
'external.c',
'index.c',
'interface.c',
'library.c',
'listbox.c',
'lut.c',
'player.c',
'realtime.c',
'rig.c',
'selector.c',
'status.c',
'thread.c',
'timecoder.c',
'track.c',
'xwax.c',
]
deps = [
dependency('sdl2'),
dependency('SDL2_ttf'),
mdep
]
args = [
'-DEXECDIR="' + join_paths(get_option('prefix'), get_option('libexecdir')) + '"',
'-DVERSION="lol"'
]
if get_option('enable-alsa')
srcs += ['alsa.c', 'dicer.c', 'midi.c']
deps += [dependency('alsa')]
args += ['-DWITH_ALSA']
endif
if get_option('enable-jack')
srcs += ['jack.c']
deps += [dependency('jack')]
args += ['-DWITH_JACK']
endif
if get_option('enable-oss')
srcs += ['oss.c']
args += ['-DWITH_OSS']
endif
executable('xwax', srcs, dependencies: deps, c_args: args, install: true)
executable('xwax-mktimecode', 'mktimecode.c', dependencies: mdep, install: true)
install_man('xwax.1')
install_data('import', 'scan', rename: ['xwax-import', 'xwax-scan'], install_dir: get_option('libexecdir'))
install_data('CHANGES', 'COPYING', 'README', install_dir: join_paths(get_option('datadir'), 'doc', 'xwax'))
option('enable-alsa', type: 'boolean', value: false, description: 'Enable ALSA audio device')
option('enable-jack', type: 'boolean', value: false, description: 'Enable JACK audio device')
option('enable-oss', type: 'boolean', value: false, description: 'Enable OSS audio device')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment