File tree 6 files changed +66
-2
lines changed
6 files changed +66
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,12 @@ before_script:
12
12
# merge the latest code
13
13
- git config --global user.email "you@example.com"
14
14
- git config --global user.name "Your Name"
15
+ - git reset --hard HEAD # ignore any local changes in CI node.
15
16
- git fetch origin incubate/lite
17
+ - git status -s
18
+ - git branch
16
19
- git merge --no-ff origin/incubate/lite
20
+ # - git checkout origin/incubate/lite && git log -1 &&
17
21
18
22
19
23
image : $SERVER_LITE_DOCKER_IMAGE
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ file(WRITE ${offline_lib_registry_file} "") # clean
101
101
set (__lite_cc_files "" ; "" )
102
102
set (__lite_cc_files "${CMAKE_BINARY_DIR} /lite_cc_files.txt" )
103
103
file (WRITE ${__lite_cc_files} "" ) # clean
104
+
105
+
104
106
# cc_library with branch support.
105
107
# The branches:
106
108
# X86_DEPS: works only when LITE_WITH_X86 is ON.
Original file line number Diff line number Diff line change 12
12
13
13
## 手动编译(给测试人员需要更新 demo 模型或 .so 库可阅读)
14
14
15
- ###编译:
15
+ ### 编译:
16
16
首先在PaddleLite的开发Docker镜像中,拉取最新PaddleLite代码,编译对应你手机架构的预测库,
17
17
下面我们以arm8 架构举例。进入paddlelite 目录,运行以下cmake 和make 命令:
18
18
Original file line number Diff line number Diff line change 1
1
* .iml
2
- .gradle
3
2
/local.properties
4
3
/.idea /caches
5
4
/.idea /libraries
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments