1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-18 14:42:30 +00:00

Build Python in Windows.

This commit is contained in:
Themaister 2011-06-09 13:56:29 +02:00
parent 631c3ca393
commit 576894e0e8
3 changed files with 15 additions and 0 deletions

@ -183,6 +183,7 @@ clean:
rm -f audio/*.o rm -f audio/*.o
rm -f conf/*.o rm -f conf/*.o
rm -f gfx/*.o rm -f gfx/*.o
rm -f gfx/py_state/*.o
rm -f record/*.o rm -f record/*.o
rm -f input/*.o rm -f input/*.o
rm -f tools/*.o rm -f tools/*.o

@ -17,6 +17,7 @@ HAVE_NETPLAY = 1
HAVE_FBO = 1 HAVE_FBO = 1
HAVE_CG = 0 HAVE_CG = 0
HAVE_IMLIB = 0 HAVE_IMLIB = 0
HAVE_PYTHON = 0
libsnes ?= -lsnes libsnes ?= -lsnes
LIBS = -lm LIBS = -lm
@ -98,6 +99,11 @@ ifeq ($(HAVE_IMLIB), 1)
DEFINES += -DHAVE_IMLIB DEFINES += -DHAVE_IMLIB
endif endif
ifeq ($(HAVE_PYTHON), 1)
LIBS += -lpython32
DEFINES += -DHAVE_PYTHON -Ipython
OBJ += gfx/py_state/py_state.o
endif
ifneq ($(V),1) ifneq ($(V),1)
Q := @ Q := @
@ -125,6 +131,7 @@ clean:
rm -f audio/*.o rm -f audio/*.o
rm -f conf/*.o rm -f conf/*.o
rm -f gfx/*.o rm -f gfx/*.o
rm -f gfx/py_state/*.o
rm -f record/*.o rm -f record/*.o
rm -f hqflt/*.o rm -f hqflt/*.o
rm -f input/*.o rm -f input/*.o

@ -17,6 +17,7 @@ HAVE_NETPLAY = 1
HAVE_FBO = 1 HAVE_FBO = 1
HAVE_CG = 0 HAVE_CG = 0
HAVE_IMLIB = 0 HAVE_IMLIB = 0
HAVE_PYTHON = 0
libsnes ?= -lsnes libsnes ?= -lsnes
LIBS = -lm LIBS = -lm
@ -98,6 +99,12 @@ ifeq ($(HAVE_IMLIB), 1)
DEFINES += -DHAVE_IMLIB DEFINES += -DHAVE_IMLIB
endif endif
ifeq ($(HAVE_PYTHON), 1)
LIBS += -lpython32
DEFINES += -DHAVE_PYTHON -Ipython
OBJ += gfx/py_state/py_state.o
endif
ifneq ($(V),1) ifneq ($(V),1)
Q := @ Q := @
endif endif