X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fmeson.build;h=f542ff680f4051077485aa7456321c4764a8631e;hb=3408ddc5a7b849a20f652cb12db62ca6751f3783;hp=4692d0114d1b9243aaeaf4675f8c427a65337a8d;hpb=f9a11c73b0c2ff2d44d79f856998f8cbfc88a478;p=nageru diff --git a/shared/meson.build b/shared/meson.build index 4692d01..f542ff6 100644 --- a/shared/meson.build +++ b/shared/meson.build @@ -1,8 +1,14 @@ qt5 = import('qt5') shared_qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL']) +libavcodecdep = dependency('libavcodec') +libavformatdep = dependency('libavformat') +libavutildep = dependency('libavutil') libmicrohttpddep = dependency('libmicrohttpd') protobufdep = dependency('protobuf') alsadep = dependency('alsa') +movitdep = dependency('movit') +vadrmdep = dependency('libva-drm') +vax11dep = dependency('libva-x11') # Preprocess Qt as needed. qt_files = qt5.preprocess( @@ -18,20 +24,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', 'va_display.cpp', 'va_resource_pool.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, libavcodecdep, libavformatdep, libavutildep, libmicrohttpddep, protobufdep, alsadep, movitdep, vadrmdep, vax11dep]) 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@'])