-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
43 lines (37 loc) · 1.4 KB
/
build.gradle.kts
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
plugins {
id("party.para.h2cs") version "1.0.1" apply true
}
group = "com.morizero.milody"
version = "0.0.1"
subprojects {
group = "com.morizero.milody"
version = "0.0.1"
repositories { repo() }
}
repositories { repo() }
tasks {
h2cs {
projectName = "Milody"
sourceFilePath = System.getProperty("sourceFilePath")
?: throw Exception("No source files given")
csharpBindingOutputPath = System.getProperty("csharpBindingOutputPath")
?: throw Exception("No csharp binding output path given")
cppFrameworkBindingOutputPath = System.getProperty("cppFrameworkBindingOutputPath")
?: throw Exception("No cpp binding output path given")
addTypeMapping(
listOf("milody::audio::JuceAudioSourcePlayer") to "IntPtr",
listOf("milody::audio::JuceAudioBuffer") to "IntPtr",
listOf("milody::audio::JuceAudioFormatReader") to "IntPtr",
listOf("milody::audio::JuceSoundPlayer") to "IntPtr",
listOf("milody::audio::JuceRefAudioIODeviceCallback") to "IntPtr",
listOf("milody::audio::JuceAudioDeviceManager") to "IntPtr",
listOf("milody::context::Context") to "IntPtr",
)
}
}
fun RepositoryHandler.repo() {
mavenLocal()
mavenCentral()
maven { url = uri("https://plugins.gradle.org/m2/") }
maven { url = uri("https://maven.para.party") }
}