-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # .idea/modules.xml # app/src/main/AndroidManifest.xml # app/src/main/java/com/duy/editor/TextEditorApplication.java # app/src/main/java/com/pdaxrom/cctools/CCToolsActivity.java # app/src/main/java/com/pdaxrom/editor/CodeEditor.java
- Loading branch information
Showing
10 changed files
with
104 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
package com.duy; | ||
|
||
import android.support.multidex.MultiDexApplication; | ||
|
||
|
||
public class CppIdeApplication extends MultiDexApplication { | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
BUILD_START=$(date +%s) | ||
|
||
WRKDIR=$PWD/tmp | ||
#WRKDIR=/mnt/nfs/Work/cctools-pro/tmp | ||
|
||
# | ||
# uncomment to build pie compiler | ||
# ------------------------------- | ||
export BUILD_PIE_COMPILER="yes" | ||
WRKDIR=${WRKDIR}-pie | ||
# ------------------------------- | ||
# | ||
|
||
SDKDIR=/home/duy/Android/Sdk | ||
NDKDIR=/home/duy/Android/android-ndk-r12b | ||
NDKSRC=/home/duy/github | ||
|
||
for d in binutils gcc gmp mpc mpfr cloog isl ppl llvm; do | ||
ln -sf ${NDKSRC}/${d} src/ | ||
done | ||
|
||
export PATH=~/bin/CodeSourcery/bin:$PATH | ||
|
||
#./build-shell-utils.sh ${PWD}/src arm-linux-androideabi ${WRKDIR}/arm-repo $NDKDIR $SDKDIR || exit 1 | ||
|
||
#./build-shell-utils.sh ${PWD}/src mipsel-linux-android ${WRKDIR}/mips-repo $NDKDIR $SDKDIR || exit 1 | ||
|
||
./build-shell-utils.sh ${PWD}/src i686-linux-android ${WRKDIR}/i686-repo $NDKDIR $SDKDIR || exit 1 | ||
|
||
#./build-shell-utils.sh ${PWD}/src aarch64-linux-android ${WRKDIR}/arm64-repo $NDKDIR $SDKDIR || exit 1 | ||
|
||
#./build-shell-utils.sh ${PWD}/src mips64el-linux-android ${WRKDIR}/mips64-repo $NDKDIR $SDKDIR || exit 1 | ||
|
||
#./build-shell-utils.sh ${PWD}/src x86_64-linux-android ${WRKDIR}/x86_64-repo $NDKDIR $SDKDIR || exit 1 | ||
|
||
test -e ${WRKDIR}/repo/armeabi-v7a || ln -sf armeabi ${WRKDIR}/repo/armeabi-v7a | ||
test -e ${WRKDIR}/repo/mips-r2 || ln -sf mips ${WRKDIR}/repo/mips-r2 | ||
|
||
for d in armeabi mips x86 arm64-v8a mips64 x86_64; do | ||
pushd . | ||
cp -f make_packages.sh ${WRKDIR}/repo/${d}/ | ||
cd ${WRKDIR}/repo/${d} | ||
./make_packages.sh | ||
popd | ||
done | ||
|
||
mkdir -p ${WRKDIR}/repo/src | ||
|
||
find `find src -type d` -type f -exec cp -f {} ${WRKDIR}/repo/src/ \; | ||
|
||
BUILD_END=$(date +%s) | ||
|
||
TOTAL_TIME=$(($BUILD_END - $BUILD_START)) | ||
|
||
echo | ||
echo | ||
echo "Build time: $(date -u -d @$TOTAL_TIME +%T)" | ||
echo | ||
echo "DONE!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export LD_LIBRARY_PATH='/data/data/com.pdaxrom.cctools/root/cctools/lib:/system/lib' | ||
export PATH='/data/data/com.pdaxrom.cctools/root/cctools/sbin:/data/data/com.pdaxrom.cctools/root/cctools/bin:/system/xbin:/system/bin:/data/data/com.pdaxrom.cctools/root/cctools/bin:/data/data/com.pdaxrom.cctools/root/cctools/sbin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin' | ||
export TEMPDIR='/data/data/com.pdaxrom.cctools/root/cctools/home/tmp' | ||
export LD_LIBRARY_PATH='/data/data/${APPLICATION_ID}/root/cctools/lib:/system/lib' | ||
export PATH='/data/data/${APPLICATION_ID}/root/cctools/sbin:/data/data/${APPLICATION_ID}/root/cctools/bin:/system/xbin:/system/bin:/data/data/${APPLICATION_ID}/root/cctools/bin:/data/data/${APPLICATION_ID}/root/cctools/sbin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin' | ||
export TEMPDIR='/data/data/${APPLICATION_ID}/root/cctools/home/tmp' | ||
export TERM='xterm' | ||
export TMPDIR='/data/data/com.pdaxrom.cctools/root/cctools/home/tmp' | ||
export TMPDIR='/data/data/${APPLICATION_ID}/root/cctools/home/tmp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters