Skip to content

Commit aab7a07

Browse files
committed
install android ass denpendencies
1 parent cbe3002 commit aab7a07

File tree

3 files changed

+84
-1
lines changed

3 files changed

+84
-1
lines changed

.github/workflows/all.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ jobs:
3737
./main.sh install -p ios -l 'freetype'
3838
./main.sh install -p tvos -l 'freetype'
3939
./main.sh install -p macos -l 'freetype'
40+
./main.sh install -p android -l 'freetype'
4041
.github/workflows/onestep.sh harfbuzz all
4142
echo '------compile ass------------------------------------'
4243
rm -rf build || git reset --hard || git pull origin
4344
./main.sh install -p ios -l 'harfbuzz fribidi unibreak'
4445
./main.sh install -p tvos -l 'harfbuzz fribidi unibreak'
4546
./main.sh install -p macos -l 'harfbuzz fribidi unibreak'
47+
./main.sh install -p android -l 'harfbuzz fribidi unibreak fontconfig'
4648
.github/workflows/onestep.sh ass all
4749
echo '------compile opus------------------------------------'
4850
rm -rf build || git reset --hard || git pull origin

.github/workflows/ass.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
./main.sh install -p ios -l 'harfbuzz fribidi unibreak'
2828
./main.sh install -p tvos -l 'harfbuzz fribidi unibreak'
2929
./main.sh install -p macos -l 'harfbuzz fribidi unibreak'
30-
./main.sh install -p android -l 'harfbuzz fribidi unibreak freetype'
30+
./main.sh install -p android -l 'harfbuzz fribidi unibreak fontconfig'
3131
- name: One Step
3232
run: .github/workflows/onestep.sh ass all

do-compile/android/dvdread.sh

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#! /usr/bin/env bash
2+
#
3+
# Copyright (C) 2021 Matt Reach<[email protected]>
4+
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
set -e
19+
20+
THIS_DIR=$(DIRNAME=$(dirname "$0"); cd "$DIRNAME"; pwd)
21+
cd "$THIS_DIR"
22+
23+
echo "=== [$0] check env begin==="
24+
env_assert "MR_ARCH"
25+
env_assert "MR_BUILD_NAME"
26+
env_assert "MR_CC"
27+
env_assert "MR_BUILD_SOURCE"
28+
env_assert "MR_BUILD_PREFIX"
29+
env_assert "MR_SYS_ROOT"
30+
env_assert "MR_HOST_NPROC"
31+
echo "MR_DEBUG:$MR_DEBUG"
32+
echo "===check env end==="
33+
34+
# prepare build config
35+
CFG_FLAGS="--prefix=$MR_BUILD_PREFIX --disable-dependency-tracking --disable-silent-rules --disable-apidoc --enable-static --disable-shared"
36+
CFLAGS="$MR_OTHER_CFLAGS"
37+
38+
if [[ "$MR_DEBUG" == "debug" ]];then
39+
CFG_FLAGS="${CFG_FLAGS} use_examples=yes"
40+
fi
41+
42+
# for cross compile
43+
if [[ $(uname -m) != "$MR_ARCH" || "$MR_FORCE_CROSS" ]];then
44+
echo "[*] cross compile, on $(uname -m) compile $MR_PLAT $MR_ARCH."
45+
# https://www.gnu.org/software/automake/manual/html_node/Cross_002dCompilation.html
46+
CFLAGS="$CFLAGS -isysroot $MR_SYS_ROOT"
47+
CFG_FLAGS="$CFG_FLAGS --host=$MR_ARCH-apple-darwin --with-sysroot=$MR_SYS_ROOT"
48+
fi
49+
50+
echo "----------------------"
51+
echo "[*] configurate $LIB_NAME"
52+
echo "----------------------"
53+
54+
cd $MR_BUILD_SOURCE
55+
56+
if [[ -f 'configure' ]]; then
57+
echo "reuse configure"
58+
else
59+
echo "auto generate configure"
60+
autoreconf -if >/dev/null
61+
fi
62+
63+
64+
echo
65+
echo "CC: $MR_TRIPLE_CC"
66+
echo "CFG_FLAGS: $CFG_FLAGS"
67+
echo "CFLAGS: $CFLAGS"
68+
echo
69+
70+
./configure $CFG_FLAGS \
71+
CC="$MR_TRIPLE_CC" \
72+
CFLAGS="$CFLAGS" \
73+
LDFLAGS="$CFLAGS" \
74+
>/dev/null
75+
76+
#----------------------
77+
echo "----------------------"
78+
echo "[*] compile $LIB_NAME"
79+
echo "----------------------"
80+
81+
make install -j$MR_HOST_NPROC >/dev/null

0 commit comments

Comments
 (0)