Compare commits

...

3 commits

Author SHA1 Message Date
Ethan Cheng
cbd0e91d89 Redefine hevc examples test modules as cc_binary
Some checks are pending
CMake / build (cmake, clang, -G Ninja, clang++, ubuntu-latest-clang-cmake-ninja, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, gcc, , g++, ubuntu-latest-gcc-cmake, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, aarch64-linux-gnu-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake, aarch64-linux-gnu-g++, ubuntu-latest-cross-aarch64-cmake, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, arm-linux-gnueabihf-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake, arm-linux-gnueabihf-g++, ubuntu-latest-cross-aarch32-cmake, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, clang, , clang++, macos-latest-clang-cmake, macos-latest) (push) Waiting to run
CMake / build (cmake, clang, , clang++, ubuntu-24.04-arm-clang-cmake, ubuntu-24.04-arm) (push) Waiting to run
CMake / build (cmake, clang, , clang++, ubuntu-latest-clang-cmake, ubuntu-latest) (push) Waiting to run
CMake / build (cmake, clang, -DSANITIZE=fuzzer-no-link,address, clang++, ubuntu-latest-clang-cmake-asan-fuzzer, ubuntu-latest) (push) Waiting to run
This change redefines the `cc_test` modules within the test
directory as `cc_binary` modules.

Previously, these `cc_test` modules were effectively acting as wrappers
around executable binaries, solely for the purpose of generating test
executables. This approach did not allow for the direct installation of
these executables on devices.

Changing these modules to `cc_binary` allows the resulting executables
are produced as standalone binaries, enabling their deployment and
execution on test devices.

Bug: 33315805
Test: 1. m hevcdec
      2. m hevcenc
      3. verifying both binaries exists and can be called
Flag: EXEMPT TEST_ONLY
Change-Id: I70945c15895e2e18eb3fa0d5c109a3d0fdaf7f05
2026-04-01 15:33:37 -07:00
Ananya Sharma
1e08a022f7 Fix CL for failing targets in git_main-throttled-haiku
This change adds the 'no_bti' default to hevc_dec_fuzzer and hevc_enc_fuzzer as they statically link against libraries lacking BTI support. This is done to fix the linker errors raised in haiku_fuzz_shiba-trunk_staging-userdebug and haiku_fuzzcoverage_shiba-trunk_staging-userdebug targets.

Bug: 491119982

Flag: EXEMPT BUGFIX

Test: CLANG_COVERAGE=true NATIVE_COVERAGE_PATHS='*' m haiku dist && m haiku dist

Change-Id: I3f569311b17667f2f4dd57e846d13e50ee5dfbe9
2026-04-01 15:33:37 -07:00
Elliott Hughes
b9c1bf8bbf libhevc: ignore BTI for now.
The assembler in this project needs updating, but we want to enable the
bti-report=error flag globally.

Change-Id: Id7d8e3c52c74f007c73729bac35b76c23cd02956
2026-04-01 15:33:37 -07:00
2 changed files with 12 additions and 4 deletions

View file

@ -35,6 +35,7 @@ cc_library_headers {
cc_library_static {
name: "libhevcdec",
defaults: ["no_bti"],
vendor_available: true,
host_supported: true,
@ -418,7 +419,7 @@ cc_library_static {
min_sdk_version: "29",
}
cc_test {
cc_binary {
name: "hevcdec",
host_supported: true,
cflags: [
@ -429,7 +430,6 @@ cc_test {
"-Wall",
"-Werror",
],
gtest: false,
srcs: ["test/decoder/main.c"],
static_libs: ["libhevcdec"],
target: {
@ -441,6 +441,7 @@ cc_test {
cc_library_static {
name: "libhevcenc",
defaults: ["no_bti"],
vendor_available: true,
host_supported: true,
cflags: [
@ -805,7 +806,7 @@ cc_library_static {
min_sdk_version: "29",
}
cc_test {
cc_binary {
name: "hevcenc",
host_supported: true,
cflags: [
@ -814,7 +815,6 @@ cc_test {
"-Wall",
"-Werror",
],
gtest: false,
srcs: ["test/encoder/main.c"],
static_libs: ["libhevcenc"],
sanitize: {

View file

@ -9,6 +9,10 @@ package {
cc_fuzz {
name: "hevc_dec_fuzzer",
//TODO: b/485868924
defaults: [
"no_bti",
],
host_supported: true,
srcs: [
"hevc_dec_fuzzer.cpp",
@ -41,6 +45,10 @@ cc_fuzz {
cc_fuzz {
name: "hevc_enc_fuzzer",
//TODO: b/485868924
defaults: [
"no_bti",
],
host_supported: true,
srcs: [
"hevc_enc_fuzzer.cpp",