Make compile libretro for PS2

This commit is contained in:
Francisco Javier Trujillo Mata 2018-09-18 00:00:20 +02:00
parent ad9c4345b3
commit baacd5e1b6
4 changed files with 43 additions and 0 deletions

View File

@ -254,6 +254,29 @@ else ifeq ($(platform), psp1)
use_drz80 = 0
use_cz80 = 1
# PS2
else ifeq ($(platform), ps2)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = ee-gcc$(EXE_EXT)
AR = ee-ar$(EXE_EXT)
CFLAGS += -G0 -DPS2 -DUTYPES_DEFINED -fsingle-precision-constant
CFLAGS += -I$(PS2SDK)/ports/include -I$(PS2DEV)/gsKit/include -I$(PS2SDK)/ee/include -I$(PS2SDK)/common/include -Iplatform/ps2
STATIC_LINKING = 1
NO_MMAP = 1
DONT_COMPILE_IN_ZLIB = 1
asm_memory = 0
asm_render = 1
asm_ym2612 = 0
asm_misc = 0
asm_cdpico = 0
asm_cdmemory = 0
asm_mix = 0
use_cyclone = 0
use_fame = 1
use_drz80 = 0
use_cz80 = 1
# CTR (3DS)
else ifeq ($(platform), ctr)
TARGET := $(TARGET_NAME)_libretro_$(platform).a

View File

@ -1,9 +1,11 @@
#ifndef UTYPES_DEFINED
typedef unsigned char u8;
typedef signed char s8;
typedef unsigned short u16;
typedef signed short s16;
typedef unsigned int u32;
typedef signed int s32;
#endif
#define DRC_TCACHE_SIZE (2*1024*1024)

View File

@ -2,9 +2,11 @@
#include "pico_port.h"
#ifndef UTYPES_DEFINED
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
#endif
typedef uintptr_t uptr; // unsigned pointer-sized int
#define M68K_MEM_SHIFT 16

16
platform/ps2/stdint.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef STDINT_H
#define STDINT_H
typedef unsigned long uintptr_t;
typedef signed long intptr_t;
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef signed long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long uint64_t;
#endif //STDINT_H