%endif
%if 0%{?_nodebug}
+# Skip building the debug package for _nodebug option
%global __debug_install_post %{nil}
%global debug_package %{nil}
%endif
+# strip all symbols for chromium-efl rpm package
+%if 0%{?_strip_all}
+%define __strip_all 1
+%endif
+
%if 0%{?_enable_unittests}
%define _debug_mode 1
%endif
install -m 0644 wrt/native_wrtjs.d.ts %{buildroot}%{_includedir}/wrt/
%endif
+%if 0%{?__strip_all}
+ echo "Strip all symbols from all libraries in chromium-efl rpm package"
+ find %{buildroot} -type f -name *.so | xargs strip --strip-all
+%endif
+
%pre
if (( $(rpm -qa | grep 'wrtjs-[[:digit:]]' | wc -l) > 1 )); then
echo -e "\033[31m*****************************************************"
return 1;
}
+function gbsBuldScriptUsage() {
+cat << EOF
+usage: $1 [OPTIONS]
+
+Build gbs version of chromium-efl
+
+OPTIONS:
+ -h, --help Show this message
+ --disable-build-chrome Build chromium-efl without chrome browser
+ --nodebug Build -g0 option without debuginfo package
+ --strip-all Strip all symbols for chromium-efl rpm packages
+
+examples:
+$0 --nodebug --strip-all
+EOF
+ exit
+}
+
function setupAndExecuteTargetBuild() {
local platform="$1"
shift
while [[ $# > 0 ]]; do
case "$1" in
+ -h|--help)
+ gbsBuldScriptUsage ${0}
+ ;;
--debug)
ARGS+=(--define "_debug_mode 1")
;;
--nodebug)
ARGS+=(--define "_nodebug 1")
;;
+ --strip-all)
+ ARGS+=(--define "_strip_all 1")
+ ;;
--noinit)
NOINIT=1
ARGS+=("$1")