meson.build 1.2 KB
Newer Older
1
project( 'loopp', ['c','cpp'],
2 3
  default_options : [
    'cpp_std=c++11',
4 5
    ],
    version: '1.2.1')
6 7 8 9 10

if(get_option('tests') == true)
  add_project_arguments('-DBUILD_TESTS', language : 'cpp')
endif

11 12 13 14 15 16 17
add_project_arguments('-Wno-unused-variable', language : 'cpp')
add_project_arguments('-Wno-reorder', language : 'cpp')
add_project_arguments('-Wno-sign-compare', language : 'cpp')

cc  = meson.get_compiler('c')
cpp = meson.get_compiler('cpp')

Georg Krause's avatar
Georg Krause committed
18
loopp_src = []
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
subdir('src')


dep_names = [
  'ntk',
  'cairo',
  'liblo',
  'jack',
  'sndfile',
  'samplerate',
  'x11'
  ]
deps = []

foreach dep : dep_names
  deps += dependency(dep)
endforeach

# compile the main project
Georg Krause's avatar
Georg Krause committed
38
exe = executable('loopp', loopp_src + [version_hxx],
39
    install: true,
40
    dependencies: deps)
Georg Krause's avatar
Georg Krause committed
41

42 43 44 45
if get_option('unitTests')
  test('Unit Tests', exe, args : ['-r junit', '-o junit.xml'])
endif

Georg Krause's avatar
Georg Krause committed
46 47 48
install_data('resources/metadata/loopp.desktop', install_dir: 'share/applications')
install_data('resources/metadata/loopp.appdata.xml', install_dir: 'share/appdata')
install_data('resources/icons/loopp.png', install_dir: 'share/pixmaps')
Georg Krause's avatar
Georg Krause committed
49
install_data('resources/icons/loopp-small.png', install_dir: 'share/icons/hicolor/32x32/apps', rename: ['loopp.png'])