summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-03 11:33:43 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-03 11:33:43 +0200
commitbf09d92119e78dc723e280e58f82fb2bc9a59878 (patch)
tree909ccc8436be2e19e23b7d093562d531ef4996e8
parent60fced2eef96e518dabb568f5b4fdd2286b14284 (diff)
remove useless files
-rwxr-xr-xbuild-gdb.sh25
-rwxr-xr-xbuild.sh265
2 files changed, 0 insertions, 290 deletions
diff --git a/build-gdb.sh b/build-gdb.sh
deleted file mode 100755
index 5d47729..0000000
--- a/build-gdb.sh
+++ /dev/null
@@ -1,25 +0,0 @@
1#!/bin/bash
2
3_FILE_=$(readlink -f $0)
4_BASE_=${_FILE_%/*}
5
6PREFIX=/opt/efl-gdb
7
8EFL_API=both
9EFL_TESTS=coverage
10EFL_PROFILE=dev
11EFL_DBUS_DIR="${PREFIX}/share/dbus-1/services"
12
13source "${_BASE_}/build-fcts.sh"
14
15get_sudo_pwd
16
17build "core/efl" "$EFL_FLAGS"
18build "core/elementary" ""
19build "core/evas_generic_loaders" ""
20build "core/emotion_generic_players" ""
21build "tools/clouseau" ""
22build "core/enlightenment" ""
23
24echo -e "\n==== DONE\n"
25
diff --git a/build.sh b/build.sh
deleted file mode 100755
index b8daabf..0000000
--- a/build.sh
+++ /dev/null
@@ -1,265 +0,0 @@
1#!/bin/bash
2
3# based on devs/seoz/build.sh
4
5# /etc/ld.so.conf.d/efl.conf:
6# /opt/efl/lib
7# /etc/profile.d/efl.sh:
8# export EFLDIR=/opt/efl
9# export PATH=$PATH:$EFLDIR/bin
10# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$EFLDIR/lib/pkgconfig
11# #export XDG_DATA_DIRS=$XDG_DATA_DIRS:$EFLDIR/share
12
13set -e
14#set -x
15shopt -s expand_aliases
16
17unset LANG
18export TERM=xterm-color
19export CFLAGS=${CFLAGS:-"-O2 -march=native -ffast-math -W -Wall -Wextra"} # -Wshadow"
20export CC=${CC:-"ccache clang"}
21alias make='make -j4'
22# export EFL_COV_LIBS="/usr/lib64/clang/3.2/lib/linux/libclang_rt.profile-x86_64.a"
23
24if $(echo ${CC} | grep "clang" 1>/dev/null 2>&1); then
25 export CFLAGS="${CFLAGS} -Qunused-arguments -Wno-array-bounds -Wno-parentheses-equality -Wno-empty-body"
26fi
27
28PREFIX=/opt/efl
29export PATH=$PREFIX/bin:$PATH
30export PKG_CONFIG_PATH=$PREFIX"/lib/pkgconfig:$PKG_CONFIG_PATH"
31
32EFL_TESTS=${EFL_TESTS:-"regular"}
33EFL_PROFILE=${EFL_PROFILE:-"dev"}
34EFL_DBUS_DIR="/usr/share/dbus-1/services"
35
36if [ "x$EFL_TESTS" = "xcoverage" ]; then
37 if [[ $CC =~ clang ]]; then
38 export EFL_COV_LIBS="/usr/lib64/clang/3.3/lib/linux/libclang_rt.profile-x86_64.a"
39 fi
40fi
41
42BUILD_TREE="build"
43BUILD_IN_TREE=1
44CLEANLEVEL=1
45for arg in $@; do
46 if [ "x$arg" = "x+c" ]; then CLEANLEVEL=$((CLEANLEVEL+1)); fi
47 if [ "x$arg" = "x-c" ]; then CLEANLEVEL=$(($CLEANLEVEL-1)); fi
48done
49
50PWD=`pwd`
51TAGS_PATH=$HOME"/share/ctags/efl.tags"
52LOG_WARN_FILE=$PWD"/warnings.txt"
53LOG_WARN_TMP_FILE=$PWD"/warnings_tmp.txt"
54LOCAL_PATCHES_PATH=$PWD"/local_patches"
55
56EFL_FLAGS="--disable-doc --disable-static --with-profile=$EFL_PROFILE --with-dbus-services=$EFL_DBUS_DIR --with-tests=$EFL_TESTS" # --enable-always-build-examples"
57EFL_FLAGS+=" --with-x11=xlib --disable-tslib --enable-drm --enable-fb --disable-egl --enable-systemd --enable-harfbuzz --disable-pulseaudio"
58EFL_FLAGS+=" --enable-wayland"
59# EFL_FLAGS+=" --enable-pixman --enable-pixman-font --enable-pixman-rect --enable-pixman-line --enable-pixman-poly --enable-pixman-image --enable-pixman-image-scale-sample"
60
61E_FLAGS="--enable-pam --disable-device-hal --enable-device-udev --enable-mount-udisks --enable-mount-eeze --enable-elementary --enable-emotion --enable-enotify"
62E_FLAGS+=" --enable-wayland-clients --enable-wayland-egl"
63
64function create_log()
65{
66 rm $LOG_WARN_FILE -f
67 touch $LOG_WARN_FILE
68}
69
70function get_sudo_pwd()
71{
72 echo -e "\n==== SUDO PASSWD"
73 sudo_test=/tmp/_sudo.test
74 echo -n "enter sudo-password: " && stty -echo && read SUDO_PASSWD && stty echo || exit 1
75 echo "$SUDO_PASSWD" | sudo -S touch $sudo_test
76 if [ ! -e $sudo_test ]; then
77 echo "cmdline provided sudo password failed!"
78 exit 1
79 else
80 sudo rm -f $sudo_test
81 fi
82}
83
84function apply_local_patches()
85{
86 echo -e "\n==== LOCAL PATCHES"
87 for patch in $(ls -1 $LOCAL_PATCHES_PATH/*.patch 2>/dev/null); do
88 echo " - apply ${patch##*/}" && patch -p 1 -N -r - < $patch || true
89 done
90}
91
92function clean_build_tree()
93{
94 [ ! -f Makefile ] && return
95 if [ $CLEANLEVEL -gt 1 ]; then
96 echo "* distclean ..." && make clean distclean >/dev/null || true
97 elif [ $CLEANLEVEL -eq 1 ]; then
98 echo "* clean ..." && make clean >/dev/null || true
99 else
100 echo "* leave tree AS IS ..."
101 fi
102}
103
104function run_autogen()
105{
106 [ $CLEANLEVEL -lt 1 ] && return
107 cmd="./autogen.sh"
108 [ $BUILD_IN_TREE -ne 1 ] && cmd="../autogen.sh"
109 echo "* $cmd ..." && NOCONFIGURE=1 $cmd >/dev/null 2>&1 || true
110}
111
112function configure_build_tree()
113{
114 autogen_flags=$1
115 [ $CLEANLEVEL -lt 1 ] && return
116 cmd="./configure"
117 [ $BUILD_IN_TREE -ne 1 ] && cmd="../configure"
118 echo "* $cmd $autogen_flags ..." && $cmd $autogen_flags || exit 1
119}
120
121function make_build_tree()
122{
123 echo "* make ..." && make 3>&1 1>&2 2>&3 | tee $LOG_WARN_TMP_FILE || exit 1
124 cat $LOG_WARN_TMP_FILE >> $LOG_WARN_FILE
125 rm $LOG_WARN_TMP_FILE
126}
127
128function install_component()
129{
130 echo "* install ..." && echo "$SUDO_PASSWD" | sudo -S make install >/dev/null 2>&1 || exit 1
131 echo "$SUDO_PASSWD" | sudo -S ldconfig
132}
133
134function build()
135{
136 build_dir=$1
137 autogen_flags=$2
138 for I in $build_dir; do
139 pushd $I || exit 1
140 echo -e "\n==== $I"
141 echo "" >> $LOG_WARN_FILE
142 echo "["$I"]" >> $LOG_WARN_FILE
143 [ $BUILD_IN_TREE -ne 1 ] && [ -f Makefile ] && echo "* distclean source tree ..." && make clean distclean >/dev/null || true
144 run_autogen
145 if [ $BUILD_IN_TREE -ne 1 ]; then
146 [ $CLEANLEVEL -gt 2 ] && rm -fr $BUILD_TREE
147 [ -d $BUILD_TREE ] || mkdir $BUILD_TREE
148 pushd $BUILD_TREE
149 fi
150 clean_build_tree
151 configure_build_tree "$autogen_flags"
152 make_build_tree
153 install_component
154 [ $BUILD_IN_TREE -ne 1 ] && popd
155 popd
156 done
157}
158
159function uninstall()
160{
161 build_dir=$1
162 for I in $build_dir; do
163 pushd $I
164 echo "$SUDO_PASSWD" | sudo -S make uninstall
165 popd
166 done
167}
168
169function update_desktop_stuff()
170{
171 echo -e "\n==== UPDATE DESKTOP STUFF"
172 echo "$SUDO_PASSWD" | sudo -S -E update-mime-database $PREFIX/share/mime
173 echo "$SUDO_PASSWD" | sudo -S -E update-desktop-database
174}
175
176function e17_restart()
177{
178 [ -z "$DISPLAY" ] && return
179 echo -e "\n==== ENLIGHTENMENT RESTART"
180 enlightenment_remote -restart
181}
182
183function efl_ctags()
184{
185 # efl ctags
186 echo -e "\n==== TAGS"
187 ex=""
188 for dir in BINDINGS DEBUG E16 E-MODULES-EXTRA FORMATTING GAMES IN-EFL MARKETING MISC PROTO SCRIPTS TEST THEMES E16 web; do
189 ex="$ex --exclude=$dir"
190 done
191 [ -e $TAGS_PATH ] && rm $TAGS_PATH
192 ctags --tag-relative=yes -h ".h.x.cpp.c" --exclude="*.js" --exclude="*.pxi" --exclude="*.la" $ex -R -o $TAGS_PATH
193}
194
195build_core()
196{
197 echo "build core"
198 build "core/efl" "--prefix=$PREFIX $EFL_FLAGS"
199 build "core/evas_generic_loaders core/emotion_generic_players" "--prefix=$PREFIX"
200}
201
202build_elm()
203{
204 echo "build elm"
205 build "libs/libeweather" "--prefix=$PREFIX" # --enable-tests (elocation only)
206 build "devs/elocation" "--prefix=$PREFIX" # --enable-tests (elocation only)
207 build "core/elementary" "--prefix=$PREFIX"
208}
209
210build_apps()
211{
212 echo "build apps"
213 build "apps/terminology apps/ephoto" "--prefix=$PREFIX"
214}
215
216build_tools()
217{
218 echo "build tools"
219 build "tools/clouseau tools/exactness tools/expedite" "--prefix=$PREFIX --disable-wayland-egl"
220}
221
222build_games()
223{
224 echo "build games"
225 build "games/etrophy games/elemines" "--prefix=$PREFIX"
226}
227
228build_devs()
229{
230 echo "build devs"
231 build "devs/efx devs/esskyuehl" "--prefix=$PREFIX"
232}
233
234build_e()
235{
236 echo "build e"
237 build "core/enlightenment" "--prefix=$PREFIX --sysconfdir=/etc --libexecdir=$PREFIX/lib/enlightenment $E_FLAGS"
238}
239
240build_all()
241{
242 build_core
243 build_elm
244 build_apps
245 build_tools
246 build_games
247 build_devs
248 build_e
249}
250
251get_sudo_pwd
252create_log
253
254for arg in $@; do
255 for fct in all core elm apps tools games devs e; do
256 [ "x$arg" = "x$fct" ] && build_$arg
257 done
258done
259
260update_desktop_stuff
261e17_restart
262efl_ctags
263
264echo -e "\n==== DONE\n"
265