aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorYuutaW <17158086+Trumeet@users.noreply.github.com>2019-07-01 14:43:07 -0700
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2019-07-01 14:43:07 -0700
commit3c3c4841312262c73c5d973d590f541f8445962d (patch)
treec0e39367c1b60344182bdaf5e66c4acff114335a /build.gradle
parent41b0c65a084619330db2ead75cffe7fbe6db9ad8 (diff)
downloadAero-3c3c4841312262c73c5d973d590f541f8445962d.tar
Aero-3c3c4841312262c73c5d973d590f541f8445962d.tar.gz
Aero-3c3c4841312262c73c5d973d590f541f8445962d.tar.bz2
Aero-3c3c4841312262c73c5d973d590f541f8445962d.zip
feat: add support for Windows 7 Aero APIHEADuntagged-edcb449b8928f4456e7cmaster
Breaking changes: To test on the Windows 7 x86 virtual machine, the build had been changed from mingwX64 to mingwX86. Therefore the binary path will be changed, INT_PTR will represent Int and some Gradle tasks disappeared and changed. Due to the change of INT_PTR and some unknown reasons, the dialog cannot be shown so I removed the dialog mode. Signed-off-by: Trumeet <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle17
1 files changed, 11 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index 6317036..b27f519 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,23 +7,28 @@ repositories {
}
kotlin {
- mingwX64()
+ mingwX86()
sourceSets {
- mingwX64Main {
- mingwX64Main.kotlin.srcDirs += file("src/mingwMain/kotlin")
+ mingwX86Main {
+ mingwX86Main.kotlin.srcDirs += file("src/mingwMain/kotlin")
}
}
- mingwX64 {
+ mingwX86 {
binaries {
executable {
entryPoint 'moe.yuuta.aero.main'
- linkerOpts "-Wl,--subsystem,windows"
+ linkerOpts "-Wl,--subsystem,windows,-ldwmapi"
}
}
compilations.main.cinterops {
aero {
includeDirs {
- allHeaders 'src/nativeInterop/cinterop'
+ allHeaders 'src/nativeInterop/cinterop/aero'
+ }
+ }
+ versionhelper {
+ includeDirs {
+ allHeaders 'src/nativeInterop/cinterop/versionhelper'
}
}
}