Skip to content

Commit 90b458d

Browse files
author
Chunwei
committed
Merge branch 'zhenghuihuang/demo' into 'incubate/lite'
Add build.gradle for QA See merge request inference/paddlelite!92
2 parents a5952cf + 5e236b5 commit 90b458d

File tree

6 files changed

+66
-2
lines changed

6 files changed

+66
-2
lines changed

.gitlab-ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ before_script:
1212
# merge the latest code
1313
- git config --global user.email "you@example.com"
1414
- git config --global user.name "Your Name"
15+
- git reset --hard HEAD # ignore any local changes in CI node.
1516
- git fetch origin incubate/lite
17+
- git status -s
18+
- git branch
1619
- git merge --no-ff origin/incubate/lite
20+
#- git checkout origin/incubate/lite && git log -1 &&
1721

1822

1923
image: $SERVER_LITE_DOCKER_IMAGE

paddle/fluid/lite/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ file(WRITE ${offline_lib_registry_file} "") # clean
101101
set(__lite_cc_files "" ; "")
102102
set(__lite_cc_files "${CMAKE_BINARY_DIR}/lite_cc_files.txt")
103103
file(WRITE ${__lite_cc_files} "") # clean
104+
105+
104106
# cc_library with branch support.
105107
# The branches:
106108
# X86_DEPS: works only when LITE_WITH_X86 is ON.

paddle/fluid/lite/demo/java/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## 手动编译(给测试人员需要更新 demo 模型或 .so 库可阅读)
1414

15-
###编译:
15+
### 编译:
1616
首先在PaddleLite的开发Docker镜像中,拉取最新PaddleLite代码,编译对应你手机架构的预测库,
1717
下面我们以arm8 架构举例。进入paddlelite 目录,运行以下cmake 和make 命令:
1818

paddle/fluid/lite/demo/java/android/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
*.iml
2-
.gradle
32
/local.properties
43
/.idea/caches
54
/.idea/libraries
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 28
5+
defaultConfig {
6+
applicationId "com.baidu.paddle.lite"
7+
minSdkVersion 23
8+
targetSdkVersion 28
9+
versionCode 1
10+
versionName "1.0"
11+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
}
20+
21+
dependencies {
22+
implementation fileTree(dir: 'libs', include: ['*.jar'])
23+
implementation 'com.android.support:appcompat-v7:28.0.0'
24+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
25+
testImplementation 'junit:junit:4.12'
26+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
27+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
28+
}
29+
30+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
buildscript {
4+
repositories {
5+
google()
6+
jcenter()
7+
8+
}
9+
dependencies {
10+
classpath 'com.android.tools.build:gradle:3.4.1'
11+
12+
// NOTE: Do not place your application dependencies here; they belong
13+
// in the individual module build.gradle files
14+
}
15+
}
16+
17+
allprojects {
18+
repositories {
19+
google()
20+
jcenter()
21+
22+
}
23+
}
24+
25+
task clean(type: Delete) {
26+
delete rootProject.buildDir
27+
}
28+
29+

0 commit comments

Comments
 (0)