Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(62)

Side by Side Diff: android/run-checks.sh

Issue 438002: Fix the tools and processor build for Android (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # Copyright (c) 2012 Google Inc. 2 # Copyright (c) 2012 Google Inc.
3 # All rights reserved. 3 # All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 # Extract architecture name from ABI 457 # Extract architecture name from ABI
458 case $ABI in 458 case $ABI in
459 armeabi*) ARCH=arm;; 459 armeabi*) ARCH=arm;;
460 *) ARCH=$ABI;; 460 *) ARCH=$ABI;;
461 esac 461 esac
462 462
463 # Extract GNU configuration name 463 # Extract GNU configuration name
464 case $ARCH in 464 case $ARCH in
465 arm) GNU_CONFIG=arm-linux-androideabi;; 465 arm) GNU_CONFIG=arm-linux-androideabi;;
466 x86) GNU_CONFIG=i686-linux-android;;
466 *) GNU_CONFIG="$ARCH-linux-android";; 467 *) GNU_CONFIG="$ARCH-linux-android";;
467 esac 468 esac
468 469
469 # Generate standalone NDK toolchain installation 470 # Generate standalone NDK toolchain installation
470 NDK_STANDALONE="$TMPDIR/ndk-$ARCH-toolchain" 471 NDK_STANDALONE="$TMPDIR/ndk-$ARCH-toolchain"
471 echo "Generating NDK standalone toolchain installation" 472 echo "Generating NDK standalone toolchain installation"
472 mkdir -p "$NDK_STANDALONE" 473 mkdir -p "$NDK_STANDALONE"
473 run "$NDK_DIR/build/tools/make-standalone-toolchain.sh" \ 474 run "$NDK_DIR/build/tools/make-standalone-toolchain.sh" \
474 --arch="$ARCH" \ 475 --arch="$ARCH" \
475 --install-dir="$NDK_STANDALONE" 476 --install-dir="$NDK_STANDALONE"
476 fail_panic "Can't generate standalone NDK toolchain installation!" 477 fail_panic "Can't generate standalone NDK toolchain installation!"
477 478
478 # Rebuild the client library with the auto-tools base build system. 479 # Rebuild the client library, processor and tools with the auto-tools based
479 # Even though it's not going to be used, this checks that this still 480 # build system. Even though it's not going to be used, this checks that this
480 # works correctly. 481 # still works correctly.
481 echo "Building client Android library with configure/make" 482 echo "Building Android binaries with configure/make"
482 TMPTARGET="$TMPDIR/target-local" 483 TMPTARGET="$TMPDIR/target-local"
483 ( 484 (
484 PATH="$NDK_STANDALONE/bin:$PATH" 485 PATH="$NDK_STANDALONE/bin:$PATH"
485 run mkdir "$TMPTARGET" && 486 run mkdir "$TMPTARGET" &&
486 run mkdir "$TMPDIR"/build-target && 487 run mkdir "$TMPDIR"/build-target &&
487 run cd "$TMPDIR"/build-target && 488 run cd "$TMPDIR"/build-target &&
488 run2 "$PROGDIR"/../configure --prefix="$TMPTARGET" \ 489 run2 "$PROGDIR"/../configure --prefix="$TMPTARGET" \
489 --host="$GNU_CONFIG" \ 490 --host="$GNU_CONFIG" &&
Mark Mentovai 2012/08/21 16:12:28 Alignment (existing problem, but as long as you’re
digit 2012/08/21 16:53:50 Done.
490 --disable-tools \
491 --disable-processor &&
492 run2 make -j$NUM_JOBS install 491 run2 make -j$NUM_JOBS install
493 ) 492 )
494 fail_panic "Could not rebuild Android client library!" 493 fail_panic "Could not rebuild Android binaries!"
495 494
496 # Copy sources to temporary directory 495 # Copy sources to temporary directory
497 PROJECT_DIR=$TMPDIR/project 496 PROJECT_DIR=$TMPDIR/project
498 dump "Copying test program sources to: $PROJECT_DIR" 497 dump "Copying test program sources to: $PROJECT_DIR"
499 run cp -r "$TESTAPP_DIR" "$PROJECT_DIR" && 498 run cp -r "$TESTAPP_DIR" "$PROJECT_DIR" &&
500 run rm -rf "$PROJECT_DIR/obj" && 499 run rm -rf "$PROJECT_DIR/obj" &&
501 run rm -rf "$PROJECT_DIR/libs" 500 run rm -rf "$PROJECT_DIR/libs"
502 fail_panic "Could not copy test program sources to: $PROJECT_DIR" 501 fail_panic "Could not copy test program sources to: $PROJECT_DIR"
503 502
504 # Build the test program with ndk-build. 503 # Build the test program with ndk-build.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 638
640 if [ "$BAD_LOCATIONS" ]; then 639 if [ "$BAD_LOCATIONS" ]; then
641 dump "ERROR: Generated stack trace doesn't contain valid source locations:" 640 dump "ERROR: Generated stack trace doesn't contain valid source locations:"
642 cat "$BUILD_LOG" 641 cat "$BUILD_LOG"
643 echo "Bad locations are: $BAD_LOCATIONS" 642 echo "Bad locations are: $BAD_LOCATIONS"
644 clean_exit 1 643 clean_exit 1
645 fi 644 fi
646 645
647 echo "All clear! Congratulations." 646 echo "All clear! Congratulations."
648 clean_exit 0 647 clean_exit 0
OLDNEW
« no previous file with comments | « no previous file | src/client/linux/handler/exception_handler.cc » ('j') | src/tools/linux/md2core/minidump-2-core.cc » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted