Skip to content

Commit

Permalink
Bug 1869332 - Write a placeholder implementation for getting the buil…
Browse files Browse the repository at this point in the history
…dconfig. r=chunmin

This is expected to be present in ffmpeg, but is only for displaying things on
the command-line, we don't need a "real" implementation.

Depends on D196061

Differential Revision: https://phabricator.services.mozilla.com/D196062
  • Loading branch information
padenot committed Dec 20, 2023
1 parent 00049ad commit d7d8b75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions media/libaom/build_config.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// Placeholder implementation -- need to be present but not used
const char *aom_codec_build_config(void) {return "It's a good config.";}
2 changes: 2 additions & 0 deletions media/libaom/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ for f in SOURCES:
elif f.endswith('avx2.c'):
SOURCES[f].flags += ['-mavx2']

SOURCES += [ 'build_config.c' ]

# Suppress warnings in third-party code.
CFLAGS += [
'-Wno-sign-compare',
Expand Down

0 comments on commit d7d8b75

Please sign in to comment.