aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-01-03 18:55:52 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-01-03 18:55:52 +0000
commitc3649bb6f07a467d45b86ef37501c5b573e40e93 (patch)
tree287331fd16963259c3966714feb0126e25b9ab87
parent1c062ca8703625b6495ed039f907789ffbf131b3 (diff)
parentbded9f1fc6f6697e27e1e5ab1e0984a13609bea6 (diff)
downloadlibvpx-c3649bb6f07a467d45b86ef37501c5b573e40e93.tar.gz
Merge "Re-enable building libvpx on the host, but not for mac"
-rw-r--r--Android.bp13
-rw-r--r--Android.bp.in13
2 files changed, 26 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index af176c93b..70e113c07 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1105,8 +1105,15 @@ libvpx_x86_64_asm_srcs = [
cc_library {
name: "libvpx",
vendor_available: true,
+ host_supported: true,
version_script: "exports.lds",
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
+
arch: {
// configured to require the neon unit
arm: {
@@ -1127,11 +1134,17 @@ cc_library {
x86: {
srcs: libvpx_x86_c_srcs + libvpx_x86_asm_srcs,
local_include_dirs: ["config/x86"],
+ cflags: [
+ "-mssse3",
+ ],
},
x86_64: {
srcs: libvpx_x86_64_c_srcs + libvpx_x86_64_asm_srcs,
local_include_dirs: ["config/x86_64"],
+ cflags: [
+ "-mssse3",
+ ],
},
},
diff --git a/Android.bp.in b/Android.bp.in
index 7cead74e7..91a0ec645 100644
--- a/Android.bp.in
+++ b/Android.bp.in
@@ -1,8 +1,15 @@
cc_library {
name: "libvpx",
vendor_available: true,
+ host_supported: true,
version_script: "exports.lds",
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
+
arch: {
// configured to require the neon unit
arm: {
@@ -23,11 +30,17 @@ cc_library {
x86: {
srcs: libvpx_x86_c_srcs + libvpx_x86_asm_srcs,
local_include_dirs: ["config/x86"],
+ cflags: [
+ "-mssse3",
+ ],
},
x86_64: {
srcs: libvpx_x86_64_c_srcs + libvpx_x86_64_asm_srcs,
local_include_dirs: ["config/x86_64"],
+ cflags: [
+ "-mssse3",
+ ],
},
},