Skip to content

Commit afa1b83

Browse files
committed
echo lib version found by pkg-config
1 parent d122893 commit afa1b83

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ Tips:
172172
| libsmb2 | https://github.com/sahlberg/libsmb2.git | 6.2 | export GIT_SMB2_UPSTREAM=git@xx:yy/libsmb2.git |
173173
| libyuv | https://github.com/debugly/libyuv.git | stable-eb6e7bb | export GIT_YUV_UPSTREAM=git@xx:yy/yuv.git |
174174
| soundtouch | https://codeberg.org/soundtouch/soundtouch.git | 2.3.3 | export GIT_SOUNDTOUCH_UPSTREAM=git@xx:yy/soundtouch.git |
175+
| fontconfig | https://gitlab.freedesktop.org/fontconfig/fontconfig.git | 2.16.0 | export GIT_FONTCONFIG_UPSTREAM=git@xx:yy/fontconfig.git |
175176

176177
## Tips
177178

configs/ffconfig/auto-detect-third-libs.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo "----------------------"
2929
pkg-config --libs x264 --silence-errors >/dev/null && enable_x264=1
3030

3131
if [[ $enable_x264 ]];then
32-
echo "[✅] --enable-libx264"
32+
echo "[✅] --enable-libx264 : $(pkg-config --modversion x264)"
3333
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-gpl --enable-libx264"
3434
else
3535
echo "[❌] --disable-libx264"
@@ -40,7 +40,7 @@ echo "----------------------"
4040
pkg-config --libs fdk-aac --silence-errors >/dev/null && enable_aac=1
4141

4242
if [[ $enable_aac ]];then
43-
echo "[✅] --enable-libfdk-aac"
43+
echo "[✅] --enable-libfdk-aac : $(pkg-config --modversion fdk-aac)"
4444
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-nonfree --enable-libfdk-aac"
4545
else
4646
echo "[❌] --disable-libfdk-aac"
@@ -51,7 +51,7 @@ echo "----------------------"
5151
pkg-config --libs mp3lame --silence-errors >/dev/null && enable_lame=1
5252

5353
if [[ $enable_lame ]];then
54-
echo "[✅] --enable-libmp3lame"
54+
echo "[✅] --enable-libmp3lame : $(pkg-config --modversion mp3lame)"
5555
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-gpl --enable-libmp3lame"
5656
else
5757
echo "[❌] --disable-libmp3lame"
@@ -63,7 +63,7 @@ echo "----------------------"
6363
pkg-config --libs openssl --silence-errors >/dev/null && enable_openssl=1
6464

6565
if [[ $enable_openssl ]];then
66-
echo "[✅] --enable-openssl"
66+
echo "[✅] --enable-openssl : $(pkg-config --modversion openssl)"
6767
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-nonfree --enable-openssl"
6868
else
6969
echo "[❌] --disable-openssl"
@@ -74,7 +74,7 @@ echo "----------------------"
7474
pkg-config --libs opus --silence-errors >/dev/null && enable_opus=1
7575

7676
if [[ $enable_opus ]];then
77-
echo "[✅] --enable-libopus"
77+
echo "[✅] --enable-libopus : $(pkg-config --modversion opus)"
7878
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-libopus --enable-decoder=opus"
7979
else
8080
echo "[❌] --disable-libopus"
@@ -89,7 +89,7 @@ echo "----------------------"
8989
pkg-config --libs dav1d --silence-errors >/dev/null && enable_dav1d=1
9090

9191
if [[ $enable_dav1d ]];then
92-
echo "[✅] --enable-libdav1d"
92+
echo "[✅] --enable-libdav1d : $(pkg-config --modversion dav1d)"
9393
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-libdav1d --enable-decoder=libdav1d"
9494
else
9595
echo "[❌] --disable-libdav1d"
@@ -100,7 +100,7 @@ echo "----------------------"
100100
pkg-config --libs libsmb2 --silence-errors >/dev/null && enable_smb2=1
101101

102102
if [[ $enable_smb2 ]];then
103-
echo "[✅] --enable-libsmb2"
103+
echo "[✅] --enable-libsmb2 : $(pkg-config --modversion libsm2)"
104104
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-libsmb2 --enable-protocol=libsmb2"
105105
else
106106
echo "[❌] --disable-libsmb2"
@@ -111,7 +111,7 @@ echo "----------------------"
111111
pkg-config --libs libbluray --silence-errors >/dev/null && enable_bluray=1
112112

113113
if [[ $enable_bluray ]];then
114-
echo "[✅] --enable-libbluray"
114+
echo "[✅] --enable-libbluray : $(pkg-config --modversion libbluray)"
115115
THIRD_CFG_FLAGS="$THIRD_CFG_FLAGS --enable-libbluray --enable-protocol=bluray"
116116
else
117117
echo "[❌] --disable-libbluray"

do-compile/android/freetype.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
1718
# call common meson build shell
1819
./meson-compatible.sh "-Dpng=disabled -Dharfbuzz=disabled"

do-compile/android/harfbuzz.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo "[*] check freetype"
2828
pkg-config --libs freetype2 --silence-errors >/dev/null && enable_freetype2=1
2929

3030
if [[ $enable_freetype2 ]];then
31-
echo "[*] --enable-freetype"
31+
echo "[*] --enable-freetype : $(pkg-config --modversion freetype2)"
3232
CFG_FLAGS="$CFG_FLAGS -Dfreetype=enabled"
3333
else
3434
echo "[*] --disable-freetype"

do-compile/apple/harfbuzz.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pkg-config --libs freetype2 --silence-errors >/dev/null && enable_freetype2=1
2929

3030
if [[ $enable_freetype2 ]];then
3131
echo "[*] --enable-freetype"
32-
CFG_FLAGS="$CFG_FLAGS -Dfreetype=enabled"
32+
CFG_FLAGS="$CFG_FLAGS -Dfreetype=enabled : $(pkg-config --modversion freetype2)"
3333
else
3434
echo "[*] --disable-freetype"
3535
CFG_FLAGS="$CFG_FLAGS -Dfreetype=disabled"

0 commit comments

Comments
 (0)