-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (43 loc) · 1.75 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
44
45
46
47
48
49
plugins {
id("party.para.h2cs") version "1.0.1" apply true
}
group = "com.morizero.milestro"
version = "0.0.1"
subprojects {
group = "com.morizero.milestro"
version = "0.0.1"
repositories { repo() }
}
repositories { repo() }
tasks {
h2cs {
projectName = "Milestro"
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("milestro::skia::Canvas") to "IntPtr",
listOf("milestro::skia::Image") to "IntPtr",
listOf("milestro::skia::Typeface") to "IntPtr",
listOf("milestro::skia::Font") to "IntPtr",
listOf("milestro::skia::Path") to "IntPtr",
listOf("milestro::skia::Svg") to "IntPtr",
listOf("milestro::skia::VertexData") to "IntPtr",
listOf("milestro::skia::textlayout::Paragraph") to "IntPtr",
listOf("milestro::skia::textlayout::ParagraphBuilder") to "IntPtr",
listOf("milestro::skia::textlayout::ParagraphStyle") to "IntPtr",
listOf("milestro::skia::textlayout::StrutStyle") to "IntPtr",
listOf("milestro::skia::textlayout::TextStyle") to "IntPtr",
listOf("milestro::icu::IcuUCollator") to "IntPtr",
)
}
}
fun RepositoryHandler.repo() {
mavenLocal()
mavenCentral()
maven { url = uri("https://plugins.gradle.org/m2/") }
maven { url = uri("https://maven.para.party") }
}