aboutsummaryrefslogtreecommitdiffstats
path: root/z3/subprojects/solver-win32-x86-64/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'z3/subprojects/solver-win32-x86-64/build.gradle.kts')
-rw-r--r--z3/subprojects/solver-win32-x86-64/build.gradle.kts38
1 files changed, 38 insertions, 0 deletions
diff --git a/z3/subprojects/solver-win32-x86-64/build.gradle.kts b/z3/subprojects/solver-win32-x86-64/build.gradle.kts
new file mode 100644
index 00000000..c5fa0421
--- /dev/null
+++ b/z3/subprojects/solver-win32-x86-64/build.gradle.kts
@@ -0,0 +1,38 @@
1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7plugins {
8 id("tools.refinery.z3.gradle.java-library")
9}
10
11val classifier = "z3-${version}-x64-win"
12val library = "z3java-win32-x86-64"
13
14dependencies {
15 z3("Z3Prover:z3:${version}:${classifier}@zip")
16}
17
18val extractZ3Libs by tasks.registering(Sync::class) {
19 dependsOn(configurations.z3)
20 from({
21 val zipFile = configurations.z3.map { it.singleFile }
22 zipTree(zipFile).matching {
23 include("${classifier}/bin/*.dll")
24 // Do not include .NET assembly.
25 exclude("${classifier}/bin/Microsoft.Z3.dll")
26 includeEmptyDirs = false
27 }
28 })
29 eachFile {
30 val pathInBin = relativePath.segments.drop(2).toTypedArray()
31 relativePath = RelativePath(true, library, *pathInBin)
32 }
33 into(layout.buildDirectory.dir("z3-extracted"))
34}
35
36sourceSets.main {
37 resources.srcDir(extractZ3Libs)
38}