File: build.gradle

package info (click to toggle)
android-platform-tools-base 2.2.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 113,928 kB
  • sloc: java: 696,396; xml: 45,920; cpp: 2,526; ansic: 1,432; sh: 508; lisp: 110; javascript: 108; makefile: 17
file content (35 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
task build {}

configurations {
    perfa
}

cmake {
    name 'host'
    projectDir "$rootDir/native"
}

cmake {
    name 'android'
    // x86 disabled for now; may be useful for local development if you want to
    // target emulators. TODO: Enable when we're more confident with this new
    // build step affecting the whole team.
    abis 'armeabi-v7a', 'arm64-v8a' //, 'x86'
    projectDir "$rootDir/native"
    flags "-DHOST_BUILD_DIR=$buildDir/out/host"
}
precompileAndroid.dependsOn compileHost

task assemblePerfa(type: Copy, dependsOn: compileAndroid) {
    into "$buildDir/artifacts/jni"
    from("$buildDir/out") {
        include "*/libperfa.so"
        exclude "host/**"
    }
}

artifacts {
    perfa file: file("$buildDir/artifacts"), builtBy: assemblePerfa
}
// Linking "compileAndroid" to "build" will trigger it's build from IntelliJ, we don't want to do that just yet
// build.dependsOn compileAndroid