Frank Zago to SDL
On 02/12/2011 01:44 PM, Sam Lantinga wrote: > BTW, you probably want to nuke the NDS renderer and just implement these three > functions instead: > int (*CreateWindowFramebuffer) (_THIS, SDL_Window * window, Uint32 * > format, void ** pixels, int *pitch); > int (*UpdateWindowFramebuffer) (_THIS, SDL_Window * window, int numrects, > SDL_Rect * rects); > void (*DestroyWindowFramebuffer) (_THIS, SDL_Window * window); Patch attached. The renderer for the DS is not used anymore, but I left the file in place if someone wants to finish it. I've also added a README.ds and fixed the spinlocks.
This commit is contained in:
parent
5095592ce5
commit
f9a5f416fb
5 changed files with 173 additions and 19 deletions
21
Makefile.ds
21
Makefile.ds
|
@ -1,13 +1,13 @@
|
|||
|
||||
#LibSDL 1.3 porting and enhancements by Darren Alton (lifning)
|
||||
#LibSDL 1.2.9 DS porting by Troy Davis(GPF)
|
||||
|
||||
ifeq ($(strip $(DEVKITPRO)),)
|
||||
$(error "Please set DEVKITPRO in your environment (available from http://www.devkitpro.org). export DEVKITPRO=<path to>devkitPro")
|
||||
endif
|
||||
ifeq ($(strip $(DEVKITARM)),)
|
||||
#LibSDL 1.3 porting and enhancements by Darren Alton (lifning)
|
||||
#LibSDL 1.2.9 DS porting by Troy Davis(GPF)
|
||||
|
||||
ifeq ($(strip $(DEVKITPRO)),)
|
||||
$(error "Please set DEVKITPRO in your environment (available from http://www.devkitpro.org). export DEVKITPRO=<path to>devkitPro")
|
||||
endif
|
||||
ifeq ($(strip $(DEVKITARM)),)
|
||||
DEVKITARM = $(DEVKITPRO)/devkitARM
|
||||
endif
|
||||
endif
|
||||
PATH := $(PATH):$(DEVKITARM)/bin
|
||||
|
||||
CC = arm-eabi-gcc
|
||||
|
@ -40,6 +40,7 @@ src/SDL_fatal.c \
|
|||
src/SDL_hints.c \
|
||||
src/SDL_log.c \
|
||||
src/atomic/SDL_atomic.c \
|
||||
src/atomic/SDL_spinlock.c \
|
||||
src/audio/SDL_audio.c \
|
||||
src/audio/SDL_audiocvt.c \
|
||||
src/audio/SDL_audiodev.c \
|
||||
|
@ -118,6 +119,10 @@ test/nds-test-progs/sprite2/sprite2.nds \
|
|||
|
||||
all: $(TARGET) install nds_test
|
||||
|
||||
# That file must be compiled in arm mode, not thumb mode.
|
||||
src/atomic/SDL_spinlock.o: src/atomic/SDL_spinlock.c
|
||||
$(CC) $(CFLAGS) -mno-thumb -o $@ -c $^
|
||||
|
||||
$(TARGET): copy_config \
|
||||
$(OBJS)
|
||||
$(AR) rc $(TARGET) $(OBJS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue