Skip to content

Commit 541277e

Browse files
committed
Creating libpspgud library
1 parent 58c2b2a commit 541277e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/gu/Makefile.am

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ CFLAGS = @PSPSDK_CFLAGS@
1212
libpspguincludedir = @PSPSDK_INCLUDEDIR@
1313
libpspguinclude_HEADERS = pspgu.h
1414

15-
lib_LIBRARIES = libpspgu.a
15+
lib_LIBRARIES = libpspgu.a libpspgud.a
1616

1717
noinst_HEADERS = guInternal.h
1818

19+
# Regular library (no debug assertions)
1920
libpspgu_a_SOURCES = \
2021
guInternal.c \
2122
sceGuAlphaFunc.c \
@@ -112,3 +113,7 @@ libpspgu_a_SOURCES = \
112113
sceGuViewport.c \
113114
vram.c
114115

116+
# Debug library (with debug assertions)
117+
libpspgud_a_SOURCES = $(libpspgu_a_SOURCES)
118+
libpspgud_a_CFLAGS = $(CFLAGS) -DGU_DEBUG
119+

src/gu/guInternal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
#include "pspgu.h"
1313

14+
#ifdef GU_DEBUG
15+
#include <assert.h>
16+
#include <stdio.h>
17+
#endif
18+
1419
typedef void (*GuCallback)(int);
1520

1621
typedef struct

0 commit comments

Comments
 (0)