From 42896acc503364e0db26464f7a6db6ee8908b121 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 25 Jul 2020 18:56:05 +0100 Subject: [PATCH] Pass the extra wine include flags when building dgl --- source/modules/dgl/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/modules/dgl/Makefile b/source/modules/dgl/Makefile index d59c7db31..7523c8837 100644 --- a/source/modules/dgl/Makefile +++ b/source/modules/dgl/Makefile @@ -12,6 +12,12 @@ include ../Makefile.mk BUILD_CXX_FLAGS += $(DGL_FLAGS) -Isrc +ifneq ($(MACOS),true) +WINE_FLAGS = -I/usr/include/wine/wine/windows +WINE_FLAGS += -I/usr/include/wine-development/windows +WINE_FLAGS += -I/opt/wine-devel/include/wine/windows +endif + # --------------------------------------------------------------------------------------------------------------------- OBJS = \ @@ -75,7 +81,7 @@ $(OBJDIR)/%.cpp.o: src/%.cpp $(OBJDIR)/%.cpp-wine.o: src/%.cpp -@mkdir -p $(OBJDIR) @echo "Compiling $< (Wine)" - @$(WINECC) $< $(BUILD_CXX_FLAGS) -c -o $@ + @$(WINECC) $< $(BUILD_CXX_FLAGS) $(WINE_FLAGS) -c -o $@ $(OBJDIR)/Window.mm.o: src/Window.cpp -@mkdir -p $(OBJDIR)