Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
92ffb357
Commit
92ffb357
authored
Oct 26, 2014
by
Max Lv
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #134 from zhaofengli/master
Fix NDK build
parents
f6841848
4beff01a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
.travis.yml
.travis.yml
+3
-7
README.md
README.md
+1
-1
build-ndk.sh
build-ndk.sh
+2
-2
No files found.
.travis.yml
View file @
92ffb357
...
@@ -3,19 +3,15 @@ scala:
...
@@ -3,19 +3,15 @@ scala:
-
2.10.4
-
2.10.4
before_install
:
before_install
:
-
sudo apt-get update
-
sudo apt-get update
-
sudo apt-get install libc6-dev-i386
install
:
-
sudo apt-get install lib32ncurses5-dev
-
sudo apt-get install -y libc6-dev-i386 lib32ncurses5-dev libx11-dev g++-multilib lib32z1-dev ccache
-
sudo apt-get install libx11-dev
-
sudo apt-get install g++-multilib
-
sudo apt-get install lib32z1-dev
-
sudo apt-get install ccache
-
export NDK_CCACHE=ccache
-
export NDK_CCACHE=ccache
-
export ARCH=`uname -m`
-
export ARCH=`uname -m`
-
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
-
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
-
tar xf android-sdk_r23.0.2-linux.tgz
-
tar xf android-sdk_r23.0.2-linux.tgz
-
wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-${ARCH}.tar.bz2
-
wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-${ARCH}.tar.bz2
-
tar xf android-ndk-r9d-linux-${ARCH}.tar.bz2
-
tar xf android-ndk-r9d-linux-${ARCH}.tar.bz2
-
export ANDROID_NDK=`pwd`/android-ndk-r9d
-
export ANDROID_NDK
_HOME
=`pwd`/android-ndk-r9d
-
export ANDROID_HOME=`pwd`/android-sdk-linux
-
export ANDROID_HOME=`pwd`/android-sdk-linux
-
export PATH=${PATH}:${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
-
export PATH=${PATH}:${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
-
echo "y" | android update sdk --filter tools,platform-tools,build-tools-21.0.1,android-21,extra-google-m2repository --no-ui --no-https -a
-
echo "y" | android update sdk --filter tools,platform-tools,build-tools-21.0.1,android-21,extra-google-m2repository --no-ui --no-https -a
...
...
README.md
View file @
92ffb357
...
@@ -39,7 +39,7 @@ Help to translate shadowsocks: http://crowdin.net/project/shadowsocks/invite
...
@@ -39,7 +39,7 @@ Help to translate shadowsocks: http://crowdin.net/project/shadowsocks/invite
#### BUILD on Mac OS X (with HomeBrew)
#### BUILD on Mac OS X (with HomeBrew)
*
Install Android SDK and NDK by run
`brew install android-ndk android-sdk`
*
Install Android SDK and NDK by run
`brew install android-ndk android-sdk`
*
Add
`export ANDROID_HOME=/usr/local/Cellar/android-sdk/$version`
to your .bashrc , then reopen the shell to loa
t
it.
*
Add
`export ANDROID_HOME=/usr/local/Cellar/android-sdk/$version`
to your .bashrc , then reopen the shell to loa
d
it.
*
Run
`echo "y" | android update sdk --filter tools,platform-tools,build-tools-19.0.3,android-19,extra-google-m2repository,extra-android-m2repository --no-ui --no-https -a`
*
Run
`echo "y" | android update sdk --filter tools,platform-tools,build-tools-19.0.3,android-19,extra-google-m2repository,extra-android-m2repository --no-ui --no-https -a`
*
Create your key following the instructions at http://developer.android.com/guide/publishing/app-signing.html#cert
*
Create your key following the instructions at http://developer.android.com/guide/publishing/app-signing.html#cert
*
Put your key in ~/.keystore
*
Put your key in ~/.keystore
...
...
build-ndk.sh
View file @
92ffb357
...
@@ -5,8 +5,8 @@ function try () {
...
@@ -5,8 +5,8 @@ function try () {
}
}
# Build
# Build
try ndk-build clean
try
$ANDROID_NDK_HOME
/
ndk-build clean
try ndk-build
try
$ANDROID_NDK_HOME
/
ndk-build
# copy executables
# copy executables
rm
-rf
src/main/assets/armeabi-v7a
rm
-rf
src/main/assets/armeabi-v7a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment