Skip to content

Commit

Permalink
Merge static libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotScher committed Nov 16, 2024
1 parent 6419303 commit de43239
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ext.libVersion = "${ext.version.replace(".", "")}"
def getTriplet() {
def fileNameFinder = new FileNameFinder()
for (File folder : file("$projectDir/vcpkg_installed").listFiles()) {
if (folder.name == "x64-linux") {
if (folder.name == project.platform) {
println folder.name
return folder.name
}
Expand Down Expand Up @@ -100,28 +100,6 @@ task outputVersions() {
}
}

task listLibsInDirectory {
def buildDirectory = Paths.get(projectDir.canonicalPath).resolve("vcpkg_installed").resolve(triplet).resolve("debug")
doLast {
def libDirectory = buildDirectory.resolve("lib").toFile()

// Print out all .a files in the directory
def libFiles = libDirectory.listFiles().findAll { file ->
file.name.endsWith('.lib')
}

if (libFiles.isEmpty()) {
println "No .a files found in ${libDirectory}"
} else {
println "Found the following .a files in ${libDirectory}:"
libFiles.each { file ->
println " - ${file.name}"
}
}
}
}


task cppHeadersZip(type: Zip) {
dependsOn outputVersions
destinationDirectory = outputsFolder
Expand Down

0 comments on commit de43239

Please sign in to comment.