Create an extra source tarball with vendored libs inside
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
335db79d14
commit
8200d30ed8
3 changed files with 113 additions and 93 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
|
@ -496,6 +496,7 @@ jobs:
|
||||||
- name: Create source tarball
|
- name: Create source tarball
|
||||||
run: |
|
run: |
|
||||||
make tarball
|
make tarball
|
||||||
|
make tarball+deps
|
||||||
- name: Set sha8
|
- name: Set sha8
|
||||||
id: slug
|
id: slug
|
||||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||||
|
|
|
||||||
17
Makefile
17
Makefile
|
|
@ -267,9 +267,7 @@ install:
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# Tarball step, for releases
|
# Tarball step, for releases
|
||||||
|
|
||||||
tarball:
|
TAR_ARGS = \
|
||||||
rm -f ../cardinal-$(VERSION).tar
|
|
||||||
tar -c --lzma \
|
|
||||||
--exclude=".appveyor*" \
|
--exclude=".appveyor*" \
|
||||||
--exclude=".ci*" \
|
--exclude=".ci*" \
|
||||||
--exclude=".clang*" \
|
--exclude=".clang*" \
|
||||||
|
|
@ -360,7 +358,18 @@ tarball:
|
||||||
--transform='s,^\.\.,-.-.,' \
|
--transform='s,^\.\.,-.-.,' \
|
||||||
--transform='s,^\.,cardinal-$(VERSION),' \
|
--transform='s,^\.,cardinal-$(VERSION),' \
|
||||||
--transform='s,^-\.-\.,..,' \
|
--transform='s,^-\.-\.,..,' \
|
||||||
-f ../cardinal-$(VERSION).tar.xz .
|
|
||||||
|
download:
|
||||||
|
$(MAKE) download -C deps
|
||||||
|
|
||||||
|
tarball:
|
||||||
|
$(MAKE) clean -C deps
|
||||||
|
rm -f ../cardinal-$(VERSION).tar.xz
|
||||||
|
tar -c --lzma $(TAR_ARGS) -f ../cardinal-$(VERSION).tar.xz .
|
||||||
|
|
||||||
|
tarball+deps: download
|
||||||
|
rm -f ../cardinal+deps-$(VERSION).tar.xz
|
||||||
|
tar -c --lzma $(TAR_ARGS) -f ../cardinal+deps-$(VERSION).tar.xz .
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
10
deps/Makefile
vendored
10
deps/Makefile
vendored
|
|
@ -158,6 +158,9 @@ endif
|
||||||
$(DEP_PATH)/lib/%.a:
|
$(DEP_PATH)/lib/%.a:
|
||||||
$(DEP_MAKE) -C $(DEP_PATH) lib/$*.a
|
$(DEP_MAKE) -C $(DEP_PATH) lib/$*.a
|
||||||
|
|
||||||
|
$(DEP_PATH)/jansson-2.12:
|
||||||
|
$(DEP_MAKE) -C $(DEP_PATH) jansson-2.12
|
||||||
|
|
||||||
# libarchive: skip shared lib and ensure libzstd is enabled
|
# libarchive: skip shared lib and ensure libzstd is enabled
|
||||||
$(DEP_PATH)/lib/libarchive.a: $(DEP_PATH)/lib/libzstd.a $(DEP_PATH)/libarchive-3.4.3/.stamp-patched
|
$(DEP_PATH)/lib/libarchive.a: $(DEP_PATH)/lib/libzstd.a $(DEP_PATH)/libarchive-3.4.3/.stamp-patched
|
||||||
|
|
||||||
|
|
@ -257,6 +260,13 @@ clean:
|
||||||
rm -rf $(DEP_PATH)/speexdsp-SpeexDSP-1.2rc3
|
rm -rf $(DEP_PATH)/speexdsp-SpeexDSP-1.2rc3
|
||||||
rm -rf $(DEP_PATH)/zstd-1.4.5
|
rm -rf $(DEP_PATH)/zstd-1.4.5
|
||||||
|
|
||||||
|
download: \
|
||||||
|
$(DEP_PATH)/jansson-2.12 \
|
||||||
|
$(DEP_PATH)/libarchive-3.4.3/.stamp-patched \
|
||||||
|
$(DEP_PATH)/libsamplerate-0.1.9/.stamp-patched \
|
||||||
|
$(DEP_PATH)/speexdsp-SpeexDSP-1.2rc3/.stamp-patched \
|
||||||
|
$(DEP_PATH)/zstd-1.4.5/.stamp-patched
|
||||||
|
|
||||||
quickjs: $(DEP_PATH)/lib/libquickjs.a
|
quickjs: $(DEP_PATH)/lib/libquickjs.a
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue