~ruther/guix-local

0d5746ee7ca337dcc82553ca6dd794b04bb6563d — Maxim Cournoyer 3 years ago e8d163b
gnu: imgui: Use unsigned int vertex indexes.

* gnu/packages/toolkits.scm (imgui)
[arguments]: Add the "-DImDrawIdx=unsigned int" compiler option to the build
phase.
1 files changed, 6 insertions(+), 1 deletions(-)

M gnu/packages/toolkits.scm
M gnu/packages/toolkits.scm => gnu/packages/toolkits.scm +6 -1
@@ 66,7 66,12 @@
          (replace 'build
            (lambda* (#:key inputs #:allow-other-keys)
              ;; Build main library.
              (apply invoke #$(cc-for-target) "-I" (getcwd)
              (apply invoke #$(cc-for-target)
                     ;; This option is necessary at least for OpenBoardView,
                     ;; otherwise it would fail with the "Too many vertices in
                     ;; ImDrawList using 16-bit indices".
                     "-DImDrawIdx=unsigned int"
                     "-I" (getcwd)
                     "-I" (search-input-directory inputs "include/freetype2")
                     "-g" "-O2" "-fPIC" "-shared"
                     "-lGL" "-lSDL2" "-lglfw"