From 92b3c2dcff3e85ad3d455f6ab845d9a97d3b525b Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 7 Dec 2020 12:22:15 +0200 Subject: Rewrite meson build scripts into cmakelists --- lang/CMakeLists.txt | 10 ++++++++++ lang/meson.build | 4 ---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 lang/CMakeLists.txt delete mode 100644 lang/meson.build (limited to 'lang') diff --git a/lang/CMakeLists.txt b/lang/CMakeLists.txt new file mode 100644 index 0000000..319c706 --- /dev/null +++ b/lang/CMakeLists.txt @@ -0,0 +1,10 @@ +# https://wiki.qt.io/How_to_create_a_multi_language_application + +# generating .ts files +# lupdate -verbose src/ -ts output.ts + +# updating .ts files +# lupdate -verbose -no-obsolete src/ -ts output.ts + +# creating the binary language files (.qm) +# lrelease -compress -removeidentical input.ts [-qm output.qm] diff --git a/lang/meson.build b/lang/meson.build deleted file mode 100644 index 8c4a820..0000000 --- a/lang/meson.build +++ /dev/null @@ -1,4 +0,0 @@ - -# translations -mod_qt5.compile_translations(ts_files: 'bg.ts', install: get_option('translations').enabled(), install_dir: get_option('datadir') / 'smolbote/translations' , build_by_default: false) - -- cgit v1.2.1