خرید بک لینک

Vote count: 0

I'm trying to include GStreamer to my jni folder. But all dependencies are broken. For example

#include <glib.h>

Should be replaced with

#include <../../../include/glib-2.0/glib.h>

I'm using gradle-experimental 0.7.2

My app build.gradle:

apply plugin: 'com.android.model.application'

model {

android {
    compileSdkVersion = 24
    buildToolsVersion = "24.0.1"

    defaultConfig.with {
        applicationId = "com.sizyntsev.cppleaing"
        minSdkVersion.apiLevel = 16
        targetSdkVersion.apiLevel = 23
    }

}

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

android.ndk{
    moduleName "gstreamer"
    cppFlags.add("-I ${new File("src/main/jni/gstreamer_lib/include/glib-2.0/glib.h").absolutePath}".toString())
}

}

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

asked 32 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 10 مرداد 1395 ساعت: 19:48

صفحه بندی