Add support for x86_sse3 and x86_sse4 arch sections

Change-Id: I26b642808c66bc4562b3079edbe482febf9b2435
This commit is contained in:
Colin Cross 2015-07-09 17:56:26 -07:00
parent 463a90e587
commit 01432f6b11
2 changed files with 6 additions and 0 deletions

View file

@ -126,6 +126,8 @@ var cpuVariantConditionals = map[string]struct {
"mips_rev6": {"ifdef ARCH_MIPS_REV6", "mips", false},
"atom": {"ifeq ($(TARGET_ARCH_VARIANT),atom)", "$(TARGET_ARCH)", true},
"silvermont": {"ifeq ($(TARGET_ARCH_VARIANT),silvermont)", "$(TARGET_ARCH)", true},
"x86_sse3": {"ifeq ($(ARCH_X86_HAVE_SSE3),true)", "x86", true},
"x86_sse4": {"ifeq ($(ARCH_X86_HAVE_SSE4),true)", "x86", true},
}
var hostScopedPropertyConditionals = map[string]string{

View file

@ -135,6 +135,10 @@ type archProperties struct {
// Mips arch variants
Mips_rev6 interface{} `blueprint:"filter(android:\"arch_variant\")"`
// X86 arch variants
X86_sse3 interface{} `blueprint:"filter(android:\"arch_variant\")"`
X86_sse4 interface{} `blueprint:"filter(android:\"arch_variant\")"`
// X86 cpu variants
Atom interface{} `blueprint:"filter(android:\"arch_variant\")"`
Silvermont interface{} `blueprint:"filter(android:\"arch_variant\")"`