1364468Scy#### Android... 2364468Scy# 3364468Scy# Heavily hacked 15-android.conf based on OpenSSL's config file of the same name. 4364468Scy# This 15-android.conf avoids compiler errors using NDK-r20. This 15-android.conf 5364468Scy# requires an environment set (sourced) using setenv-android.sh. 6364468Scy 7364468Scymy %targets = ( 8364468Scy "android" => { 9364468Scy inherit_from => [ "linux-generic32" ], 10364468Scy template => 1, 11364468Scy bin_cflags => add("-fPIE"), 12364468Scy bin_lflags => add("-pie"), 13364468Scy enable => [ ], 14364468Scy }, 15364468Scy 16364468Scy "android-arm" => { 17364468Scy inherit_from => [ "android", asm("armv4_asm") ], 18364468Scy bn_ops => [ "BN_LLONG", "RC4_CHAR" ], 19364468Scy }, 20364468Scy "android-arm64" => { 21364468Scy inherit_from => [ "android", asm("aarch64_asm") ], 22364468Scy bn_ops => [ "SIXTY_FOUR_BIT_LONG", "RC4_CHAR" ], 23364468Scy perlasm_scheme => "linux64", 24364468Scy }, 25364468Scy 26364468Scy "android-x86" => { 27364468Scy inherit_from => [ "android", asm("x86_asm") ], 28364468Scy cflags => add(picker(release => "-fomit-frame-pointer")), 29364468Scy bn_ops => [ "BN_LLONG", "RC4_INT" ], 30364468Scy perlasm_scheme => "android", 31364468Scy }, 32364468Scy "android-x86_64" => { 33364468Scy inherit_from => [ "android", asm("x86_64_asm") ], 34364468Scy bn_ops => [ "SIXTY_FOUR_BIT_LONG", "RC4_INT" ], 35364468Scy perlasm_scheme => "elf", 36364468Scy }, 37364468Scy); 38