Skip to content

Commit 9736c49

Browse files
authored
Rely on a single libavif dep for aom/avm (#41)
1 parent 34062ec commit 9736c49

5 files changed

Lines changed: 7 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.6.4
4+
5+
- Remove the manual libavif+AVM build logic.
6+
37
## v0.6.3
48

59
- Bump the version of libavif in deps.sh to v1.4.0.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cmake_minimum_required(VERSION 3.20)
1616
project(
1717
codec-compare-gen
1818
LANGUAGES CXX
19-
VERSION 0.6.3)
19+
VERSION 0.6.4)
2020
set(CMAKE_CXX_STANDARD 17)
2121

2222
option(BUILD_SHARED_LIBS "Build the shared codec-compare-gen library" ON)

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,6 @@ build/ccgen \
5656
all repetitions to smooth the timings.
5757
- `output/encoded` will contain the compressed image files.
5858

59-
#### AVM build
60-
61-
To be able to use `--codec avifavm`, build codec-compare-gen this way:
62-
63-
```sh
64-
./deps.sh
65-
mv third_party/libavif third_party/libavif_aom
66-
mv third_party/libavif_avm third_party/libavif
67-
cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++
68-
cmake --build build --parallel
69-
```
70-
7159
## Tests
7260

7361
The following instructions are used to make sure the unit tests pass.

deps.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,6 @@ pushd third_party
3434
-DAVIF_BUILD_TESTS=OFF \
3535
-DAVIF_CODEC_AOM=LOCAL \
3636
-DAVIF_CODEC_DAV1D=LOCAL \
37-
-DAVIF_LIBYUV=LOCAL \
38-
-DAVIF_LIBSHARPYUV=LOCAL \
39-
-DAVIF_ENABLE_EXPERIMENTAL_MINI=ON \
40-
-DCMAKE_BUILD_TYPE=Release \
41-
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
42-
-DBUILD_SHARED_LIBS=ON
43-
cmake --build build -j${NPROC}
44-
popd
45-
46-
# AVM symbols conflict with AOM so another build of libavif is required.
47-
# See https://gitlab.com/AOMediaCodec/avm/-/issues/150.
48-
git clone -b v1.4.0 --depth 1 https://github.com/AOMediaCodec/libavif.git libavif_avm
49-
pushd libavif_avm
50-
git checkout d145e1a32af2915779b27e3b0521b6db08dd6bb8 # v1.4.0
51-
cmake -S . -B build \
52-
-DAVIF_BUILD_APPS=ON \
53-
-DAVIF_BUILD_EXAMPLES=OFF \
54-
-DAVIF_BUILD_TESTS=OFF \
5537
-DAVIF_CODEC_AVM=LOCAL \
5638
-DAVIF_LIBYUV=LOCAL \
5739
-DAVIF_LIBSHARPYUV=LOCAL \

src/result_json.cc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,10 @@ Status TasksToJson(const std::string& batch_pretty_name, CodecSettings settings,
134134
const std::string encoded_parent = AppendDirectorySeparator(RemovePrefix(
135135
/*prefix=*/encoded_common_parent.parent_path(), encoded_common_parent));
136136

137-
const std::string deps_extra_step =
138-
settings.codec == Codec::kAvifAvm
139-
? " && mv third_party/libavif third_party/libavif_aom"
140-
" && mv third_party/libavif_avm third_party/libavif"
141-
: "";
142137
const std::string build_cmd =
143-
"git clone -b v0.6.3 --depth 1"
138+
"git clone -b v0.6.4 --depth 1"
144139
" https://github.com/webmproject/codec-compare-gen.git"
145-
" && cd codec-compare-gen && ./deps.sh" +
146-
deps_extra_step +
140+
" && cd codec-compare-gen && ./deps.sh"
147141
" && cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++"
148142
" && cmake --build build --parallel && cd ..";
149143
const std::string effort_str =

0 commit comments

Comments
 (0)