source:
issm/oecreview/Archive/12321-12677/ISSM-12578-12579.diff@
12679
Last change on this file since 12679 was 12679, checked in by , 13 years ago | |
---|---|
File size: 12.2 KB |
-
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/android/android-sdk/install.sh
1 1 #This installs the Android SDK (Software Development Kit) 2 2 #which is needed for the compilation of the Java project. 3 source $ANDROID_DIR/android_variables.sh 3 4 4 5 step=1; 5 6 … … 10 11 #4: cleanup 11 12 12 13 present_dir=`pwd`; 13 default_droid="Android-4.0"14 14 sd_card="issm-sdcard" 15 15 16 ((tmp=$1- 3)) 17 18 if [[ $tmp -ge "-2" && $tmp -le "3" ]]; then 19 step=$1 20 else 21 echo "Using default step: " $step 22 fi 23 16 24 if [[ $step == "1" ]]; then 17 25 18 26 #Cleanup the install 19 27 rm -rf install-sdk install-ant 20 28 21 29 #Download from ISSM server 22 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-sdk_r 18-macosx.zip' 'android-sdk_r18-macosx.zip'30 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-sdk_r'$sdk_rev'-macosx.zip' 'android-sdk_r'${sdk_rev}'-macosx.zip' 23 31 24 32 # Install Android SDK and NDK. 25 unzip -o android-sdk_r18-macosx.zip 26 unzip -o apache-ant-1.8.2-bin.zip 33 unzip -o android-sdk_r${sdk_rev}-macosx.zip 27 34 28 35 #Move to install 29 36 mv -f android-sdk-macosx install-sdk 30 mv -f apache-ant-1.8.2 install-ant31 37 32 38 #Post_install configuration: 33 39 #We need specific settings for specific platforms, for the SDK to … … 35 41 36 42 #For now, we need to install: 37 43 #android sdk platform tools 38 #and a specific android api: API 1 5 and API 1439 #Note: API 1 5 and 14 correspond to Android4.0.3 and 4.0 respectively.44 #and a specific android api: API 16, API 15 and API 14 45 #Note: API 16, API 15 and 14 correspond to Android 4.1, 4.0.3 and 4.0 respectively. 40 46 41 cd install-sdk/tools/ && source ./android update sdk -t platform-tool s,android-15,android-14,system-image --no-ui47 cd install-sdk/tools/ && source ./android update sdk -t platform-tool,${api_levels},system-image --no-ui 42 48 43 49 fi 44 50 -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/android/android_variables.sh
1 sdk_rev=20 2 ndk_rev=8 3 api_levels="android-14,android-15,android-16" 4 default_droid="android-4.1" 5 toolchain_path=${ANDROID_DIR}"/arm-linux-"${default_droid}"/bin/arm-linux-androideabi" -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/android/android-ndk/install.sh
2 2 #which is needed for the compilation of C/C++ code into the 3 3 #native architecture of the Android device. 4 4 5 #The android-ndk-r 7b-darwin-x86.tar.bz2 dummy.tar.bz2 file was downloaded5 #The android-ndk-r8-darwin-x86.tar.bz2 ndk.tar.bz2 file was downloaded 6 6 #from the android developer website: 7 source $ANDROID_DIR/android_variables.sh 7 8 8 9 #Cleanup the install 9 10 rm -rf install 10 rm -rf $ANDROID_DIR/arm-linux-android- 4.011 rm -rf $ANDROID_DIR/arm-linux-android-${default_droid} 11 12 12 13 #Download from ISSM server 13 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-ndk-r 7b-darwin-x86.tar.bz2' 'dummy.tar.bz2'14 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/android-ndk-r'${ndk_rev}'-darwin-x86.tar.bz2' 'ndk.tar.bz2' 14 15 15 16 # Install Android SDK and NDK. 16 bunzip2 dummy.tar.bz217 tar -xvf dummy.tar18 rm -rf dummy.tar dummy.tar.bz217 bunzip2 ndk.tar.bz2 18 tar -xvf ndk.tar 19 rm -rf ndk.tar ndk.tar.bz2 19 20 20 21 #Move to install 21 mv android-ndk-r 7binstall22 mv android-ndk-r${ndk_rev} install 22 23 23 24 #Create Standalone Development Directory 24 $ANDROID_NDK_DIR/build/tools/make-standalone-toolchain.sh --platform=android-5 --install-dir=$ANDROID_DIR/arm-linux-android-4.0 25 #Note: API-14 corresponds to Android 4.0 although we are 26 #calling our toolchain 4.1 to agree with our device. 27 $ANDROID_NDK_DIR/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=$ANDROID_DIR/arm-linux-${default_droid} -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/gsl/install-android-4.0.sh
1 #!/bin/bash2 3 #Some cleanup4 rm -rf src install gsl-1.155 mkdir src install6 7 #Download from ISSM server8 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/gsl-1.15.tar.gz' 'gsl-1.15.tar.gz'9 10 #Untar11 tar -zxvf gsl-1.15.tar.gz12 13 #Move gsl into src directory14 mv gsl-1.15/* src15 rm -rf gsl-1.1516 17 #Configure gsl18 cd src19 20 ./configure \21 CC=$ANDROID_DIR/arm-linux-android-4.0/bin/arm-linux-androideabi-gcc\22 LD=$ANDROID_DIR/arm-linux-android-4.0/bin/arm-linux-androideabi-ld\23 AR=$ANDROID_DIR/arm-linux-android-4.0/bin/arm-linux-androideabi-ar\24 RANLIB=$ANDROID_DIR/arm-linux-android-4.0/bin/arm-linux-androideabi-ranlib\25 NM=$ANDROID_DIR/arm-linux-android-4.0/bin/arm-linux-androideabi-nm\26 OBJ_EXT=o\27 LIB_EXT=a\28 --host="arm-linux"\29 --prefix="$ISSM_DIR/externalpackages/gsl/install"30 31 #Compile gsl32 if [ -z $1 ]; then33 make34 else35 make -j $136 fi37 38 make install -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/gsl/install-android.sh
1 #!/bin/bash 2 source $ANDROID_DIR/android_variables.sh 3 4 #Some cleanup 5 rm -rf src install gsl-1.15 6 mkdir src install 7 8 #Download from ISSM server 9 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/gsl-1.15.tar.gz' 'gsl-1.15.tar.gz' 10 11 #Untar 12 tar -zxvf gsl-1.15.tar.gz 13 14 #Move gsl into src directory 15 mv gsl-1.15/* src 16 rm -rf gsl-1.15 17 18 #Configure gsl 19 cd src 20 21 ./configure \ 22 CC=${toolchain_path}-gcc\ 23 LD=${toolchain_path}-ld\ 24 AR=${toolchain_path}-ar\ 25 RANLIB=${toolchain_path}-ranlib\ 26 NM=${toolchain_path}-nm\ 27 OBJ_EXT=o\ 28 LIB_EXT=a\ 29 --host="arm-linux"\ 30 --prefix="$ISSM_DIR/externalpackages/gsl/install" 31 32 #Compile gsl 33 if [ -z $1 ]; then 34 make 35 else 36 make -j $1 37 fi 38 39 make install -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/triangle/install-android-4.0.sh
Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/gsl/install-android.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +*
1 #!/bin/bash2 3 #use matlab?4 matlab=05 6 #Some cleanup7 rm -rf install triangle8 mkdir install9 10 #Download from ISSM server11 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/triangle.zip' 'triangle.zip'12 13 #Untar14 cd install15 cp ../triangle.zip ./16 unzip triangle.zip17 18 #copy new makefile19 cp ../configs/android/android-4.0/configure.make ./20 cp ../makefile ./21 22 #Patch triangle.c23 if [[ $matlab == "1" ]];then24 patch triangle.c ../triangle.c.patch.matlab25 else26 patch triangle.c ../triangle.c.patch.python27 fi28 29 #Compile triangle30 make31 32 #Patch triangle.h33 patch triangle.h ../triangle.h.patch -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/triangle/configs/android/android-4.0/configure.make
1 # This makefile configures build process to cross-compile to the android platform.2 # The binary tools referenced below are specifically configuered to target armeabi-v7a.3 # Furthermore, the compilers (which are simply wrappers around GNU GCC) are set to4 # produce binaries that are EABI complient.5 #6 # Note that the AAPCS standard defines 'EABI' as a moniker used to specify7 # a _family_ of similar but distinct ABIs. Android follows the little-endian8 # ARM GNU/Linux ABI as documented in the following document:9 #10 # http://www.codesourcery.com/gnu_toolchains/arm/arm_gnu_linux_abi.pdf11 12 ANDROID_BIN=$(ISSM_TIER)/src/android/tmp/android-14-toolchain/bin13 CC=$(ANDROID_DIR)/arm-linux-android-4.0/bin/arm-linux-androideabi-gcc14 AR=$(ANDROID_DIR)/arm-linux-android-4.0/bin/arm-linux-androideabi-ar15 RANLIB=$(ANDROID_DIR)/arm-linux-android-4.0/bin/arm-linux-androideabi-ranlib16 CSWITCHES = $(CFLAGS)17 TRILIBDEFS = -DTRILIBRARY18 OBJ_EXT=o19 LIB_EXT=a -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/triangle/configs/android/configure.make
1 # This makefile configures build process to cross-compile to the android platform. 2 # The binary tools referenced below are specifically configuered to target armeabi-v7a. 3 # Furthermore, the compilers (which are simply wrappers around GNU GCC) are set to 4 # produce binaries that are EABI complient. 5 # 6 # Note that the AAPCS standard defines 'EABI' as a moniker used to specify 7 # a _family_ of similar but distinct ABIs. Android follows the little-endian 8 # ARM GNU/Linux ABI as documented in the following document: 9 # 10 # http://www.codesourcery.com/gnu_toolchains/arm/arm_gnu_linux_abi.pdf 11 CC=${toolchain_path}-gcc 12 AR=${toolchain_path}-ar 13 RANLIB=${toolchain_path}-ranlib 14 CSWITCHES = $(CFLAGS) 15 TRILIBDEFS = -DTRILIBRARY 16 OBJ_EXT=o 17 LIB_EXT=a -
TabularUnified u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/triangle/install-android.sh
1 #!/bin/bash 2 source $ANDROID_DIR/android_variables.sh 3 export toolchain_path 4 5 #use matlab? 6 matlab=0 7 8 #Some cleanup 9 rm -rf install triangle 10 mkdir install 11 12 #Download from ISSM server 13 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/triangle.zip' 'triangle.zip' 14 15 #Untar 16 cd install 17 cp ../triangle.zip ./ 18 unzip triangle.zip 19 20 #copy new makefile 21 cp ../configs//android/configure.make ./ 22 cp ../makefile ./ 23 24 #Patch triangle.c 25 if [[ $matlab == "1" ]];then 26 patch triangle.c ../triangle.c.patch.matlab 27 else 28 patch triangle.c ../triangle.c.patch.python 29 fi 30 31 #Compile triangle 32 make 33 34 #Patch triangle.h 35 patch triangle.h ../triangle.h.patch
Note:
See TracBrowser
for help on using the repository browser.