add mingw32 ncurses
this is a test with mingw32 crossbuilt ncurses release from the original ncurses dev
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user