Skip to content

Add Windows builder for libaom library#1071

Closed
hmennen90 wants to merge 1 commit intocrazywhalecc:mainfrom
hmennen90:fix/libaom-windows-builder
Closed

Add Windows builder for libaom library#1071
hmennen90 wants to merge 1 commit intocrazywhalecc:mainfrom
hmennen90:fix/libaom-windows-builder

Conversation

@hmennen90
Copy link
Copy Markdown
Contributor

Summary

  • Adds the missing Windows CMake builder for libaom (src/SPC/builder/windows/library/libaom.php)
  • Adds static-libs-windows entry to lib.json for aom.lib

Problem

libaom is listed in lib.json and required as a dependency of libavif, but has no Windows library builder. This causes all Windows builds that include gd (with libavif support) to fail with:

library [libaom] is in the lib.json list but not supported to compile

This also affects the CI test workflow — all three Windows jobs (PHP 8.1, 8.4, 8.5) currently fail due to this.

Implementation

The builder follows the same CMake pattern as other Windows library builders (libavif, libwebp, freetype):

  • Uses FileSystem::resetDir() for clean build directory
  • Passes MSVC toolchain file and BUILD_ROOT_PATH install prefix
  • Sets -DAOM_TARGET_CPU=generic for portability (matching the Unix builder)
  • Disables docs, examples, tests, testdata, and tools for a minimal static build

Test plan

  • Windows CI jobs should pass with this change (previously all failing)
  • libavif Windows build should find aom.lib in the build root

libaom was listed in lib.json and used as a dependency of libavif, but had
no Windows library builder, causing all Windows builds to fail with:
"library [libaom] is in the lib.json list but not supported to compile"

This adds the missing Windows CMake builder following the same pattern as
other Windows library builders (libavif, libwebp, freetype). The builder
disables docs, examples, tests, and tools for a minimal static build and
uses AOM_TARGET_CPU=generic for portability, matching the Unix builder.

Also adds the static-libs-windows entry to lib.json so the build system
can locate the produced aom.lib artifact.
@hmennen90 hmennen90 closed this Mar 21, 2026
@hmennen90 hmennen90 deleted the fix/libaom-windows-builder branch March 21, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant