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
accdf389
Commit
accdf389
authored
Dec 03, 2017
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add goBuild task
parent
da47f7d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
3 deletions
+64
-3
.travis.yml
.travis.yml
+46
-0
core/build.gradle
core/build.gradle
+11
-0
core/src/overture/make.bash
core/src/overture/make.bash
+3
-3
local.properties.example
local.properties.example
+4
-0
No files found.
.travis.yml
0 → 100644
View file @
accdf389
language
:
android
jdk
:
-
oraclejdk8
env
:
global
:
-
NDK_VERSION=r16
-
NDK_CCACHE=ccache
-
GOROOT_BOOTSTRAP=$GOROOT
-
ANDROID_NDK_HOME=$HOME/.android/android-ndk-${NDK_VERSION}
-
PATH=${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}
scala
:
-
2.11.11
before_cache
:
-
find $HOME/.sbt -name "*.lock" | xargs rm
-
find $HOME/.ivy2 -name "*.lock" | xargs rm
cache
:
directories
:
-
$HOME/.ivy2
-
$HOME/.sbt
android
:
components
:
-
tools
-
build-tools-27.0.0
-
extra-android-m2repository
-
extra-google-m2repository
install
:
-
>
if [ ! -d "$ANDROID_NDK_HOME" ]; then
mkdir -p $ANDROID_NDK_HOME;
pushd $HOME/.android;
export ARCH=`uname -m`;
wget -q http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-${ARCH}.zip;
unzip -q android-ndk-${NDK_VERSION}-linux-${ARCH}.zip;
popd;
fi
-
>
script
:
-
./gradlew assembleDebug
core/build.gradle
View file @
accdf389
...
...
@@ -32,6 +32,17 @@ android {
}
}
task
goBuild
(
type:
Exec
)
{
executable
"sh"
args
"-c"
,
"src/overture/make.bash "
+
minSdkVersion
}
tasks
.
whenTaskAdded
{
task
->
if
(
task
.
name
==
'generateJsonModelDebug'
)
{
task
.
dependsOn
(
goBuild
)
}
}
dependencies
{
api
project
(
':plugin'
)
testImplementation
"junit:junit:$junitVersion"
...
...
core/src/overture/make.bash
View file @
accdf389
...
...
@@ -26,19 +26,19 @@ ANDROID_X86_STRIP=$ANDROID_X86_TOOLCHAIN/bin/i686-linux-android-strip
try
mkdir
-p
$DEPS
$TARGET
/armeabi-v7a
$TARGET
/x86
$TARGET
/arm64-v8a
if
[
!
-
d
"
$ANDROID_ARM_TOOLCHAIN
"
]
;
then
if
[
!
-
f
"
$ANDROID_ARM_CC
"
]
;
then
echo
"Make standalone toolchain for ARM arch"
$ANDROID_NDK_HOME
/build/tools/make_standalone_toolchain.py
--arch
arm
\
--api
$MIN_API
--install-dir
$ANDROID_ARM_TOOLCHAIN
fi
if
[
!
-
d
"
$ANDROID_ARM64_TOOLCHAIN
"
]
;
then
if
[
!
-
f
"
$ANDROID_ARM64_CC
"
]
;
then
echo
"Make standalone toolchain for ARM64 arch"
$ANDROID_NDK_HOME
/build/tools/make_standalone_toolchain.py
--arch
arm64
\
--api
21
--install-dir
$ANDROID_ARM64_TOOLCHAIN
fi
if
[
!
-
d
"
$ANDROID_X86_TOOLCHAIN
"
]
;
then
if
[
!
-
f
"
$ANDROID_X86_CC
"
]
;
then
echo
"Make standalone toolchain for X86 arch"
$ANDROID_NDK_HOME
/build/tools/make_standalone_toolchain.py
--arch
x86
\
--api
$MIN_API
--install-dir
$ANDROID_X86_TOOLCHAIN
...
...
local.properties.example
0 → 100644
View file @
accdf389
storeFile=/path/to/your/keystore
storePassword=passwd
keyPassword=passwd
keyAlias=alias
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