schema: 1

bugzilla:
  product: Toolkit
  component: "General"

origin:
  name: brotli
  description: generic-purpose lossless compression algorithm

  url: https://github.com/google/brotli

  release: 4792c8e4c4235f6b501f13dbd07a8b4b253eee21 (2026-04-08T19:24:31Z).
  revision: 4792c8e4c4235f6b501f13dbd07a8b4b253eee21

  license: MIT

vendoring:
  url: https://github.com/google/brotli
  source-hosting: github
  tracking: commit

  exclude:
    - ".*"
    - "*"
    - docs
    - go
    - python
    - scripts
    - java
    - tests
    - c/tools

  include:
    - c/include/
    - c/common/
    - c/dec/
    - c/enc/

  keep:
    - LICENSE

  update-actions:
    - action: move-dir
      from: '{vendor_dir}/c/include'
      to: '{vendor_dir}/include'
    - action: move-dir
      from: '{vendor_dir}/c/common'
      to: '{vendor_dir}/common'
    - action: move-dir
      from: '{vendor_dir}/c/dec'
      to: '{vendor_dir}/dec'
    - action: move-dir
      from: '{vendor_dir}/c/enc'
      to: '{vendor_dir}/enc'
    # To prevent the build error:
    # enc/static_init.c from UNIFIED_SOURCES would have the same object name as
    # dec/static_init.c from UNIFIED_SOURCES in non-unified builds.
    # See bug 1733308.
    - action: move-file
      from: '{vendor_dir}/enc/static_init.c'
      to: '{vendor_dir}/enc/static_init_enc.c'
    - action: delete-path
      path: '{vendor_dir}/c'
