aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authornotaz2012-07-29 03:23:29 +0300
committernotaz2012-07-29 18:09:56 +0300
commit38c2028e228dcf17f3b4b0ac7e6984d1e1c6df79 (patch)
tree0586fc12ec0b0b1a7ca160ebbd3404c3fd1bfdd5 /configure
parent96751f36c7867567d4d8c612c78f235392d1f243 (diff)
downloadpcsx_rearmed-38c2028e228dcf17f3b4b0ac7e6984d1e1c6df79.tar.gz
pcsx_rearmed-38c2028e228dcf17f3b4b0ac7e6984d1e1c6df79.tar.bz2
pcsx_rearmed-38c2028e228dcf17f3b4b0ac7e6984d1e1c6df79.zip
frontend: initial libretro support
..and some refactoring
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 19 insertions, 6 deletions
diff --git a/configure b/configure
index 00511bd..6552ef5 100755
--- a/configure
+++ b/configure
@@ -24,9 +24,9 @@ check_define()
# setting options to "yes" or "no" will make that choice default,
# "" means "autodetect".
-platform_list="generic pandora maemo caanoo"
+platform_list="generic pandora maemo caanoo libretro"
platform="generic"
-sound_driver_list="oss alsa none"
+sound_driver_list="oss alsa libretro none"
sound_driver="alsa"
plugins="plugins/spunull/spunull.so \
plugins/dfxvideo/gpu_peops.so plugins/gpu_unai/gpu_unai.so"
@@ -74,6 +74,9 @@ set_platform()
drc_cache_base="yes"
optimize_arm926ej="yes"
;;
+ libretro)
+ sound_driver="libretro"
+ ;;
*)
echo "unsupported platform: $platform"
exit 1
@@ -118,7 +121,7 @@ if [ "$show_help" = "yes" ]; then
fi
case "$sound_driver" in
-oss|alsa|none)
+oss|alsa|libretro|none)
;;
*)
echo "unsupported sound driver: $sound_driver"
@@ -201,17 +204,24 @@ if [ "$ram_fixed" = "yes" ]; then
CFLAGS="$CFLAGS -DRAM_FIXED"
fi
-if [ "$platform" = "generic" ]; then
+case "$platform" in
+generic)
generic_cflags=`sdl-config --cflags`
generic_ldlibs=`sdl-config --libs`
CFLAGS="$CFLAGS $generic_cflags"
LDFLAGS="$LDFLAGS $generic_ldlibs"
-elif [ "$platform" = "maemo" ]; then
+ ;;
+maemo)
maemo_cflags=`pkg-config --cflags hildon-1`
maemo_ldlibs=`pkg-config --libs hildon-1`
CFLAGS="$CFLAGS -DMAEMO -DMAEMO_CHANGES $maemo_cflags"
LDFLAGS="$LDFLAGS $maemo_ldlibs"
-fi
+ ;;
+libretro)
+ CFLAGS="$CFLAGS -fPIC"
+ LDFLAGS="$LDFLAGS -shared"
+ ;;
+esac
# check for tslib (only headers needed)
if [ "x$have_tslib" = "x" ]; then
@@ -277,6 +287,9 @@ echo "LDLIBS += $LDLIBS" >> $config_mak
echo "PLUGIN_CFLAGS += $PLUGIN_CFLAGS" >> $config_mak
echo >> $config_mak
+if [ "$platform" = "libretro" ]; then
+ echo "TARGET = libretro.so" >> $config_mak
+fi
echo "ARCH = $ARCH" >> $config_mak
echo "PLATFORM = $platform" >> $config_mak
case "$sound_driver" in