travis: add mingw build targets

This commit is contained in:
Brad Parker 2017-10-24 00:37:31 -04:00
parent 3f27e5d7bb
commit 20850a7f92
3 changed files with 20 additions and 3 deletions

View File

@ -3,6 +3,22 @@ language: generic
matrix: matrix:
include: include:
- compiler: mingw-x86
addons:
apt:
packages:
- g++-mingw-w64-i686
- mingw-w64-x86-64-dev
script:
- CROSS_COMPILE=i686-w64-mingw32- ./configure --disable-d3d9 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- compiler: mingw-x64
addons:
apt:
packages:
- g++-mingw-w64-x86-64
- mingw-w64-x86-64-dev
script:
- CROSS_COMPILE=x86_64-w64-mingw32- ./configure --disable-d3d9 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- compiler: gcc - compiler: gcc
- compiler: clang - compiler: clang
addons: addons:

View File

@ -1337,6 +1337,7 @@ ifeq ($(HAVE_ZLIB), 1)
DEFINES += -DHAVE_ZLIB DEFINES += -DHAVE_ZLIB
HAVE_COMPRESSION = 1 HAVE_COMPRESSION = 1
ifeq ($(HAVE_BUILTINZLIB), 1) ifeq ($(HAVE_BUILTINZLIB), 1)
INCLUDE_DIRS += -I$(LIBRETRO_COMM_DIR)/include/compat
DEFINES += -DWANT_ZLIB DEFINES += -DWANT_ZLIB
else else
LIBS += -lz LIBS += -lz

View File

@ -46,9 +46,9 @@
#include <libchdr/cdrom.h> #include <libchdr/cdrom.h>
#include <libchdr/flac.h> #include <libchdr/flac.h>
#include <libchdr/huffman.h> #include <libchdr/huffman.h>
#include "zlib.h" #include <zlib.h>
#include "LzmaEnc.h" #include <LzmaEnc.h>
#include "LzmaDec.h" #include <LzmaDec.h>
#include <retro_inline.h> #include <retro_inline.h>
#define TRUE 1 #define TRUE 1