[tbb-commits] [tor-browser-build/master] Bug 32991: TBB Project For ZSTD

boklm at torproject.org boklm at torproject.org
Mon Mar 2 13:55:10 UTC 2020


commit e96c9adc8857312871349cf5cfa3dcead71a3ff6
Author: sisbell <shane.isbell at gmail.com>
Date:   Mon Feb 10 15:52:08 2020 -0800

    Bug 32991: TBB Project For ZSTD
---
 projects/zstd/build  | 18 ++++++++++++++++++
 projects/zstd/config | 14 ++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/projects/zstd/build b/projects/zstd/build
new file mode 100644
index 0000000..3d76a1a
--- /dev/null
+++ b/projects/zstd/build
@@ -0,0 +1,18 @@
+#!/bin/bash
+[% c("var/set_default_env") -%]
+[% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
+distdir=/var/tmp/dist/[% project %]
+mkdir -p $distdir
+mkdir -p /var/tmp/build
+tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.gz
+cd /var/tmp/build/[% project %]-[% c('version') %]
+export CPPFLAGS=-DZSTD_MULTITHREAD
+export CC=[% c("var/configure_host") %]-clang
+make -C lib -j[% c("buildconf/num_procs") %] PREFIX=$distdir install
+# Only need static libraries
+rm $distdir/lib/libzstd.so*
+cd /var/tmp/dist
+[% c('tar', {
+        tar_src => [ project ],
+        tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
+    }) %]
diff --git a/projects/zstd/config b/projects/zstd/config
new file mode 100644
index 0000000..40fe21c
--- /dev/null
+++ b/projects/zstd/config
@@ -0,0 +1,14 @@
+# vim: filetype=yaml sw=2
+version: 1.4.4
+git_url: https://github.com/facebook/zstd.git
+git_hash: 10f0e6993f9d2f682da6d04aa2385b7d53cbb4ee
+filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
+
+var:
+  container:
+    use_container: 1
+
+input_files:
+  - project: container-image
+  - name: '[% c("var/compiler") %]'
+    project: '[% c("var/compiler") %]'



More information about the tbb-commits mailing list