forked from andoma/movian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ps3
executable file
·98 lines (83 loc) · 2.44 KB
/
configure.ps3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash
#
# HTS configure script for PS3 with PSL1GHT toolchain
#
# Copyright (c) 2011 Andreas Öman
#
# Based on FFmpeg's configure script:
#
# Copyright (c) 2000-2002 Fabrice Bellard
# Copyright (c) 2005-2008 Diego Biurrun
# Copyright (c) 2005-2008 Mans Rullgard
#
OS="ps3"
DEFAULT_UI="glw"
CONFIGURE_POSTFIX="ps3"
source support/configure.inc
TOOLCHAIN="${PS3DEV}/host/ppu/bin/ppu-"
CC=${TOOLCHAIN}gcc
LIBAV_CFLAGS="-mminimal-toc -I${PSL1GHT}/target/include -B${PSL1GHT}/target/lib -B${PS3DEV}/host/ppu/lib -I${PS3DEV}/host/ppu/include -include ${TOPDIR}/support/nostrictansi.h"
LIBAV_ARCH_FLAGS="--cross-prefix=${PS3DEV}/host/ppu/bin/ppu- --enable-cross-compile --arch=powerpc64 --cpu=cell --target-os=none --malloc-prefix=my --disable-shared --enable-static"
show_help(){
common_help
echo " --logtarget=HOST:PORT Log to HOST:PORT via UDP [disabled]"
exit 1
}
for opt do
optval="${opt#*=}"
case "$opt" in
--help) show_help
;;
--logtarget=*) DEFAULT_LOGTARGET="$optval"
;;
*)
common_opt $opt $optval
esac
done
setup_env "$@"
enable sqlite_internal
enable libfreetype
enable spidermonkey
enable trex
enable emu_thread_specifics
enable glw_frontend_ps3
enable glw_backend_rsx
enable glw
enable polarssl
enable librtmp
enable httpserver
enable dvd
enable ps3_vdec
enable sqlite_vfs
enable sqlite_locking
enable tlsf
mkdir -p ${BUILDDIR}/libav
${PS3DEV}/host/ppu/bin/ppu-gcc -c -o ${BUILDDIR}/libav/mallocstub.o ${TOPDIR}/support/mallocstub.c
LIBAV_LDFLAGS="${BUILDDIR}/libav/mallocstub.o"
libav_setup
rtmpdump_setup
cat >> ${CONFIG_MAK} <<EOF
CC=${CC}
STRIP=${TOOLCHAIN}strip
OBJDUMP=${TOOLCHAIN}objdump
OBJCOPY=${TOOLCHAIN}objcopy
CFLAGS_cfg += -mminimal-toc -DWORDS_BIGENDIAN
CFLAGS_cfg += -DPATH_MAX=512 -DPS3
CFLAGS_cfg += -I${PSL1GHT}/target/include
CFLAGS_cfg += -I${PS3DEV}/host/ppu/include
CFLAGS_cfg += -I${PS3DEV}/host/ppu/include/freetype2
BUNDLES+=src/ui/glw/rsx
SQLITE_PLATFORM_DEFINES += -DSQLITE_OS_OTHER=1
EOF
#
#
#
cat >> ${CONFIG_MAK} <<EOF
LDFLAGS_cfg += -lvdec -lrtc
LDFLAGS_cfg += -B${PSL1GHT}/target/lib -B${PS3DEV}/host/ppu/lib
LDFLAGS_cfg += -lgcm_sys -laudio -lreality -lsysutil -lio -lnet -lnetctl -lsysmodule
LDFLAGS_cfg += -lfreetype
LDFLAGS_cfg += ${PS3DEV}/host/ppu/ppu/lib/lv2-psl1ght.o -lpsl1ght -llv2
LDFLAGS_EBOOT += -B${PSL1GHT}/target/lib -B${PS3DEV}/host/ppu/lib -lgcm_sys -laudio -lreality -lsysutil -lio -lnet -lnetctl -lsysmodule ${PS3DEV}/host/ppu/ppu/lib/lv2-psl1ght.o -lpsl1ght -llv2
EOF
finalize