commit | 80cb6629d10be6d6600db7c25883d9c24afd07ed | [log] [tgz] |
---|---|---|
author | Li-Yu Yu <aaronyu@google.com> | Thu Sep 07 11:51:52 2023 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 08 03:38:02 2023 |
tree | c0d7cb48710406bcc5c3446316e5e4267946404f | |
parent | 0cff7a2df1a8c5aa942c039f3dc14b4831f966b3 [diff] |
Fix up for webrtc importer on current revision There are some build target name changes caused by using the importer and also some utility function changes required by the importer. Those issues are addressed as a separate commit to make it easier to review. BUG=b:299043094 TEST=CQ Change-Id: Ie6b1f9cc8981576b11b04512e27774fccc3484a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/webrtc-apm/+/4846432 Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Commit-Queue: Li-Yu Yu <aaronyu@google.com> Tested-by: Li-Yu Yu <aaronyu@google.com>
APM is the audio processing module of WebRTC project in charge of effects like echo cancellation, noise suppression, etc. The purpose of this project is to build a standalone library for Chrome OS system side audio processing.
To update this package to latest upstream WebRC:
./script/sync-apm.sh path/to/webrtc-checkout/src .
emerge-${BOARD} adhd
to see if anything breaks.There are three ways to build/test this package:
The first one is the easiest to iterate with, and the last one is closest to the way ChromiumOS infra actually use to build OS images. The second one is somewhere in-between.
In the directory same as this README file, run:
bazel test //:tests
If you see pkg-config errors you are missing some system dependencies. (Googlers: follow go/cras-dev#prerequisites to install dependencies on gLinux)
Clone https://chromium.googlesource.com/chromiumos/third_party/adhd/ to the directory adjacent to this directory, so that adhd
and webrtc-apm
(this repository) are in the same directory.
NOTE: If you use repo
to set up a ChromiumOS checkout, the directory tree is already set up this way.
In the adhd
directory, run:
bazel test //... @webrtc_apm//:tests
There are some configs you can use, such as --config=local-clang
and --config=asan
. Refer to adhd's bazelrc for details.
If you see pkg-config errors you are missing some system dependencies. (Googlers: follow go/cras-dev#prerequisites to install dependencies on gLinux)
Example:
FEATURES=test USE=asan emerge-${BOARD} adhd