unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob d5dff193fa1cef2565970f75e959de3c1591b49e 1411 bytes (raw)
name: gnu/packages/patches/mangohud-imgui.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 
This patch removes trying to build the bundled dear-imgui library in favor of
the input version. The static option is set in the dependency to mirror the
upstream build (though dear-imgui is built with all available backends
already).

diff --git a/meson.build b/meson.build
index e5cf395..7f8a8e1 100644
--- a/meson.build
+++ b/meson.build
@@ -220,39 +220,14 @@ util_files = files(
   'src/mesa/util/os_time.c',
 )
 
-imgui_options = [
-  'default_library=static',
-  # use 'auto_features=disabled' once available: https://github.com/mesonbuild/meson/issues/5320
-  'dx9=disabled',
-  'dx10=disabled',
-  'dx11=disabled',
-  'dx12=disabled',
-  'metal=disabled',
-  'opengl=disabled',
-  'vulkan=disabled',
-  'glfw=disabled',
-  'sdl2=disabled',
-  'osx=disabled',
-  'win=disabled',
-  'marmalade=disabled',
-  'allegro5=disabled',
-]
-
 sizeof_ptr = cc.sizeof('void*')
 if sizeof_ptr == 8
   pre_args += '-DMANGOHUD_ARCH="64bit"'
-  if get_option('mangoapp')
-    imgui_options += [
-      'opengl=enabled',
-      'glfw=enabled',
-    ]
-  endif
 elif sizeof_ptr == 4
   pre_args += '-DMANGOHUD_ARCH="32bit"'
 endif
 
-dearimgui_sp = subproject('imgui', default_options: imgui_options)
-dearimgui_dep = dearimgui_sp.get_variable('imgui_dep')
+dearimgui_dep = dependency('imgui', static: true)
 
 spdlog_dep = cpp.find_library('spdlog', required: get_option('use_system_spdlog'))
 if not spdlog_dep.found()

debug log:

solving d5dff193fa ...
found d5dff193fa in https://yhetil.org/guix-patches/g3D6Vsvmf0UqGPuWRM5CZLHmYOgQBjfgw2kti9R53v_vrmQ8SlOUsLFY_bFxQYwkbkGm8QRoPXrnfZFTyUrOPrLeXJCjH3acpnB4C_lnMVc=@protonmail.com/

applying [1/1] https://yhetil.org/guix-patches/g3D6Vsvmf0UqGPuWRM5CZLHmYOgQBjfgw2kti9R53v_vrmQ8SlOUsLFY_bFxQYwkbkGm8QRoPXrnfZFTyUrOPrLeXJCjH3acpnB4C_lnMVc=@protonmail.com/
diff --git a/gnu/packages/patches/mangohud-imgui.patch b/gnu/packages/patches/mangohud-imgui.patch
new file mode 100644
index 0000000000..d5dff193fa

1:19: trailing whitespace.
 
1:50: trailing whitespace.
 
1:54: trailing whitespace.
 
Checking patch gnu/packages/patches/mangohud-imgui.patch...
Applied patch gnu/packages/patches/mangohud-imgui.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 d5dff193fa1cef2565970f75e959de3c1591b49e	gnu/packages/patches/mangohud-imgui.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).