X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fmeson.build;h=9f078428e533739544f46e3169c29a2abd0fd3ed;hb=d12283c92f0750871834b7c5afda605402d3b832;hp=8d1b203c7cd56e65feecd9eceea757f3dc3926f4;hpb=4a38970b4e8cd4bce1dd9eabd56a45635501bbc3;p=nageru diff --git a/shared/meson.build b/shared/meson.build index 8d1b203..9f07842 100644 --- a/shared/meson.build +++ b/shared/meson.build @@ -1,8 +1,25 @@ qt5 = import('qt5') -qt5deps = dependency('qt5', modules: ['OpenGL']) +shared_qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL']) +libmicrohttpddep = dependency('libmicrohttpd') -srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp', 'mux.cpp', 'metrics.cpp', 'context.cpp'] -shared = static_library('shared', srcs, include_directories: top_include, dependencies: qt5deps) +# Preprocess Qt as needed. +qt_files = qt5.preprocess( + moc_headers: ['aboutdialog.h'], + ui_files: ['aboutdialog.ui'], + dependencies: shared_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: [shared_qt5deps, libmicrohttpddep]) shareddep = declare_dependency( include_directories: top_include, link_with: shared) + +bin2h = executable('bin2h', 'bin2h.cpp') +bin2h_gen = generator(bin2h, \ + output : ['@PLAINNAME@.cpp'], + arguments : ['@INPUT@', '@PLAINNAME@', '@OUTPUT@'])