forked from android/ndk-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port following apps to build with Android Studio:
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
Showing
572 changed files
with
82,381 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.