X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fmeson.build;h=49c52ee65bc6743d4b969ec299c3a3c5b3dbf826;hb=44606be7327eb9160b9de6c7be5c5006a3d5670e;hp=acb2c9a251f46e7e77db3eb3455e85e7ca1d914b;hpb=e9bec1e17f41f66d3567148e110fe8a3b6451fb3;p=nageru diff --git a/shared/meson.build b/shared/meson.build index acb2c9a..49c52ee 100644 --- a/shared/meson.build +++ b/shared/meson.build @@ -1,8 +1,19 @@ qt5 = import('qt5') -qt5deps = dependency('qt5', modules: ['OpenGL']) +qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL']) libmicrohttpddep = dependency('libmicrohttpd') +# Preprocess Qt as needed. +qt_files = qt5.preprocess( + moc_headers: ['aboutdialog.h'], + ui_files: ['aboutdialog.ui'], + dependencies: qt5deps) + srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp', 'mux.cpp', 'metrics.cpp', 'context.cpp', 'httpd.cpp', 'disk_space_estimator.cpp', 'read_file.cpp'] + +# Qt objects. +srcs += qt_files +srcs += ['aboutdialog.cpp'] + shared = static_library('shared', srcs, include_directories: top_include, dependencies: [qt5deps, libmicrohttpddep]) shareddep = declare_dependency( include_directories: top_include,