-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Hi,
I'm finally trying to get imgui_internal.h working for my Odin bindings. When running dear_bindings however, I get a malformed include. Here is a repro .sh:
#!/bin/bash
rm -rf dear_bindings imgui temp
git clone https://github.com/dearimgui/dear_bindings.git dear_bindings
git checkout -C dear_bindings 81c906b # latest commit at time of writing
git clone https://github.com/ocornut/imgui.git imgui
git checkout -C imgui v1.91.8-docking # latest tag at time of writing. But bug doesn't seem to depend on the imgui commit
mkdir -p temp
python "dear_bindings\dear_bindings.py" -o "temp\c_imgui" --include "imgui\imgui.h" "imgui\imgui_internal.h"
# See that `temp/c_imgui.cpp:20` is now `#include ".h"`
(ignore the mixed forwards and back slashes. This is apparently what running python through git bash wants)
I suspect that this has something to do with the folder layout of my bindings, which is a bit different to the example given in the README.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels