Skip to content

Commit

Permalink
Merge pull request #2 from openSUSE/meson-port
Browse files Browse the repository at this point in the history
Meson Port - build with the superior buildsystem
  • Loading branch information
sowelipililimute authored Jun 30, 2019
2 parents 1e10b30 + 01a20e2 commit b7ad6cb
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
build
i18n/*.ts
i18n/*.qm
i18n.qrc
8 changes: 8 additions & 0 deletions i18n.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource prefix="/">
<file>i18n/qml_en.qm</file>
<file>i18n/base.qm</file>
<file>i18n/qml_de.qm</file>
</qresource>
</RCC>
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
project('opensuse-welcome', 'cpp')
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Quick', 'WebEngine', 'WebChannel'])
inc = include_directories('include')
qresource_files = ['qml.qrc', 'webresources.qrc', 'i18n.qrc'] # incoming hell of hella files (maybe?)
processed_files = qt5.preprocess(moc_headers: ['include/enabler.h', 'include/launcher.h', 'include/sysinfo.h'],
include_directories: inc,
qresources: qresource_files)

lconvert_prog = find_program('lconvert-qt5')
i18n_gen = generator(lconvert_prog,
output: '@[email protected]',
arguments: ['@INPUT@', '-o', '@OUTPUT@'])

trans = ['i18n/base.po', 'i18n/qml_de.po', 'i18n/qml_en.po']
i18n_files = []

foreach tran : trans
i18n_files += i18n_gen.process(tran)
endforeach

subdir('src')

install_data('welcome.desktop', install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'applications'))
install_data('welcome.desktop', install_dir: join_paths(get_option('sysconfdir'), 'xdg/autostart'))
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
welcome_sources = ['enabler.cpp', 'launcher.cpp', 'main.cpp', 'sysinfo.cpp']

welcome = executable('opensuse-welcome',
welcome_sources,
processed_files,
include_directories : inc,
dependencies: qt5_dep,
install: true)
File renamed without changes.

0 comments on commit b7ad6cb

Please sign in to comment.