Lines Matching +full:processor +full:- +full:intensive

3 # See NOTES-Android.md for details, and don't miss platform-specific
11 arm => "arm-linux-androideabi",
12 arm64 => "aarch64-linux-android",
13 mips => "mipsel-linux-android",
14 mips64 => "mips64el-linux-android",
15 x86 => "i686-linux-android",
16 x86_64 => "x86_64-linux-android",
33 my $is_standalone_toolchain = -f "$ndk/AndroidVersion.txt";
35 my $is_ndk = -f $ndk_src_props;
46 if (m|Pkg\.Revision\s*=\s*([0-9]+)|) {
56 $config{target} =~ m|[^-]+-([^-]+)$|; # split on dash
60 $sysroot =~ m|/android-([0-9]+)/arch-(\w+)/?$|;
67 # see if user passed -D__ANDROID_API__=N
69 if (m|__ANDROID_API__=([0-9]+)|) {
75 if (-d "$ndk/platforms") {
77 my @platforms = sort { $a =~ m/-([0-9]+)$/; my $aa = $1;
78 $b =~ m/-([0-9]+)$/; $aa <=> $1;
79 } glob("$ndk/platforms/android-$api");
80 die "no $ndk/platforms/android-$api" if ($#platforms < 0);
82 $sysroot = "@platforms[$#platforms]/arch-$arch";
83 $sysroot =~ m|/android-([0-9]+)/arch-$arch|;
99 die "no sysroot=$sysroot" if (length $sysroot && !-d $sysroot);
110 (my $tridefault = $triarch) =~ s/^arm-/$arm-/;
111 (my $tritools = $triarch) =~ s/(?:x|i6)86(_64)?-.*/x86$1/;
113 $cflags .= " -target $tridefault "
114 . "-gcc-toolchain \$($ndk_var)/toolchains"
115 . "/$tritools-4.9/prebuilt/$host";
118 $user{CC} = "$tridefault$api-clang";
121 if (which("llvm-ar") =~ m|^$ndk/.*/prebuilt/([^/]+)/|) {
122 $user{AR} = "llvm-ar";
133 if (which("$triarch-$cc") !~ m|^$ndk|) {
134 die "no NDK $triarch-$cc on \$PATH";
137 $user{CROSS_COMPILE} = "$triarch-";
141 if (which("$triarch-gcc") !~ m|^$ndk/.*/prebuilt/([^/]+)/|) {
142 die "no NDK $triarch-gcc on \$PATH";
144 $cflags .= " -mandroid";
145 $user{CROSS_COMPILE} = "$triarch-";
149 if (!-d "$sysroot/usr/include") {
151 die "no $incroot" if (!-d $incroot);
152 die "no $incroot/$triarch" if (!-d "$incroot/$triarch");
154 $cppflags = "-D__ANDROID_API__=$api";
155 $cppflags .= " -isystem \$($ndk_var)/$incroot/$triarch";
156 $cppflags .= " -isystem \$($ndk_var)/$incroot";
159 $sysroot = " --sysroot=\$($ndk_var)/$sysroot";
175 inherit_from => [ "linux-generic32" ],
178 # Special note about -pie. The underlying reason is that
179 # Lollipop refuses to run non-PIE. But what about older systems
180 # and NDKs? -fPIC was never problem, so the only concern is -pie.
187 cflags => add(sub { android_ndk()->{cflags} }),
188 cppflags => add(sub { android_ndk()->{cppflags} }),
189 cxxflags => add(sub { android_ndk()->{cflags} }),
190 bn_ops => sub { android_ndk()->{bn_ops} },
191 bin_cflags => "-fPIE",
192 bin_lflags => "-pie",
196 "android-arm" => {
201 # armv7-a/hard-float. However, it should be noted that OpenSSL's
204 # compiled with floating-point ABI other than default 'soft'.
208 # itself benefits from NEON or is floating-point intensive, then
213 # ./Configure android-arm -D__ARM_MAX_ARCH__=8
218 # Keep in mind that (just like with linux-armv4) we rely on
221 # -march and/or -mfloat-abi flags. NDK defaults to armv5te.
222 # Newer NDK versions reportedly require additional -latomic.
229 "android-arm64" => {
236 "android-mips" => {
242 "android-mips64" => {
244 # You are more than likely have to specify target processor
258 "android-x86" => {
260 CFLAGS => add(picker(release => "-fomit-frame-pointer")),
264 ex_libs => add(threads("-latomic")),
266 "android-x86_64" => {
276 "android-armeabi" => {
277 inherit_from => [ "android-arm" ],
282 "android64-aarch64" => {
283 inherit_from => [ "android-arm64" ],
285 "android64-x86_64" => {
286 inherit_from => [ "android-x86_64" ],
288 "android64-mips64" => {
289 inherit_from => [ "android-mips64" ],