Skip to content

Commit

Permalink
just testing
Browse files Browse the repository at this point in the history
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
  • Loading branch information
NickSneo committed Jul 29, 2024
1 parent dac3084 commit 235c91a
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions constantine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ java {
task makeConstantineLib(type: Exec) {
description = 'Compiles the Constantine library'
workingDir = file('./constantine')
environment 'PATH', "${System.env.PATH}:${System.getenv('HOME')}/.nimble/bin"
environment 'CTT_LTO', 'false'
commandLine "${System.getenv('HOME')}/.nimble/bin/nimble", 'make_lib'
}
Expand Down Expand Up @@ -65,31 +66,31 @@ tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

task macArmLibCopy(type: Copy) {
dependsOn compileNativeLibrary
from 'constantine/lib/libconstantine.dylib'
into 'build/resources/main/darwin-aarch64'
}

task macLibCopy(type: Copy) {
dependsOn compileNativeLibrary
from 'constantine/lib/libconstantine.dylib'
into 'build/resources/main/darwin-x86-64'
}

task linuxLibCopy(type: Copy) {
dependsOn compileNativeLibrary
from 'constantine/lib/libconstantine.so'
into 'build/resources/main/linux-x86-64'
}

task linuxArm64LibCopy(type: Copy) {
dependsOn compileNativeLibrary
from 'constantine/lib/libconstantine.so'
into 'build/resources/main/linux-aarch64'
}

processResources.dependsOn macArmLibCopy, macLibCopy, linuxLibCopy, linuxArm64LibCopy
//task macArmLibCopy(type: Copy) {
// dependsOn compileNativeLibrary
// from 'constantine/lib/libconstantine.dylib'
// into 'build/resources/main/darwin-aarch64'
//}
//
//task macLibCopy(type: Copy) {
// dependsOn compileNativeLibrary
// from 'constantine/lib/libconstantine.dylib'
// into 'build/resources/main/darwin-x86-64'
//}
//
//task linuxLibCopy(type: Copy) {
// dependsOn compileNativeLibrary
// from 'constantine/lib/libconstantine.so'
// into 'build/resources/main/linux-x86-64'
//}
//
//task linuxArm64LibCopy(type: Copy) {
// dependsOn compileNativeLibrary
// from 'constantine/lib/libconstantine.so'
// into 'build/resources/main/linux-aarch64'
//}

//processResources.dependsOn macArmLibCopy, macLibCopy, linuxLibCopy, linuxArm64LibCopy

jar {
archiveBaseName = 'besu-native-constantine'
Expand Down

0 comments on commit 235c91a

Please sign in to comment.