Compile in HAVE_MMAP for Win32, and also enable it for iOS/OSX

This commit is contained in:
twinaphex 2015-11-16 10:04:44 +01:00
parent 08ed23ae0c
commit 265898dbd4
4 changed files with 19 additions and 14 deletions

View File

@ -573,6 +573,11 @@ else
OBJ += gfx/video_texture_c.o
endif
ifneq ($(findstring Win32,$(OS)),)
DEFINES += -DHAVE_MMAP
OBJ += libretro-common/memmap/memmap.o
endif
ifeq ($(HAVE_GL_CONTEXT), 1)
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
OBJ += gfx/drivers/gl.o \

View File

@ -415,7 +415,7 @@
"-DHAVE_ZARCH",
"-DHAVE_HID",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-DHAVE_LIBRETRODB",
);
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES;
@ -477,7 +477,7 @@
"-DHAVE_ZARCH",
"-DHAVE_HID",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-DHAVE_LIBRETRODB",
);
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES;
@ -540,7 +540,7 @@
"-DHAVE_ZARCH",
"-DHAVE_HID",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-DHAVE_LIBRETRODB",
);
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES;
@ -601,7 +601,7 @@
"-DHAVE_ZARCH",
"-DHAVE_HID",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-DHAVE_LIBRETRODB",
);
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES;

View File

@ -313,7 +313,7 @@
"-DHAVE_ZARCH",
"-DHAVE_HID",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-DHAVE_FILTERS_BUILTIN",
);
OTHER_LDFLAGS = "-lz";
@ -382,7 +382,7 @@
"-DHAVE_ZARCH",
"-DHAVE_HID",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-DHAVE_FILTERS_BUILTIN",
);
OTHER_LDFLAGS = "-lz";

View File

@ -550,7 +550,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
@ -625,7 +625,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
@ -670,7 +670,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
@ -813,7 +813,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
);
"OTHER_CFLAGS[arch=*]" = (
@ -855,7 +855,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
);
PRODUCT_NAME = "RetroArch copy";
@ -1055,7 +1055,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
@ -1129,7 +1129,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_BTSTACK",
@ -1174,7 +1174,7 @@
"-DHAVE_MATERIALUI",
"-DHAVE_ZARCH",
"-DHAVE_XMB",
"-DHAVE_MEMMAP",
"-DHAVE_MMAP",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_BTSTACK",