Skip to content

Commit

Permalink
- Commented out 64-bit builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel C. Yang authored and Samuel C. Yang committed Nov 25, 2015
1 parent 12047b8 commit f6a85f6
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 41 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.2.1'
classpath 'com.android.tools.build:gradle-experimental:0.3.0-alpha7'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
8 changes: 4 additions & 4 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ model {
versionCode = 1
versionName = "1.0"
}
}

compileOptions.with {
sourceCompatibility=JavaVersion.VERSION_1_7
targetCompatibility=JavaVersion.VERSION_1_7
compileOptions.with {
sourceCompatibility=JavaVersion.VERSION_1_7
targetCompatibility=JavaVersion.VERSION_1_7
}
}

android.buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions demo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.courbiere.rtspextractor" >
package="me.courbiere.rtspextractor.demo" >

<application
android:allowBackup="true"
Expand All @@ -9,7 +9,7 @@
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name=".demo.MainActivity"
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import android.support.v7.widget.Toolbar;
import android.view.View;

import me.courbiere.rtspextractor.R;
import me.courbiere.rtspextractor.demo.R;

public class MainActivity extends AppCompatActivity {

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-all.zip
73 changes: 41 additions & 32 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ apply plugin: 'com.android.model.library'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.1"
buildToolsVersion = "23.0.2"

defaultConfig.with {
applicationId = "me.courbiere.rtspextractor"
minSdkVersion.apiLevel = 16
targetSdkVersion.apiLevel = 23
versionCode = 1
versionName = "1.0"
}
}

compileOptions.with {
sourceCompatibility=JavaVersion.VERSION_1_7
targetCompatibility=JavaVersion.VERSION_1_7
compileOptions.with {
sourceCompatibility=JavaVersion.VERSION_1_7
targetCompatibility=JavaVersion.VERSION_1_7
}
}

/*
Expand All @@ -26,54 +25,64 @@ model {
moduleName = "rtspextractor"
toolchain = "clang"
toolchainVersion = "3.5"
// cppFlags += "-march=armv7-a"
cppFlags += "-mfloat-abi=softfp"
cppFlags += "-mfpu=neon"
cppFlags += "-g"
cppFlags += "-O0"
cppFlags += "-I${file("src/main/jni/include")}".toString()
ldFlags += "-L${file("src/main/jniLibs/")}".toString()
ldLibs += ["log", "z", "m", "avformat-56", "avcodec-56", "swscale-3", "avutil-54", "ssl", "rtmp-1"]
// cppFlags.add("-march=armv7-a")
cppFlags.add("-mfloat-abi=softfp")
cppFlags.add("-mfpu=neon")
cppFlags.add("-g")
cppFlags.add("-O0")
cppFlags.add("-I${file("src/main/jni/include")}".toString())
ldFlags.add("-L${file("src/main/jniLibs/")}".toString())
ldLibs.addAll(["log", "z", "m", "avformat-56", "avcodec-56", "swscale-3", "avutil-54", "ssl", "rtmp-1"])
}

android.buildTypes {
release {
minifyEnabled = false
proguardFiles += file('proguard-rules.pro')
proguardFiles.add(file('proguard-rules.pro'))
}
}

android.productFlavors {
// for detailed abiFilter descriptions, refer to "Supported ABIs" @
// https://developer.android.com/ndk/guides/abis.html#sa
create("arm") {
ndk.abiFilters += "armeabi"
}
create("arm7") {
ndk.abiFilters += "armeabi-v7a"
}
create("arm8") {
ndk.abiFilters += "arm64-v8a"
ndk.with {
abiFilters.add("armeabi")
abiFilters.add("armeabi-v7a")
}
}
// create("arm8") {
// ndk.with {
// abiFilters.add("arm64-v8a")
// }
// }
create("x86") {
ndk.abiFilters += "x86"
}
create("x86-64") {
ndk.abiFilters += "x86_64"
ndk.with {
abiFilters.add("x86")
}
}
// create("x86-64") {
// ndk.with {
// abiFilters.add("x86_64")
// }
// }
create("mips") {
ndk.abiFilters += "mips"
}
create("mips-64") {
ndk.abiFilters += "mips64"
ndk.with {
abiFilters.add("mips")
}
}
// create("mips-64") {
// ndk.with {
// abiFilters.add("mips64")
// }
// }
// To include all cpu architectures, leaves abiFilters empty
create("all")
// create("all")
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.google.android.exoplayer:exoplayer:r1.2.3'
}
}

0 comments on commit f6a85f6

Please sign in to comment.