summaryrefslogtreecommitdiff
path: root/meson.build
blob: fde2360e90af0fd481c8e11cdf535deba37be956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
project('qimv', 'cpp',
  version : '0.1',
  default_options : ['warning_level=3', 'cpp_std=c++17'])

summary({
  'prefix': get_option('prefix'),
  'bindir': get_option('bindir'),
  'libdir': get_option('libdir'),
  'datadir': get_option('datadir')
}, section: 'Install locations')

cxx = meson.get_compiler('cpp')
summary({
  'id': cxx.get_id(),
  'version': cxx.version(),
  'linker': cxx.get_linker_id(),
}, section: 'Compiler')

vcs_tag(input: 'src/version.h.in', output: 'version.h')

mod_qt5 = import('qt5')
dep_qt5 = dependency('qt5', modules: [ 'Core', 'Widgets' ], include_type: 'system')

moc = mod_qt5.preprocess(
    moc_headers: [ 'src/mainwindow.h', 'src/scaleform.h' ],
    ui_files: [ 'src/mainwindow.ui', 'src/scaleform.ui' ],
    dependencies: dep_qt5
)

exe = executable('qimv', 
  sources: [ 'src/main.cpp', 'src/mainwindow.cpp', 'src/scaleform.cpp', moc ],
  dependencies: dep_qt5,
  install: true)