]> git.sesse.net Git - nageru/blobdiff - shared/meson.build
Move most Nageru embedded shaders to the read_file() system.
[nageru] / shared / meson.build
index 09bf99027fa63a6c31aecd0a52e739289e8097ed..acb2c9a251f46e7e77db3eb3455e85e7ca1d914b 100644 (file)
@@ -1,7 +1,14 @@
+qt5 = import('qt5')
+qt5deps = dependency('qt5', modules: ['OpenGL'])
+libmicrohttpddep = dependency('libmicrohttpd')
 
-srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp']
-shared = static_library('shared', srcs, include_directories: top_include)
+srcs = ['memcpy_interleaved.cpp', 'metacube2.cpp', 'ffmpeg_raii.cpp', 'mux.cpp', 'metrics.cpp', 'context.cpp', 'httpd.cpp', 'disk_space_estimator.cpp', 'read_file.cpp']
+shared = static_library('shared', srcs, include_directories: top_include, dependencies: [qt5deps, libmicrohttpddep])
 shareddep = declare_dependency(
    include_directories: top_include,
-   link_with: shared,
-   sources: srcs)
+   link_with: shared)
+
+bin2h = executable('bin2h', 'bin2h.cpp')
+bin2h_gen = generator(bin2h, \
+  output    : ['@PLAINNAME@.cpp'],
+  arguments : ['@INPUT@', '@PLAINNAME@', '@OUTPUT@'])