X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=shared%2Fmeson.build;h=90711c02f1f17a8043e2be55fbcab61479894951;hb=d1e616378bda406c96acf7c2dc975b7ab2e8165e;hp=1bb183b9a2e8107dc0753091421a269637b077c3;hpb=539609eb56b496e6eff8a5e0a92fa0325936a5d7;p=nageru diff --git a/shared/meson.build b/shared/meson.build index 1bb183b..90711c0 100644 --- a/shared/meson.build +++ b/shared/meson.build @@ -1,9 +1,27 @@ qt5 = import('qt5') -qt5deps = dependency('qt5', modules: ['OpenGL']) +shared_qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL']) libmicrohttpddep = dependency('libmicrohttpd') +protobufdep = dependency('protobuf') +alsadep = dependency('alsa') -srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp', 'mux.cpp', 'metrics.cpp', 'context.cpp', 'httpd.cpp'] -shared = static_library('shared', srcs, include_directories: top_include, dependencies: [qt5deps, libmicrohttpddep]) +# 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', 'midi_device.cpp'] + +# Qt objects. +srcs += qt_files +srcs += ['aboutdialog.cpp'] + +shared = static_library('shared', srcs, include_directories: top_include, dependencies: [shared_qt5deps, libmicrohttpddep, protobufdep, alsadep]) 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@'])