add mingw32 ncurses

this is a test with mingw32 crossbuilt ncurses release from the original ncurses dev
This commit is contained in:
ca333
2019-02-19 19:54:03 +01:00
committed by GitHub
parent 1be8baf63b
commit 4a4e2f0bdd

View File

@@ -9,6 +9,7 @@ DEBUGFLAGS = -O0 -D _DEBUG
RELEASEFLAGS = -O2 -D NDEBUG -combine -fwhole-program
$(info $(OS))
OS := $(shell uname -s)
DIR := ${CURDIR}
$(info $(OS))
TARGET = librogue.so
TARGET_DARWIN = librogue.dylib
@@ -25,6 +26,9 @@ ifeq ($(OS),Darwin)
cp $(TARGET_DARWIN) ../libcc.dylib
else ifeq ($(HOST),x86_64-w64-mingw32)
$(info WINDOWS)
wget -O ../../depends/x86_64-w64-mingw32/mingw64.zip https://invisible-island.net/datafiles/release/mingw32.zip
cd ../../depends/x86_64-w64-mingw32 && unzip mingw32.zip
cd $(DIR)
$(CC_WIN) $(CFLAGS_WIN) $(DEBUGFLAGS) -o $(TARGET_WIN) -c $(SOURCES) -lncurses
cp $(TARGET_WIN) ../libcc.dll
#else ifeq ($(WIN_HOST),True) - todo: pass ENV var from build.sh if WIN host