Creating libpspgud library

This commit is contained in:
Francisco Javier Trujillo Mata
2025-07-08 16:41:30 +02:00
parent 58c2b2a4a5
commit 541277ebcc
2 changed files with 11 additions and 1 deletions

View File

@@ -12,10 +12,11 @@ CFLAGS = @PSPSDK_CFLAGS@
libpspguincludedir = @PSPSDK_INCLUDEDIR@
libpspguinclude_HEADERS = pspgu.h
lib_LIBRARIES = libpspgu.a
lib_LIBRARIES = libpspgu.a libpspgud.a
noinst_HEADERS = guInternal.h
# Regular library (no debug assertions)
libpspgu_a_SOURCES = \
guInternal.c \
sceGuAlphaFunc.c \
@@ -112,3 +113,7 @@ libpspgu_a_SOURCES = \
sceGuViewport.c \
vram.c
# Debug library (with debug assertions)
libpspgud_a_SOURCES = $(libpspgu_a_SOURCES)
libpspgud_a_CFLAGS = $(CFLAGS) -DGU_DEBUG

View File

@@ -11,6 +11,11 @@
#include "pspgu.h"
#ifdef GU_DEBUG
#include <assert.h>
#include <stdio.h>
#endif
typedef void (*GuCallback)(int);
typedef struct