X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fmeson.build;h=22d4c19731c0bd6daf382791f4360cab24421f32;hb=36eca4f9642b540e5c7fdf59861dcdb7a8b622e6;hp=2afff9e5ead674b3cd5fee1571d1baffe659c0f2;hpb=131a051c4cd3719a9be415386fdf0f4e15da7c66;p=nageru diff --git a/shared/meson.build b/shared/meson.build index 2afff9e..22d4c19 100644 --- a/shared/meson.build +++ b/shared/meson.build @@ -1,6 +1,26 @@ +qt5 = import('qt5') +shared_qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL']) +libmicrohttpddep = dependency('libmicrohttpd') +protobufdep = dependency('protobuf') -srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp', 'mux.cpp', 'metrics.cpp'] -shared = static_library('shared', srcs, include_directories: top_include) +# 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', 'text_proto.cpp'] + +# Qt objects. +srcs += qt_files +srcs += ['aboutdialog.cpp'] + +shared = static_library('shared', srcs, include_directories: top_include, dependencies: [shared_qt5deps, libmicrohttpddep, protobufdep]) 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@'])