-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·57 lines (49 loc) · 1.41 KB
/
build.gradle
File metadata and controls
executable file
·57 lines (49 loc) · 1.41 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// liblsl-Java library module for Android.
// To include this, call
// include 'liblsl-Java'
// project(':liblsl-Java').projectDir = new File('path/to/this/liblsl-Java')
// in your settings.gradle and specify it as a dependency via
// dependencies { implementation project(':liblsl-java') }
// in the app's build.gradle
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.+'
}
}
plugins {
id 'com.android.library' version '8.1.+'
}
repositories {
google()
mavenCentral()
}
dependencies {
implementation 'net.java.dev.jna:jna:5.13.0@aar'
}
android {
compileSdk 33
defaultConfig {
minSdkVersion 24
externalNativeBuild.cmake {
arguments "-DANDROID_PLATFORM=$minSdk", "-DLSL_SLIMARCHIVE=ON"
cppFlags "-fexceptions","-std=c++17"
targets "lsl"
}
}
sourceSets.main.java.srcDirs += 'src'
namespace = 'edu.ucsd.sccn'
externalNativeBuild.cmake {
// If the Android SDK CMake is older than 3.12, you need to install CMake locally and
// configure the path in your local.properties file, e.g.
// cmake.dir=C\:\\Program Files\\CMake
version '3.18.1+'
path(properties['liblsl_path'] ?: '../liblsl/CMakeLists.txt')
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
}
}