mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(Vita) Add baked-in zlib
(Emscripten )Add platform driver
This commit is contained in:
parent
f46ccf9bda
commit
2cf255328d
@ -209,12 +209,14 @@ else ifeq ($(platform), vita)
|
|||||||
EXT_TARGET := $(TARGET_NAME)_$(platform).velf
|
EXT_TARGET := $(TARGET_NAME)_$(platform).velf
|
||||||
EXT_INTER_TARGET := $(TARGET_NAME)_$(platform).elf
|
EXT_INTER_TARGET := $(TARGET_NAME)_$(platform).elf
|
||||||
MACHDEP := -DVITA
|
MACHDEP := -DVITA
|
||||||
|
WANT_ZLIB := 1
|
||||||
INCLUDE += -I$(VITASDK)/arm-vita-eabi/include/freetype2 -Ideps/libvita2d/include
|
INCLUDE += -I$(VITASDK)/arm-vita-eabi/include/freetype2 -Ideps/libvita2d/include
|
||||||
|
INCLUDE += -Ideps/zlib
|
||||||
PLATCFLAGS := -O3 -mfloat-abi=hard -ffast-math -fsingle-precision-constant
|
PLATCFLAGS := -O3 -mfloat-abi=hard -ffast-math -fsingle-precision-constant
|
||||||
LIBS += -lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
|
LIBS += -lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
|
||||||
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub \
|
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub \
|
||||||
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \
|
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \
|
||||||
-lfreetype -lz -lm -lc -lpng -ljpeg
|
-lfreetype -lm -lc -lpng -ljpeg
|
||||||
|
|
||||||
PLATEXTRA := deps/libvita2d/shader/compiled/clear_v_gxp.o \
|
PLATEXTRA := deps/libvita2d/shader/compiled/clear_v_gxp.o \
|
||||||
deps/libvita2d/shader/compiled/clear_f_gxp.o \
|
deps/libvita2d/shader/compiled/clear_f_gxp.o \
|
||||||
|
@ -75,3 +75,28 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frontend_ctx_driver_t frontend_ctx_emscripten = {
|
||||||
|
NULL, /* environment_get */
|
||||||
|
NULL, /* init */
|
||||||
|
NULL, /* deinit */
|
||||||
|
NULL, /* exitspawn */
|
||||||
|
NULL, /* process_args */
|
||||||
|
NULL, /* exec */
|
||||||
|
NULL, /* set_fork */
|
||||||
|
NULL, /* shutdown */
|
||||||
|
NULL, /* get_name */
|
||||||
|
NULL, /* get_os */
|
||||||
|
NULL, /* get_rating */
|
||||||
|
NULL, /* load_content */
|
||||||
|
NULL, /* get_architecture */
|
||||||
|
NULL, /* get_powerstate */
|
||||||
|
NULL, /* parse_drive_list */
|
||||||
|
NULL, /* get_mem_total */
|
||||||
|
NULL, /* get_mem_used */
|
||||||
|
NULL, /* install_sighandlers */
|
||||||
|
NULL, /* get_signal_handler_state */
|
||||||
|
NULL, /* set_signal_handler_state */
|
||||||
|
NULL, /* destroy_signal_handler_state */
|
||||||
|
"emscripten"
|
||||||
|
};
|
||||||
|
@ -25,7 +25,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static frontend_ctx_driver_t *frontend_ctx_drivers[] = {
|
static frontend_ctx_driver_t *frontend_ctx_drivers[] = {
|
||||||
#if defined(__CELLOS_LV2__)
|
#if defined(EMSCRIPTEN)
|
||||||
|
&frontend_ctx_emscripten,
|
||||||
|
#elif defined(__CELLOS_LV2__)
|
||||||
&frontend_ctx_ps3,
|
&frontend_ctx_ps3,
|
||||||
#endif
|
#endif
|
||||||
#if defined(_XBOX)
|
#if defined(_XBOX)
|
||||||
|
@ -103,6 +103,7 @@ extern frontend_ctx_driver_t frontend_ctx_psp;
|
|||||||
extern frontend_ctx_driver_t frontend_ctx_ctr;
|
extern frontend_ctx_driver_t frontend_ctx_ctr;
|
||||||
extern frontend_ctx_driver_t frontend_ctx_win32;
|
extern frontend_ctx_driver_t frontend_ctx_win32;
|
||||||
extern frontend_ctx_driver_t frontend_ctx_xenon;
|
extern frontend_ctx_driver_t frontend_ctx_xenon;
|
||||||
|
extern frontend_ctx_driver_t frontend_ctx_emscripten;
|
||||||
extern frontend_ctx_driver_t frontend_ctx_null;
|
extern frontend_ctx_driver_t frontend_ctx_null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user