提交 5e236b56 编写于 作者: H Huihuang Zheng 提交者: Chunwei

Add build.gradle for QA

上级 a5952cff
......@@ -12,8 +12,12 @@ before_script:
# merge the latest code
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- git reset --hard HEAD # ignore any local changes in CI node.
- git fetch origin incubate/lite
- git status -s
- git branch
- git merge --no-ff origin/incubate/lite
#- git checkout origin/incubate/lite && git log -1 &&
image: $SERVER_LITE_DOCKER_IMAGE
......
......@@ -101,6 +101,8 @@ file(WRITE ${offline_lib_registry_file} "") # clean
set(__lite_cc_files "" ; "")
set(__lite_cc_files "${CMAKE_BINARY_DIR}/lite_cc_files.txt")
file(WRITE ${__lite_cc_files} "") # clean
# cc_library with branch support.
# The branches:
# X86_DEPS: works only when LITE_WITH_X86 is ON.
......
......@@ -12,7 +12,7 @@
## 手动编译(给测试人员需要更新 demo 模型或 .so 库可阅读)
###编译:
### 编译:
首先在PaddleLite的开发Docker镜像中,拉取最新PaddleLite代码,编译对应你手机架构的预测库,
下面我们以arm8 架构举例。进入paddlelite 目录,运行以下cmake 和make 命令:
......
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
......
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.baidu.paddle.lite"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册