libavc/test/Android.bp
Elliott Hughes 724246bc74 Fix macOS build.
There's no <malloc.h> on Darwin. Normally I'd say "prefer <stdlib.h>",
but in this case it looks like the code actually uses memalign. There
is no memalign on Darwin. You'll need to switch to posix_memalign if
you actually care about building this.

For now, the easiest is to just exclude macOS.

Test: treehugger
Change-Id: Id8a11cd141f5c4bd30ce95b61ac64759e17732fc
2019-09-08 13:20:07 -07:00

50 lines
907 B
Text

cc_test {
name: "avcdec",
gtest: false,
host_supported:true,
cflags: [
"-DPROFILE_ENABLE",
"-DARM",
"-DMD5_DISABLE",
"-fPIC",
"-Wall",
"-Werror",
],
local_include_dirs: [
"decoder/",
],
srcs: ["decoder/main.c"],
static_libs: ["libavcdec"],
shared_libs: ["liblog"],
target: {
darwin: {
enabled: false,
},
},
}
cc_test {
name: "avcenc",
gtest: false,
cflags: [
"-DPROFILE_ENABLE",
"-DARM",
"-DMD5_DISABLE",
"-fPIC",
"-Wall",
"-Werror",
"-Wno-unused-variable",
],
local_include_dirs: [
"encoder/",
],
srcs: [
"encoder/main.c",
"encoder/psnr.c",
"encoder/input.c",
"encoder/output.c",
"encoder/recon.c",
],
static_libs: ["libavcenc"],
}