Lines Matching refs:PLATFORMS
17 # gen-platforms.sh
20 # the NDK itself. It will populate DST ($NDK/platforms by default)
21 # with the content of SRC ($NDK/../development/ndk/platforms/ by default).
42 # Return the list of platform supported from $1/platforms
48 (cd "$1/platforms" && ls -d android-*) | sed -e "s!android-!!" | sort -g | tr '\n' ' '
58 PLATFORMS=`extract_platforms_from "$SRCDIR"`
142 echo " --platform=<list> List of API levels [$PLATFORMS]"
147 echo " --package-dir=<path> Package platforms archive in specific path."
163 if [ ! -d "$SRCDIR/platforms/android-3" ] ; then
165 echo "Please make sure it contains platforms/android-3 etc..."
174 PLATFORMS=$(commas_to_spaces $OPTION_PLATFORM)
177 PLATFORMS=`extract_platforms_from "$SRCDIR"`
178 log "Using platforms: $PLATFORMS"
182 PLATFORMS=$(echo $PLATFORMS | tr ' ' '\n' | sed -e 's!^android-!!g' | tr '\n' ' ')
214 log "Checking source platforms."
215 for PLATFORM in $PLATFORMS; do
216 DIR="$SRCDIR/platforms/android-$PLATFORM"
231 for PLATFORM in $PLATFORMS; do
233 DIR="$SRCDIR/platforms/android-$PLATFORM/arch-$ARCH"
557 local HEADER="platforms/android-$API/arch-$ARCH/usr/include/android/api-level.h"
606 rm -rf $DSTDIR/platforms && mkdir -p $DSTDIR/platforms
611 for PLATFORM in $PLATFORMS; do
612 PLATFORM_DST=platforms/android-$PLATFORM # Relative to $DSTDIR
624 log "Populating \$DST/platforms/android-$PLATFORM/arch-$ARCH"
643 for OLD_PLATFORM in $PLATFORMS; do
647 copy_src_directory platforms/android-$OLD_PLATFORM/include \
683 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/lib "-m32"
684 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/lib64 "-m64"
685 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/libx32 "-mx32"
687 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/lib
730 for PLATFORM in $PLATFORMS; do
733 copy_src_directory platforms/android-$PLATFORM/samples samples samples
744 ARCHIVE=platforms.tar.bz2
746 pack_archive "$PACKAGE_DIR/$ARCHIVE" "$DSTDIR" "platforms"
747 fail_panic "Could not package platforms"