aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
blob: b27f5197d46aec7879bf95eba21578349333480c (plain)
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
plugins {
    id 'org.jetbrains.kotlin.multiplatform' version '1.3.40'
}
repositories {
    jcenter()
    mavenCentral()
}

kotlin {
    mingwX86()
    sourceSets {
        mingwX86Main {
            mingwX86Main.kotlin.srcDirs += file("src/mingwMain/kotlin")
        }
    }
    mingwX86 {
        binaries {
            executable {
                entryPoint 'moe.yuuta.aero.main'
                linkerOpts "-Wl,--subsystem,windows,-ldwmapi"
            }
        }
        compilations.main.cinterops {
            aero {
                includeDirs {
                    allHeaders 'src/nativeInterop/cinterop/aero'
                }
            }
            versionhelper {
                includeDirs {
                    allHeaders 'src/nativeInterop/cinterop/versionhelper'
                }
            }
        }
    }
}