source: titan/plugins/makei386.sh @ 43345

Last change on this file since 43345 was 43315, checked in by obi, 5 years ago

schubs

  • Property svn:executable set to *
File size: 2.3 KB
RevLine 
[42624]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
[43315]14
[42624]15if [ -z "$STM" ]; then
16        echo "error: use makesh4.sh <stm23|stm23|stm24> <1|2>"
17        exit 1
18fi
19
20#if [ $GROUP == "dev" ]; then
21#       devflag="-finstrument-functions -rdynamic -DBETA"
22#else
23#       devflag=""
24#fi
25
26cd "$HOME"/flashimg/source.titan/plugins
27ln -s "$HOME"/flashimg/source.titan/titan "$HOME"/flashimg/source.titan/plugins/titan
28
29#if [ $MEDIAFW = 1 ]; then
30#       eplayer=EPLAYER3
31#       eplayerinclude="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libeplayer3/include
32#       eplayerlib=eplayer3
33#else
34#       eplayer=EPLAYER4
35#       eplayerinclude="$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/gstreamer-0.10
36#                        -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/glib-2.0
37#                        -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/libxml2
38#                        -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/lib/glib-2.0/include"
39#       eplayerlib=gstreamer-0.10
40#fi
41
42compile()
43{
44        cd $1
45        echo "[titan]--------------------------------------------------------"
46        echo "[titan] Make Plugin $1"
47        echo "[titan]--------------------------------------------------------"
48
49        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
50        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
51
52        cd ..
53        echo "[titan]--------------------------------------------------------"
54        echo "[titan] Plugin $1 done"
55        echo "[titan]--------------------------------------------------------"
56}
57
58rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.o"`
59rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.so"`
60
61cd "$HOME"/flashimg/source.titan/plugins
62
63#dir, file, extralib
64compile "browser" "browser" "" ""
65compile "tithek" "tithek" "" "-l curl"
Note: See TracBrowser for help on using the repository browser.