Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] build codecs for aarch64 #3

Merged
merged 4 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
arch: arm64
- os: macos-latest
arch: x86_64
- os: ubuntu-latest
arch: aarch64
- os: ubuntu-latest
arch: i686
- os: ubuntu-latest
Expand All @@ -26,6 +28,9 @@ jobs:
- uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install qemu (linux)
if: matrix.os == 'ubuntu-latest'
uses: docker/setup-qemu-action@v1
- name: Build codecs
env:
CIBW_ARCHS: ${{ matrix.arch }}
Expand Down
15 changes: 12 additions & 3 deletions scripts/build-codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def build(package, configure_args=[]):
path = os.path.join(build_dir, package)
os.chdir(path)
run(["./configure"] + configure_args + ["--prefix=" + dest_dir])
run(["make", "-j"])
run(["make"])
run(["make", "install"])
os.chdir(build_dir)

Expand Down Expand Up @@ -76,7 +76,8 @@ def extract(package, url, *, strip_components=1):

def run(cmd):
sys.stdout.write(f"- Running: {cmd}\n")
subprocess.run(cmd, check=True, stderr=sys.stderr.buffer, stdout=sys.stdout.buffer)
sys.stdout.flush()
subprocess.run(cmd, check=True)


output_dir = os.path.abspath("output")
Expand Down Expand Up @@ -113,7 +114,15 @@ def run(cmd):
"opus",
"https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz",
)
build("opus", ["--disable-shared", "--enable-static", "--with-pic"])
build(
"opus",
[
"--disable-extra-programs",
"--disable-shared",
"--enable-static",
"--with-pic",
],
)

# build vpx
extract("vpx", "https://github.com/webmproject/libvpx/archive/v1.11.0.tar.gz")
Expand Down