source: titan/plugins/makei386.sh @ 42624

Last change on this file since 42624 was 42624, checked in by obi, 3 years ago

update i386 building

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1#*****************************************************#
2#* this file is part of the tiTan / tiTanNIT Project *#
3#* and allowed only for use with this.               *#
4#*                                                   *#
5#* copyright by NIT                                  *#
6#*****************************************************#
7
8STM=$1
9MEDIAFW=$2
10GROUP=$3
11BOX=$4
12DISTRO=$5
13
14if [ -z "$STM" ]; then
15        echo "error: use makesh4.sh <stm23|stm23|stm24> <1|2>"
16        exit 1
17fi
18
19#if [ $GROUP == "dev" ]; then
20#       devflag="-finstrument-functions -rdynamic -DBETA"
21#else
22#       devflag=""
23#fi
24
25cd "$HOME"/flashimg/source.titan/plugins
26ln -s "$HOME"/flashimg/source.titan/titan "$HOME"/flashimg/source.titan/plugins/titan
27
28#if [ $MEDIAFW = 1 ]; then
29#       eplayer=EPLAYER3
30#       eplayerinclude="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libeplayer3/include
31#       eplayerlib=eplayer3
32#else
33#       eplayer=EPLAYER4
34#       eplayerinclude="$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/gstreamer-0.10
35#                        -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/glib-2.0
36#                        -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/libxml2
37#                        -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/lib/glib-2.0/include"
38#       eplayerlib=gstreamer-0.10
39#fi
40
41compile()
42{
43        cd $1
44        echo "[titan]--------------------------------------------------------"
45        echo "[titan] Make Plugin $1"
46        echo "[titan]--------------------------------------------------------"
47
48        gcc -DSIMULATE -Os $devflag -fPIC -Wall -Wno-unused-but-set-variable $4 -I/usr/include/freetype2 -I "$HOME"/flashimg/source.titan/libdreamdvd -I "$HOME" -c $2.c -o $2.o
49        gcc  -shared  -fPIC -DPIC  $2.o    $devflag -DSH4 -D$eplayer -Wl,-O1 -Wl,--as-needed   -Wl,-soname -Wl,lib$2.so.0 -L/lib -L/usr/lib -L/usr/lib/i386-linux-gnu -o $2.so $4
50
51        cd ..
52        echo "[titan]--------------------------------------------------------"
53        echo "[titan] Plugin $1 done"
54        echo "[titan]--------------------------------------------------------"
55}
56
57rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.o"`
58rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.so"`
59
60cd "$HOME"/flashimg/source.titan/plugins
61
62#dir, file, extralib
63compile "browser" "browser" "" ""
64compile "tithek" "tithek" "" "-l curl"
Note: See TracBrowser for help on using the repository browser.