libavc/examples/Android.bp
Hang Nguyen 70530453cc Redefine examples test modules as cc_binary
This change redefines the `cc_test` modules within the examples
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: 414657128
Change-Id: I9caef8a5cf29c7d77b8bcd535f047a640c52285c
2025-05-09 22:11:54 -07:00

120 lines
2.1 KiB
Text

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "external_libavc_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["external_libavc_license"],
}
cc_defaults {
name: "avcdec_defaults",
gtest: false,
host_supported: true,
cflags: [
"-DPROFILE_ENABLE",
"-DARM",
"-DMD5_DISABLE",
"-fPIC",
"-Wall",
"-Werror",
],
shared_libs: ["liblog"],
target: {
darwin: {
enabled: false,
},
},
}
cc_defaults {
name: "avcenc_defaults",
gtest: false,
host_supported: true,
cflags: [
"-DPROFILE_ENABLE",
"-DARM",
"-DMD5_DISABLE",
"-fPIC",
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
local_include_dirs: [
"avcenc",
],
static_libs: ["libavcenc"],
}
cc_binary {
name: "avcdec",
defaults: ["avcdec_defaults"],
local_include_dirs: [
"avcdec",
],
srcs: ["avcdec/main.c"],
static_libs: ["libavcdec"],
}
cc_binary {
name: "mvcdec",
defaults: ["avcdec_defaults"],
local_include_dirs: [
"mvcdec",
],
srcs: ["mvcdec/main.c"],
static_libs: [
"libmvcdec",
],
}
cc_binary {
name: "avcenc",
defaults: ["avcenc_defaults"],
srcs: [
"avcenc/main.c",
"avcenc/psnr.c",
"avcenc/input.c",
"avcenc/output.c",
"avcenc/recon.c",
],
}
cc_binary {
name: "svcenc",
defaults: ["avcenc_defaults"],
local_include_dirs: [
"svcenc",
],
srcs: [
"svcenc/main.c",
"svcenc/input.c",
"svcenc/output.c",
"svcenc/psnr.c",
"svcenc/recon.c",
],
static_libs: [
"libsvcenc",
],
}
cc_binary {
name: "svcdec",
defaults: ["avcdec_defaults"],
local_include_dirs: [
"svcdec",
],
srcs: [
"svcdec/main.c",
],
static_libs: [
"libsvcdec",
],
}