Add libretro VFS and use VFS for windows target
[pcsx_rearmed.git] / Makefile.libretro
index bdc7b6e..1ecd359 100644 (file)
@@ -3,6 +3,7 @@
 DEBUG ?= 0
 WANT_ZLIB ?= 1
 HAVE_CHD ?= 1
+USE_LIBRETRO_VFS ?= 0
 
 # Dynarec options: lightrec, ari64
 DYNAREC ?= lightrec
@@ -94,9 +95,6 @@ else ifeq ($(platform), osx)
        TARGET := $(TARGET_NAME)_libretro.dylib
        fpic := -fPIC
        HAVE_NEON = 0
-ifeq ($(DYNAREC),0)
-       TARGET := $(TARGET_NAME)_interpreter_libretro.dylib
-endif
    MACSOSVER = `sw_vers -productVersion | cut -d. -f 1`
    OSXVER = `sw_vers -productVersion | cut -d. -f 2`
    OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
@@ -123,9 +121,6 @@ else ifneq (,$(findstring ios,$(platform)))
 ifeq ($(DYNAREC),lightrec)
        # Override
        DYNAREC := 0
-endif
-ifeq ($(DYNAREC),0)
-       TARGET := $(TARGET_NAME)_interpreter_libretro_ios.dylib
 endif
        fpic := -fPIC
 
@@ -164,9 +159,6 @@ else ifeq ($(platform), tvos-arm64)
 ifeq ($(DYNAREC),lightrec)
        # Override
        DYNAREC := 0
-endif
-ifeq ($(DYNAREC),0)
-       TARGET := $(TARGET_NAME)_interpreter_libretro_tvos.dylib
 endif
        fpic := -fPIC
 
@@ -261,6 +253,7 @@ else ifeq ($(platform), ctr)
        CFLAGS += -fomit-frame-pointer -ffast-math -funroll-loops
        CFLAGS += -Ifrontend/3ds -I$(CTRULIB)/include
        CFLAGS += -Werror=implicit-function-declaration
+       CFLAGS += -DHAVE_UNISTD_H
 
        OBJS += frontend/3ds/utils.o
 
@@ -459,6 +452,7 @@ else
        LIBPTHREAD :=
        LIBDL :=
        LIBM :=
+       USE_LIBRETRO_VFS = 1
 endif
 
 CFLAGS += $(fpic)