Skip to content

Commit

Permalink
Port following apps to build with Android Studio:
Browse files Browse the repository at this point in the history
    bitmap-plasma
    endless-tunnel
    gles3jni
    MoreTeapots
    native-activity
    native-audio
    native-codec
    native-media
    mative-plasma
    san-angeles
    Teapot

Change-Id: Ib50bd15fe6e9040c62923270dc55aeda69c66676
  • Loading branch information
ggfan committed Jun 16, 2015
1 parent c42cbdb commit 59a11b0
Show file tree
Hide file tree
Showing 572 changed files with 82,381 additions and 461 deletions.
53 changes: 53 additions & 0 deletions MoreTeapots/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
apply plugin: 'com.android.model.application'

model {
android {
compileSdkVersion = 19
buildToolsVersion ="22.0.1"

defaultConfig.with {
applicationId = "com.sample.moreteapots"
minSdkVersion.apiLevel = 11
targetSdkVersion.apiLevel = 19

}
}
android.ndk {
moduleName ="MoreTeapotsNativeActivity"
cppFlags += "-I${file("src/main/jni/cpufeatures")}".toString()
cppFlags += "-I${file("src/main/jni/native_app_glue")}".toString()
cppFlags += "-I${file("src/main/jni/ndk_helper")}".toString()

// CFlags is configured in similiar way as cppFlags
// CFlags += "-I${file("src/main/jni/native_app_glue")}".toString()

ldLibs += ["android", "EGL", "GLESv2","log"]
stl = "stlport_static"
}

android.sources {
main {
jni {
source {
srcDirs 'src/main/jni'
}
}
}
}

android.productFlavors {
create ("arm7") {
ndkConfig.abiFilters += "armeabi-v7a"
}
create ("arm8") {
ndkConfig.abiFilters += "arm64-v8a"
}
create ("x86-32") {
ndkConfig.abiFilters += "x86"
}
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
// build one including all productFlavors
create("all")
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 59a11b0

Please sign in to comment.