Commit 22ae752d authored by kaniini's avatar kaniini

add meson build file (which will replace the qmake stuff going forward)

parent 025e65ce
project('michabo', 'cpp',
version: '0.2',
meson_version: '>= 0.50')
qt_req = '>= 5.12'
qt_dep = dependency('qt5', version: qt_req, required: true, modules: ['Core', 'Gui', 'WebSockets', 'Widgets', 'Network', 'DBus'])
michabo_core_sources = [
'core/account.cc',
'core/accountmanager.cc',
'core/post.cc'
]
michabo_ui_sources = [
'ui/aboutwindow.cc',
'ui/accountform.cc',
'ui/addaccountbutton.cc',
'ui/attachmenteditorwidget.cc',
'ui/avatarwidget.cc',
'ui/composeform.cc',
'ui/iconutils.cc',
'ui/identitywidget.cc',
'ui/main.cc',
'ui/mainwindow.cc',
'ui/notificationimpl.cc',
'ui/onboardingwidget.cc',
'ui/preferenceswindow.cc',
'ui/threadwindow.cc',
'ui/timelineselectorwidget.cc',
'ui/timelinewidget.cc'
]
moc_headers = [
'core/account.h',
'core/accountmanager.h',
'ui/accountform.h',
'ui/attachmenteditorwidget.h',
'ui/avatarwidget.h',
'ui/composeform.h',
'ui/identitywidget.h',
'ui/mainwindow.h',
'ui/notificationimpl.h',
'ui/onboardingwidget.h',
'ui/threadwindow.h',
'ui/timelinewidget.h'
]
qt5 = import('qt5')
moc_files = qt5.preprocess(moc_headers: moc_headers, dependencies: qt_dep)
qrc_files = qt5.preprocess(qresources: 'resources.qrc')
core_inc = include_directories('core')
ui_inc = include_directories('ui')
michabo_exe = executable('michabo',
michabo_core_sources,
michabo_ui_sources,
moc_files,
qrc_files,
dependencies: [qt_dep],
install: true
)
Markdown is supported
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