DISTRHO / DPF-Widgets

Official and Community made reusable GUI widgets for DPF
Other
28 stars 6 forks source link

DearImGuiKnobs header problem with Makefile #7

Closed noisecode3 closed 6 months ago

noisecode3 commented 1 year ago

I had to change the includes to use a leading ../ #include "../DearImGui/imgui.h" There can also be just symbolic links. With the Makefile build I can't change

BUILD_C_FLAGS
BUILD_CXX_FLAGS

before include ../../dpf/Makefile.plugins.mk cus it will overwrite it.

When I set #define DISTRHO_UI_CUSTOM_INCLUDE_PATH "../../dpf-widgets/opengl/DearImGui.hpp" it works with normal Makefile and I have to make sure it builds dpf with $(MAKE) -C dpf/dgl opengl or $(MAKE) -C dpf/dgl opengl3 and for lv2 I have to specify lv2_sep

falkTX commented 1 year ago

you can add flags after including the Makefile.plugins.mk to specify extra paths to include. for example https://github.com/DISTRHO/OneKnob-Series/blob/main/plugins/AB-InputSelector/Makefile#L25

Then the custom path macros won't need "../" anymore

falkTX commented 6 months ago

Forgot to close this ticket, and anyway since there was no more feedback I assume the issue has been resolved