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