]> git.sesse.net Git - nageru/blob - shared/meson.build
22d4c19731c0bd6daf382791f4360cab24421f32
[nageru] / shared / meson.build
1 qt5 = import('qt5')
2 shared_qt5deps = dependency('qt5', modules: ['Core', 'Gui', 'Widgets', 'OpenGL'])
3 libmicrohttpddep = dependency('libmicrohttpd')
4 protobufdep = dependency('protobuf')
5
6 # Preprocess Qt as needed.
7 qt_files = qt5.preprocess(
8         moc_headers: ['aboutdialog.h'],
9         ui_files: ['aboutdialog.ui'],
10         dependencies: shared_qt5deps)
11
12 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']
13
14 # Qt objects.
15 srcs += qt_files
16 srcs += ['aboutdialog.cpp']
17
18 shared = static_library('shared', srcs, include_directories: top_include, dependencies: [shared_qt5deps, libmicrohttpddep, protobufdep])
19 shareddep = declare_dependency(
20    include_directories: top_include,
21    link_with: shared)
22
23 bin2h = executable('bin2h', 'bin2h.cpp')
24 bin2h_gen = generator(bin2h, \
25   output    : ['@PLAINNAME@.cpp'],
26   arguments : ['@INPUT@', '@PLAINNAME@', '@OUTPUT@'])