Skip to content

Commit 3783492

Browse files
committed
add libaom
1 parent 9837eb4 commit 3783492

3 files changed

Lines changed: 27 additions & 13 deletions

File tree

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,16 @@ This lambda layer contains the node module [sharp](https://github.com/lovell/sha
6767

6868
### Dependencies
6969
The following table lists the release version of this repo together with the version of each dependency. Patch versions are related to the build process or documentation and have the same dependencies as the minor version.
70-
| release | sharp | libvips | libheif | libwebp | libde265 | x265 | nodejs |
71-
|---------|--------|---------|---------|---------|-----------|--------|--------|
72-
| 1.1.0 | 0.27.0 | 8.10.5 | 1.10.0 | 1.1.0 | 1.0.8 | - | 12 |
73-
| 1.2.0 | 0.28.2 | 8.10.6 | 1.12.0 | 1.2.0 | 1.0.8 | - | 12 |
74-
| 2.0.0 | 0.29.1 | 8.11.3 | 1.12.0 | 1.2.1 | 1.0.8 | - | 14 |
75-
| 3.0.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | 16 |
76-
| 3.1.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | 16 |
77-
| 3.2.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.3.2 | 1.0.12 | - | 16 |
78-
| 4.1.0 | 0.33.3 | 8.15.2 | 1.17.6 | 1.4.0 | 1.0.15 | 3.6 | 20 |
70+
| release | sharp | libvips | libheif | libwebp | libde265 | x265 | libaom | nodejs |
71+
|---------|--------|---------|---------|---------|-----------|--------|--------|--------|
72+
| 1.2.0 | 0.28.2 | 8.10.6 | 1.12.0 | 1.2.0 | 1.0.8 | - | - | 12 |
73+
| 1.1.0 | 0.27.0 | 8.10.5 | 1.10.0 | 1.1.0 | 1.0.8 | - | - | 12 |
74+
| 2.0.0 | 0.29.1 | 8.11.3 | 1.12.0 | 1.2.1 | 1.0.8 | - | - | 14 |
75+
| 3.0.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | - | 16 |
76+
| 3.1.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | - | 16 |
77+
| 3.2.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.3.2 | 1.0.12 | - | - | 16 |
78+
| 4.1.0 | 0.33.3 | 8.15.2 | 1.17.6 | 1.4.0 | 1.0.15 | 3.6 | - | 20 |
79+
| 4.1.3 | 0.33.3 | 8.15.2 | 1.17.6 | 1.4.0 | 1.0.15 | 3.6 | 3.9.0 | 20 |
7980

8081
### CompatibleRuntimes
8182
- `nodejs12.x` (v1.x)
@@ -91,6 +92,7 @@ You can also use the Sponsor button on the right if you'd like.
9192
## Licenses
9293
- libheif and libde265 are distributed under the terms of the GNU Lesser General Public License. Copyright Struktur AG. See https://github.com/strukturag/libheif/blob/master/COPYING and https://github.com/strukturag/libde265/blob/master/COPYING for details.
9394
- x265 is free to use under the GNU GPL and is also available under a commercial license. See https://www.x265.org/ for details.
95+
- libaom is Copyright (c) 2016, Alliance for Open Media. All rights reserved. See https://aomedia.googlesource.com/aom/+/refs/heads/main/LICENSE for details
9496
- libwebp is Copyright Google Inc. See https://github.com/webmproject/libwebp/blob/master/COPYING for details.
9597
- sharp is licensed under the Apache License, Version 2.0. Copyright Lovell Fuller and contributors. See https://github.com/lovell/sharp/blob/master/LICENSE for details.
9698
- libvips is licensed under the LGPL 2.1+. See https://github.com/libvips/libvips/blob/master/COPYING for details.

layer/Makefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Library Versions
22
WEBP_VERSION=1.4.0
33
LIBDE265_VERSION=1.0.15
4+
LIBAOM_VERSION=3.9.0
45
X265_VERSION=3.6
56
LIBHEIF_VERSION=1.17.6
67
VIPS_VERSION=8.15.2
@@ -9,7 +10,7 @@ SHARP_VERSION=0.33.3
910
PREFIX_PATH=/usr/local
1011
LIB_PATH=$(PREFIX_PATH)/lib64
1112
LIBRARY_PATH=$(LIB_PATH)
12-
EXAMPLE_IMAGE_PATH=$(CURDIR)/example-images
13+
# EXAMPLE_IMAGE_PATH=$(CURDIR)/example-images
1314

1415
export PKG_CONFIG_PATH=$(LIB_PATH)/pkgconfig:$$PKG_CONFIG_PATH
1516
export LD_LIBRARY_PATH=$(LIB_PATH):$$LD_LIBRARY_PATH
@@ -35,26 +36,37 @@ build-SharpHEICLayer: libvips
3536
# ls -la $(ARTIFACTS_DIR)/lib/
3637

3738
libwebp:
39+
# libwebp
3840
curl -L https://github.com/webmproject/libwebp/archive/v$(WEBP_VERSION).tar.gz | tar zx
3941
cd libwebp-$(WEBP_VERSION) && ./autogen.sh && ./configure --enable-libwebpmux --prefix=$(PREFIX_PATH) && make V=0 && make install
4042

4143
libde265:
44+
# libde265
4245
curl -L https://github.com/strukturag/libde265/releases/download/v$(LIBDE265_VERSION)/libde265-$(LIBDE265_VERSION).tar.gz | tar zx
4346
cd libde265-$(LIBDE265_VERSION) && ./autogen.sh && ./configure --disable-dec265 --disable-sherlock265 --prefix=$(PREFIX_PATH) && make V=0 && make install
4447

4548
x265:
49+
# x265
4650
curl -L https://bitbucket.org/multicoreware/x265_git/downloads/x265_$(X265_VERSION).tar.gz | tar zx
4751
cd x265_$(X265_VERSION) && cd build/linux && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(PREFIX_PATH) ../../source && make && make install
4852

49-
libheif: x265 libde265
53+
libaom:
54+
# libaom
55+
curl -L https://storage.googleapis.com/aom-releases/libaom-${LIBAOM_VERSION}.tar.gz | tar zx
56+
cd libaom-${LIBAOM_VERSION} && cd build && cmake -DCONFIG_AV1_ENCODER=0 -DBUILD_SHARED_LIBS=1 -DENABLE_TESTS=0 -DENABLE_DOCS=0 -DCMAKE_INSTALL_PREFIX=${PREFIX_PATH} -DCMAKE_INSTALL_LIBDIR=${LIB_PATH}/lib .. && make V=0 && make install
57+
58+
libheif: x265 libde265 libaom
5059
# libheif
5160
curl -L https://github.com/strukturag/libheif/releases/download/v$(LIBHEIF_VERSION)/libheif-$(LIBHEIF_VERSION).tar.gz | tar zx
5261
cd libheif-$(LIBHEIF_VERSION) && mkdir build && cd build && cmake -DCMAKE_INSTALL_LIBDIR=$(LIB_PATH) --preset=release-noplugins .. && make V=1 && make install
5362

5463
libvips: installLib libheif libwebp
5564
# libvips
65+
pkg-config libheif --print-variables
66+
5667
curl -L https://github.com/libvips/libvips/releases/download/v$(VIPS_VERSION)/vips-$(VIPS_VERSION).tar.xz | tar xJ
57-
cd vips-$(VIPS_VERSION) && meson setup build --prefix ${PREFIX_PATH} --libdir ${LIB_PATH} -Dheif=enabled -Dheif-module=disabled -Dlcms=enabled --buildtype release && cd build && meson compile && meson test && meson install
68+
cd vips-$(VIPS_VERSION) && meson setup build --prefix ${PREFIX_PATH} --libdir ${LIB_PATH} -Dheif=enabled -Dheif-module=disabled -Dlcms=enabled --buildtype release && cd build && meson compile && meson install
69+
VIPS_INFO=1 vips
5870

5971
# libheif: libde265
6072
# # libheif

sample-buildproject.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Resources:
5858
Pattern: PUSH
5959
ExcludeMatchedPattern: false
6060
- Type: HEAD_REF
61-
Pattern: '^refs/tags/.*'
61+
Pattern: '^refs/tags/.*' # or use ^refs/heads/main to build on push to main branch
6262
ExcludeMatchedPattern: false
6363
Webhook: true
6464
EncryptionKey: !Sub arn:aws:kms:${AWS::Region}:${AWS::AccountId}:alias/aws/s3

0 commit comments

Comments
 (0)