mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
wrapdb's meson.build file needs some tweaks so the library gets properly installed. Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
# Meson wrapdb's meson.build file doesn't handle installing the library, we patch that here
|
|
|
|
diff --git a/meson.build b/imgui-1.81-meson.build
|
|
index 3343dd4ad..804f84227 100644
|
|
--- a/meson.build
|
|
+++ b/imgui-1.81-meson.build
|
|
@@ -80,6 +80,38 @@ imgui = library('imgui',
|
|
sources,
|
|
dependencies: dependencies,
|
|
include_directories: include_dirs,
|
|
+ version: meson.project_version(),
|
|
+ install: true
|
|
)
|
|
|
|
+pkg_mod = import('pkgconfig')
|
|
+pkg_mod.generate(imgui,
|
|
+ description : 'Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies'
|
|
+)
|
|
+
|
|
+install_headers(
|
|
+ 'imconfig.h',
|
|
+ 'imgui.h',
|
|
+ 'imgui_internal.h',
|
|
+ 'imstb_rectpack.h',
|
|
+ 'imstb_textedit.h',
|
|
+ 'imstb_truetype.h',
|
|
+ 'backends/imgui_impl_dx9.h',
|
|
+ 'backends/imgui_impl_osx.h',
|
|
+ 'backends/imgui_impl_sdl.h',
|
|
+ 'backends/imgui_impl_dx10.h',
|
|
+ 'backends/imgui_impl_dx11.h',
|
|
+ 'backends/imgui_impl_dx12.h',
|
|
+ 'backends/imgui_impl_glfw.h',
|
|
+ 'backends/imgui_impl_glut.h',
|
|
+ 'backends/imgui_impl_wgpu.h',
|
|
+ 'backends/imgui_impl_metal.h',
|
|
+ 'backends/imgui_impl_win32.h',
|
|
+ 'backends/imgui_impl_vulkan.h',
|
|
+ 'backends/imgui_impl_opengl2.h',
|
|
+ 'backends/imgui_impl_opengl3.h',
|
|
+ 'backends/imgui_impl_allegro5.h',
|
|
+ 'backends/imgui_impl_marmalade.h',
|
|
+ subdir: 'imgui')
|
|
+
|
|
imgui_dep = declare_dependency(include_directories: include_dirs, link_with: imgui)
|