[gnome-build-meta/abderrahim/fdsdk-master] strip-rules
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/fdsdk-master] strip-rules
- Date: Sat, 18 Apr 2020 19:11:41 +0000 (UTC)
commit 911a380aa72ef95bb792c7b8afe79dc816e1f846
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Fri Apr 17 14:34:21 2020 +0100
strip-rules
elements/core-deps/boost.bst | 8 ++++++++
elements/sdk/WebKitGTK.bst | 6 ++++++
junction.refs | 2 +-
project.conf | 47 ++------------------------------------------
4 files changed, 17 insertions(+), 46 deletions(-)
---
diff --git a/elements/core-deps/boost.bst b/elements/core-deps/boost.bst
index f0f86de1..360ef231 100644
--- a/elements/core-deps/boost.bst
+++ b/elements/core-deps/boost.bst
@@ -1,9 +1,15 @@
kind: manual
+
sources:
- kind: tar
url: downloads.sourceforge.net:boost/boost/1.72.0/boost_1_72_0.tar.bz2
+
depends:
- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+ optimize-debug: 'false'
+
config:
configure-commands:
- ./bootstrap.sh --includedir=%{install-root}%{includedir} --libdir=%{install-root}%{libdir}
@@ -11,7 +17,9 @@ config:
- ./b2 -q -j${JOBS} --build-dir=_build link=shared stage
install-commands:
- ./b2 -q --build-dir=_build link=shared install
+
environment:
JOBS: '%{max-jobs}'
+
environment-nocache:
- JOBS
diff --git a/elements/sdk/WebKitGTK.bst b/elements/sdk/WebKitGTK.bst
index 19ba6519..02ace2a1 100644
--- a/elements/sdk/WebKitGTK.bst
+++ b/elements/sdk/WebKitGTK.bst
@@ -1,4 +1,5 @@
kind: cmake
+
sources:
- kind: tar
url: webkitgtk_org:webkitgtk-2.28.1.tar.xz
@@ -8,15 +9,18 @@ sources:
path: files/webkitgtk/toolchain.i686
- kind: local
path: files/webkitgtk/toolchain.arm
+
build-depends:
- freedesktop-sdk.bst:components/gperf.bst
- freedesktop-sdk.bst:components/perl.bst
- freedesktop-sdk.bst:components/ruby.bst
- freedesktop-sdk.bst:public-stacks/buildsystem-cmake.bst
+
runtime-depends:
- sdk/gst-libav.bst
- sdk/gst-plugins-bad.bst
- sdk/gst-plugins-good.bst
+
depends:
- sdk/at-spi2-core.bst
- sdk/brotli.bst
@@ -40,7 +44,9 @@ depends:
- freedesktop-sdk.bst:components/wayland.bst
- freedesktop-sdk.bst:components/xorg-lib-xt.bst
- freedesktop-sdk.bst:bootstrap-import.bst
+
variables:
+ optimize-debug: 'false'
webkitgtk_toolchain: ''
webkitgtk_arch_options: ''
(?):
diff --git a/junction.refs b/junction.refs
index e303e625..b1e9275a 100644
--- a/junction.refs
+++ b/junction.refs
@@ -1,6 +1,6 @@
projects:
gnome:
freedesktop-sdk.bst:
- - ref: freedesktop-sdk-19.08beta.9-709-g2e8178a9b3df061de20f86db868641e26df17ffb
+ - ref: 5fcc39503f3bfdada65909ded6b34e22c5dd8e16
openh264-extension.bst:
- ref: 08de6b4315f76b6b09a7cfc9889b61d072cf15ea
diff --git a/project.conf b/project.conf
index b3eee880..b0044b6b 100644
--- a/project.conf
+++ b/project.conf
@@ -217,7 +217,6 @@ variables:
sysconfdir: "/etc"
localstatedir: "/var"
indep-libdir: "%{prefix}/lib"
- debugdir: "%{indep-libdir}/debug"
common_flags: "-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches"
flags_x86_64: "-march=x86-64 -mtune=generic %{common_flags} -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection"
flags_i686: "-march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign %{common_flags}
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection"
@@ -231,50 +230,8 @@ variables:
- arch == "arm":
abi: "gnueabihf"
- # This should eventually done with buildstream includes
- strip-binaries: |
- touch source-files
- find "%{install-root}" -type f \
- '(' -perm -111 -o -name '*.so*' \
- -o -name '*.cmxs' -o -name '*.node' ')' \
- -print0 | while read -r -d $'\0' file; do
- read -n4 hdr <"${file}" || continue # check for elf header
- if [ "$hdr" != "$(printf \\x7fELF)" ]; then
- continue
- fi
- if objdump -j .gnu_debuglink -s "${file}" &>/dev/null; then
- continue
- fi
- case "${file}" in
- "%{install-root}%{debugdir}/"*)
- continue
- ;;
- *)
- ;;
- esac
- realpath="$(realpath -s --relative-to="%{install-root}" "${file}")"
- debugfile="%{install-root}%{debugdir}/${realpath}.debug"
- mkdir -p "$(dirname "$debugfile")"
- debugedit -i --list-file=source-files.part --base-dir="%{build-root}"
--dest-dir="%{debugdir}/source/%{element-name}" "${file}"
- cat source-files.part >>source-files
- objcopy %{objcopy-extract-args} "${file}" "$debugfile"
- chmod 644 "$debugfile"
- mode="$(stat -c 0%a "${file}")"
- [ -w "${file}" ] || chmod +w "${file}"
- strip %{strip-args} "${file}"
- objcopy %{objcopy-link-args} "$debugfile" "${file}"
- chmod "${mode}" "${file}"
- done
- sort -zu <source-files | while read -r -d $'\0' source; do
- dst="%{install-root}%{debugdir}/source/%{element-name}/${source}"
- src="%{build-root}/${source}"
- if [ -d "${src}" ]; then
- install -m0755 -d "${dst}"
- continue
- fi
- [ -f "${src}" ] || continue
- install -m0644 -D "${src}" "${dst}"
- done
+ (@):
+ - freedesktop-sdk.bst:include/_private/strip.yml
plugins:
- origin: pip
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]