summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2021-03-28 19:08:55 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2021-03-28 19:08:55 +0200
commita56c25465e3c68f56613cf6068d05f66aee33a8c (patch)
tree1d2cfabe7b621fa587f94d529f5f04603bd36dd6
parent2f4452e5407dcaafa25217ada83327a3aa08ce05 (diff)
stufff
-rwxr-xr-xbuild-box.sh22
-rw-r--r--clang-flags.conf9
2 files changed, 9 insertions, 22 deletions
diff --git a/build-box.sh b/build-box.sh
index e5b7d05..554cd26 100755
--- a/build-box.sh
+++ b/build-box.sh
@@ -22,10 +22,10 @@ LOCAL_CONF=./efl-build.conf
22source "${_BASE_}/build-fcts.sh" 22source "${_BASE_}/build-fcts.sh"
23[ -r $LOCAL_CONF ] && source $LOCAL_CONF 23[ -r $LOCAL_CONF ] && source $LOCAL_CONF
24 24
25declare -a cfgs=(efl e terminology evisum clouseau profiler evisum ephoto rage extra eruler enventor edi eflete theme_viewer) 25declare -a cfgs=(efl e terminology evisum) # clouseau profiler evisum ephoto rage extra eruler enventor edi eflete theme_viewer)
26declare -A build_cfgs=( 26declare -A build_cfgs=(
27 ["efl",0]="core/efl" 27 ["efl",0]="core/efl"
28 ["efl",1]="-Doptimization=2 -Dharfbuzz=true -Dbuild-examples=false -Dbuild-tests=false -Ddrm=true -Dwl=true -Dmono=false -Dnative=true -Dbindings=luajit" 28 ["efl",1]="-Deflone=true -Doptimization=2 -Dharfbuzz=true -Dbuild-examples=false -Dbuild-tests=false -Ddrm=true -Dwl=true -Dmono=false"
29 ["efl",2]="USE_MESON" 29 ["efl",2]="USE_MESON"
30 ["e",0]="core/enlightenment" 30 ["e",0]="core/enlightenment"
31 ["e",1]="-Dwayland=true" 31 ["e",1]="-Dwayland=true"
@@ -43,7 +43,7 @@ declare -A build_cfgs=(
43 ["terminology",0]="apps/terminology" 43 ["terminology",0]="apps/terminology"
44 ["terminology",2]="USE_MESON" 44 ["terminology",2]="USE_MESON"
45 ["evisum",0]="apps/evisum" 45 ["evisum",0]="apps/evisum"
46 ["evisum",2]="USE_MAKE" 46 ["evisum",2]="USE_MESON"
47 47
48 ["enventor",0]="tools/enventor" 48 ["enventor",0]="tools/enventor"
49 ["edi",0]="tools/edi" 49 ["edi",0]="tools/edi"
@@ -67,21 +67,6 @@ function build_all()
67 done 67 done
68} 68}
69 69
70function do_flat()
71{
72 echo -e "\n==== work on ${PURPLE}efl$RESET in ${GREEN}feature/themes/flat$RESET"
73 echo -e " $RED:: git pull$RESET"
74 cd core/efl && git co feature/themes/flat && git pull || exit 1
75 echo -e " $RED:: build$RESET EFL theme"
76 cd ./data/elementary/themes/ || exit 1
77 $PREFIX/bin/edje_cc -id ./img -id ./fdo -fd ./fnt -sd ./snd \
78 -l ../../../COPYING -a ../../../AUTHORS \
79 -fastcomp default.edc || exit 1
80 echo -e " $RED:: install$RESET EFL theme"
81 sudo install default.edj $PREFIX/share/elementary/themes/default.edj
82 git co master || exit 1
83}
84
85built=0 70built=0
86get_sudo_pwd 71get_sudo_pwd
87for arg in $@ 72for arg in $@
@@ -92,7 +77,6 @@ do
92 done 77 done
93done 78done
94[ $built -eq 0 ] && build_all 79[ $built -eq 0 ] && build_all
95do_flat
96efl_ctags 80efl_ctags
97 81
98echo -e "\n==== DONE\n" 82echo -e "\n==== DONE\n"
diff --git a/clang-flags.conf b/clang-flags.conf
index bccd2b3..d422327 100644
--- a/clang-flags.conf
+++ b/clang-flags.conf
@@ -1,9 +1,12 @@
1#! /bin/bash 1#! /bin/bash
2 2
3USE_BUILD_DIR=1 3USE_BUILD_DIR=1
4CC="/usr/lib/ccache/bin/clang" 4
5CC="/usr/lib/ccache/bin/gcc"
5CFLAGS="-O2 -march=native -ffast-math -W -Wall -Wextra -Wshadow" 6CFLAGS="-O2 -march=native -ffast-math -W -Wall -Wextra -Wshadow"
6#CFLAGS="-g3 -ggdb3 -O2 -march=native -ffast-math -W -Wall -Wextra -Wshadow"
7#CFLAGS="-g3 -ggdb3 -O0" 7#CFLAGS="-g3 -ggdb3 -O0"
8CFLAGS+=" -Qunused-arguments -Wno-parentheses-equality -Wno-array-bounds -Wno-unused-const-variable -Wno-missing-field-initializers -fvisibility=hidden" 8#CFLAGS="-g3 -ggdb3 -O2 -march=native -ffast-math -W -Wall -Wextra -Wshadow"
9
10# CC="/usr/lib/ccache/bin/clang"
11# CFLAGS+=" -Qunused-arguments -Wno-parentheses-equality -Wno-array-bounds -Wno-unused-const-variable -Wno-missing-field-initializers -fvisibility=hidden"
9 12