Lines Matching refs:ABI
120 # $1: ABI name
128 local ABI=$1
133 local DSTDIR=$NDK_DIR/$GNUSTL_SUBDIR/libs/$ABI/$THUMB
137 prepare_target_build $ABI $PLATFORM $NDK_DIR
140 INSTALLDIR=$BUILDDIR/install-$ABI-$GCC_VERSION/$THUMB
141 BUILDDIR=$BUILDDIR/$LIBTYPE-${ABI}${THUMB}-$GCC_VERSION
145 ARCH=$(convert_abi_to_arch $ABI)
222 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$NDK_DIR/$SUPPORT_SUBDIR/libs/$ABI -landroid_support"
238 case $ABI in
242 if [ "$ABI" != "armeabi-v7a-hard" ]; then
243 CXXFLAGS=$CXXFLAGS" -mfloat-abi=softfp"
255 if [ "$ABI" = "armeabi" -o "$ABI" = "armeabi-v7a" -o "$ABI" = "armeabi-v7a-hard" ]; then
280 PROJECT="gnustl_$LIBTYPE gcc-$GCC_VERSION $ABI $THUMB"
305 fail_panic "Could not create $ABI $THUMB prebuilts for GNU libsupc++/libstdc++"
311 # $1: ABI
316 local ABI="$1"
318 local ARCH=$(convert_abi_to_arch $ABI)
323 local SDIR="$BUILDDIR/install-$ABI-$GCC_VERSION"
334 rm -rf "$DDIR/libs/$ABI" &&
335 mkdir -p "$DDIR/libs/$ABI/include"
337 # Copy the ABI-specific headers
338 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/bits" "$DDIR/libs/$ABI/include/bits"
341 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/32/bits" "$DDIR/libs/$ABI/include/32/bits"
342 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/x32/bits" "$DDIR/libs/$ABI/include/x32/bits"
345 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/32/mips-r1/bits" "$DDIR/libs/$ABI/include/32/mips-r1/bits"
346 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/32/mips-r2/bits" "$DDIR/libs/$ABI/include/32/mips-r2/bits"
347 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/32/mips-r6/bits" "$DDIR/libs/$ABI/include/32/mips-r6/bits"
350 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/mips-r2/bits" "$DDIR/libs/$ABI/include/mips-r2/bits"
351 copy_directory "$SDIR/include/c++/$GCC_VERSION/$PREFIX/mips-r6/bits" "$DDIR/libs/$ABI/include/mips-r6/bits"
356 if [ "$ABI" = "mips32r6" ]; then
363 # Copy the ABI-specific libraries
365 copy_file_list "$SDIR/$LDIR" "$DDIR/libs/$ABI" libsupc++.a libgnustl_shared.so
367 cp "$SDIR/$LDIR/libgnustl_shared.a" "$DDIR/libs/$ABI/libgnustl_static.a"
369 # for multilib we copy full set. Keep native libs in $ABI dir for compatibility.
370 # TODO: remove it in $ABI top directory
372 copy_file_list "$SDIR/lib" "$DDIR/libs/$ABI/lib" libsupc++.a libgnustl_shared.so
373 copy_file_list "$SDIR/lib64" "$DDIR/libs/$ABI/lib64" libsupc++.a libgnustl_shared.so
374 copy_file_list "$SDIR/libx32" "$DDIR/libs/$ABI/libx32" libsupc++.a libgnustl_shared.so
375 cp "$SDIR/lib/libgnustl_shared.a" "$DDIR/libs/$ABI/lib/libgnustl_static.a"
376 cp "$SDIR/lib64/libgnustl_shared.a" "$DDIR/libs/$ABI/lib64/libgnustl_static.a"
377 cp "$SDIR/libx32/libgnustl_shared.a" "$DDIR/libs/$ABI/libx32/libgnustl_static.a"
380 copy_file_list "$SDIR/lib" "$DDIR/libs/$ABI/lib" libsupc++.a libgnustl_shared.so
381 copy_file_list "$SDIR/libr2" "$DDIR/libs/$ABI/libr2" libsupc++.a libgnustl_shared.so
382 copy_file_list "$SDIR/libr6" "$DDIR/libs/$ABI/libr6" libsupc++.a libgnustl_shared.so
383 copy_file_list "$SDIR/lib64" "$DDIR/libs/$ABI/lib64" libsupc++.a libgnustl_shared.so
384 cp "$SDIR/lib/libgnustl_shared.a" "$DDIR/libs/$ABI/lib/libgnustl_static.a"
385 cp "$SDIR/libr2/libgnustl_shared.a" "$DDIR/libs/$ABI/libr2/libgnustl_static.a"
386 cp "$SDIR/libr6/libgnustl_shared.a" "$DDIR/libs/$ABI/libr6/libgnustl_static.a"
387 cp "$SDIR/lib64/libgnustl_shared.a" "$DDIR/libs/$ABI/lib64/libgnustl_static.a"
390 copy_file_list "$SDIR/lib" "$DDIR/libs/$ABI/lib" libsupc++.a libgnustl_shared.so
391 copy_file_list "$SDIR/libr2" "$DDIR/libs/$ABI/libr2" libsupc++.a libgnustl_shared.so
392 copy_file_list "$SDIR/libr6" "$DDIR/libs/$ABI/libr6" libsupc++.a libgnustl_shared.so
393 cp "$SDIR/lib/libgnustl_shared.a" "$DDIR/libs/$ABI/lib/libgnustl_static.a"
394 cp "$SDIR/libr2/libgnustl_shared.a" "$DDIR/libs/$ABI/libr2/libgnustl_static.a"
395 cp "$SDIR/libr6/libgnustl_shared.a" "$DDIR/libs/$ABI/libr6/libgnustl_static.a"
400 copy_file_list "$SDIR/thumb/$LDIR" "$DDIR/libs/$ABI/thumb" libsupc++.a libgnustl_shared.so
401 cp "$SDIR/thumb/$LDIR/libgnustl_shared.a" "$DDIR/libs/$ABI/thumb/libgnustl_static.a"
406 for ABI in $ABIS; do
407 ARCH=$(convert_abi_to_arch $ABI)
415 build_gnustl_for_abi $ABI "$BUILD_DIR" static $VERSION
416 build_gnustl_for_abi $ABI "$BUILD_DIR" shared $VERSION
418 if [ "$ABI" != "${ABI%%arm*}" -a "$ABI" = "${ABI%%64*}" ] ; then
419 build_gnustl_for_abi $ABI "$BUILD_DIR" static $VERSION thumb
420 build_gnustl_for_abi $ABI "$BUILD_DIR" shared $VERSION thumb
422 copy_gnustl_libs $ABI "$BUILD_DIR" $VERSION
430 for ABI in $ABIS; do
431 if [ ! -d "$NDK_DIR/$GNUSTL_SUBDIR/libs/$ABI" ]; then
434 case "$ABI" in
459 FILES="$FILES $GNUSTL_DIR/libs/$ABI/$LIB"
460 THUMB_FILE="$GNUSTL_DIR/libs/$ABI/thumb/$LIB"