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
|
RELEASEFLAGS = -O2 -D NDEBUG -combine -fwhole-program
|
||||||
$(info $(OS))
|
$(info $(OS))
|
||||||
OS := $(shell uname -s)
|
OS := $(shell uname -s)
|
||||||
|
DIR := ${CURDIR}
|
||||||
$(info $(OS))
|
$(info $(OS))
|
||||||
TARGET = librogue.so
|
TARGET = librogue.so
|
||||||
TARGET_DARWIN = librogue.dylib
|
TARGET_DARWIN = librogue.dylib
|
||||||
@@ -25,6 +26,9 @@ ifeq ($(OS),Darwin)
|
|||||||
cp $(TARGET_DARWIN) ../libcc.dylib
|
cp $(TARGET_DARWIN) ../libcc.dylib
|
||||||
else ifeq ($(HOST),x86_64-w64-mingw32)
|
else ifeq ($(HOST),x86_64-w64-mingw32)
|
||||||
$(info WINDOWS)
|
$(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
|
$(CC_WIN) $(CFLAGS_WIN) $(DEBUGFLAGS) -o $(TARGET_WIN) -c $(SOURCES) -lncurses
|
||||||
cp $(TARGET_WIN) ../libcc.dll
|
cp $(TARGET_WIN) ../libcc.dll
|
||||||
#else ifeq ($(WIN_HOST),True) - todo: pass ENV var from build.sh if WIN host
|
#else ifeq ($(WIN_HOST),True) - todo: pass ENV var from build.sh if WIN host
|
||||||
|
|||||||
Reference in New Issue
Block a user