X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fmeson.build;h=c7ef06c410ea32464c91ecb21f45d24c268499b3;hb=adc0df09f7a9dc88a3c0dbad47a21a805e728862;hp=082e4f515ed305f771a1c9dec406ef6482870400;hpb=09b27ab32073dba2c565cdda43fcf2c37ea04a7b;p=nageru diff --git a/shared/meson.build b/shared/meson.build index 082e4f5..c7ef06c 100644 --- a/shared/meson.build +++ b/shared/meson.build @@ -3,10 +3,11 @@ shared_qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL'] libmicrohttpddep = dependency('libmicrohttpd') protobufdep = dependency('protobuf') alsadep = dependency('alsa') +movitdep = dependency('movit') # Preprocess Qt as needed. qt_files = qt5.preprocess( - moc_headers: ['aboutdialog.h'], + moc_headers: ['aboutdialog.h', 'controller_spin_box.h'], ui_files: ['aboutdialog.ui'], dependencies: shared_qt5deps) @@ -18,20 +19,20 @@ proto_generated = gen.process(['midi_mapping.proto']) protobuf_lib = static_library('protobufs', proto_generated, dependencies: [protobufdep]) protobuf_hdrs = declare_dependency(sources: proto_generated) -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'] +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', 'ref_counted_texture.cpp'] srcs += proto_generated # Qt objects. srcs += qt_files srcs += ['aboutdialog.cpp'] -shared = static_library('shared', srcs, include_directories: top_include, dependencies: [shared_qt5deps, libmicrohttpddep, protobufdep, alsadep]) +shared = static_library('shared', srcs, include_directories: top_include, dependencies: [shared_qt5deps, libmicrohttpddep, protobufdep, alsadep, movitdep]) shareddep = declare_dependency( sources: proto_generated, include_directories: top_include, link_with: [shared, protobuf_lib]) -bin2h = executable('bin2h', 'bin2h.cpp') +bin2h = executable('bin2h', 'bin2h.cpp', native: true) bin2h_gen = generator(bin2h, \ output : ['@PLAINNAME@.cpp'], arguments : ['@INPUT@', '@PLAINNAME@', '@OUTPUT@'])