Skip to content

Commit

Permalink
build: checkout submodules in the right version
Browse files Browse the repository at this point in the history
When run make git-update, this will checkout the submodule
for the especified version.
  • Loading branch information
TFSThiagoBR98 committed Mar 22, 2022
1 parent dfd8dbf commit 0ef4dc5
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 7 deletions.
7 changes: 6 additions & 1 deletion build/m4/brotli.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Brotli
#
BROTLI_GIT_VERSION:=v1.0.9

build/lib/brotli/js/decode.js: build/lib/brotli/configured
build/lib/brotli/js/polyfill.js: build/lib/brotli/configured
build/lib/brotli/configured: lib/brotli $(wildcard $(BASE_DIR)build/patches/brotli/*.patch)
Expand Down Expand Up @@ -37,4 +39,7 @@ git-brotli:
cd lib/brotli && \
git reset --hard && \
git clean -dfx && \
git pull origin master
git fetch origin && \
git checkout $(BROTLI_GIT_VERSION) && \
git submodule sync --recursive && \
git submodule update --init --recursive
7 changes: 6 additions & 1 deletion build/m4/expat.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Expat
#
EXPAT_GIT_VERSION:=R_2_4_1

build/lib/expat/configured: lib/expat
mkdir -p build/lib/expat
touch build/lib/expat/configured
Expand Down Expand Up @@ -31,4 +33,7 @@ git-expat:
cd lib/expat && \
git reset --hard && \
git clean -dfx && \
git pull origin master
git fetch origin && \
git checkout $(EXPAT_GIT_VERSION) && \
git submodule sync --recursive && \
git submodule update --init --recursive
7 changes: 6 additions & 1 deletion build/m4/fontconfig.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Fontconfig
#
FONTCONFIG_GIT_VERSION:=2.13.94

build/lib/fontconfig/configure: lib/fontconfig $(wildcard $(BASE_DIR)build/patches/fontconfig/*.patch)
rm -rf build/lib/fontconfig
cp -r lib/fontconfig build/lib/fontconfig
Expand Down Expand Up @@ -34,4 +36,7 @@ git-fontconfig:
cd lib/fontconfig && \
git reset --hard && \
git clean -dfx && \
git pull origin master
git fetch origin && \
git checkout $(FONTCONFIG_GIT_VERSION) && \
git submodule sync --recursive && \
git submodule update --init --recursive
6 changes: 5 additions & 1 deletion build/m4/freetype.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#
# Freetype
#
FREETYPE_GIT_VERSION:=VER-2-11-0

## Without Harfbuzz (Bootstrap)
build/lib/freetype/build_hb/dist_hb/lib/libfreetype.a: $(DIST_DIR)/lib/libbrotlidec.a $(wildcard $(BASE_DIR)build/patches/freetype/*.patch)
Expand Down Expand Up @@ -66,4 +67,7 @@ git-freetype:
cd lib/freetype && \
git reset --hard && \
git clean -dfx && \
git pull origin master
git fetch origin && \
git checkout $(FREETYPE_GIT_VERSION) && \
git submodule sync --recursive && \
git submodule update --init --recursive
7 changes: 6 additions & 1 deletion build/m4/fribidi.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Fribidi
#
FRIBIDI_GIT_VERSION:=v1.0.10

build/lib/fribidi/configure: lib/fribidi $(wildcard $(BASE_DIR)build/patches/fribidi/*.patch)
rm -rf build/lib/fribidi
mkdir -p build/lib
Expand Down Expand Up @@ -34,4 +36,7 @@ git-fribidi:
cd lib/fribidi && \
git reset --hard && \
git clean -dfx && \
git pull origin master
git fetch origin && \
git checkout $(FRIBIDI_GIT_VERSION) && \
git submodule sync --recursive && \
git submodule update --init --recursive
7 changes: 6 additions & 1 deletion build/m4/harfbuzz.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# Harfbuzz
#
HARFBUZZ_GIT_VERSION:=2.8.2

build/lib/harfbuzz/configure: lib/harfbuzz $(wildcard $(BASE_DIR)build/patches/harfbuzz/*.patch)
rm -rf build/lib/harfbuzz
cp -r lib/harfbuzz build/lib/harfbuzz
Expand Down Expand Up @@ -48,4 +50,7 @@ git-harfbuzz:
cd lib/harfbuzz && \
git reset --hard && \
git clean -dfx && \
git pull origin master
git fetch origin && \
git checkout $(HARFBUZZ_GIT_VERSION) && \
git submodule sync --recursive && \
git submodule update --init --recursive
7 changes: 6 additions & 1 deletion build/m4/libass.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
# libass
#
LIBASS_GIT_VERSION:=643829edd8408ec37182a04040fe5a7bf54dccc3

build/lib/libass/configured: lib/libass
rm -rf build/lib/libass
cd lib/libass && NOCONFIGURE=1 ./autogen.sh
Expand Down Expand Up @@ -34,4 +36,7 @@ git-libass:
cd lib/libass && \
git reset --hard && \
git clean -dfx && \
git pull origin master
git fetch origin && \
git checkout $(LIBASS_GIT_VERSION) && \
git submodule sync --recursive && \
git submodule update --init --recursive

0 comments on commit 0ef4dc5

Please sign in to comment.