Tweak include paths & add clean support to android libs.
This commit is contained in:
@@ -60,22 +60,22 @@ library {
|
||||
|
||||
project.dependencies {
|
||||
add( linkLibraries.name,
|
||||
fileTree( "../../../lib/libsodium/build-${system}~/out/lib" ) )
|
||||
fileTree( "$rootDir/../lib/libsodium/build-${system}~/out/lib" ) )
|
||||
}
|
||||
|
||||
archive.dependsOn project.tasks.maybeCreate( "build_libsodium-${system}", Exec.class ).configure {
|
||||
commandLine 'bash', '-x', "$rootDir/../lib/bin/build_libsodium-${system}"
|
||||
commandLine 'bash', "$rootDir/../lib/bin/build_libsodium-${system}"
|
||||
privateHeaders.from "$rootDir/../lib/libsodium/src/libsodium/include"
|
||||
}
|
||||
clean.dependsOn project.tasks.maybeCreate( "clean_libsodium-${system}", Exec.class ).configure {
|
||||
commandLine 'bash', '-x', "$rootDir/../lib/bin/build_libsodium-${system}", 'clean'
|
||||
commandLine 'bash', "$rootDir/../lib/bin/build_libsodium-${system}", 'clean'
|
||||
}
|
||||
archive.dependsOn project.tasks.maybeCreate( "build_libjson-c-${system}", Exec.class ).configure {
|
||||
commandLine 'bash', '-x', "$rootDir/../lib/bin/build_libjson-c-${system}"
|
||||
privateHeaders.from "$rootDir/../lib/libjson-c/build-${system}~/out"
|
||||
commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-${system}"
|
||||
privateHeaders.from "$rootDir/../lib/libjson-c/build-${system}~/out/include"
|
||||
}
|
||||
clean.dependsOn project.tasks.maybeCreate( "clean_libjson-c-${system}", Exec.class ).configure {
|
||||
commandLine 'bash', '-x', "$rootDir/../lib/bin/build_libjson-c-${system}", 'clean'
|
||||
commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-${system}", 'clean'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ static String standardOperatingSystem(NativePlatform platform) {
|
||||
else if (os.isLinux())
|
||||
return OperatingSystemFamily.LINUX
|
||||
|
||||
// Other systems will need to use a Linux compatibility layer for now.
|
||||
// Other systems will need to use a Linux compatibility layer.
|
||||
return OperatingSystemFamily.LINUX
|
||||
}
|
||||
|
||||
|
@@ -20,11 +20,12 @@ dependencies {
|
||||
}
|
||||
|
||||
processResources {
|
||||
dependsOn task( type: Sync, 'copyResources', {
|
||||
dependsOn task( type: Sync, 'processResources-lib', {
|
||||
into new File( processResources.outputs.files.singleFile, "lib" )
|
||||
|
||||
dependsOn configurations.lib {
|
||||
files.each { libFile ->
|
||||
from zipTree( libFile )
|
||||
into new File( processResources.outputs.files.singleFile, "lib" )
|
||||
from( zipTree( libFile ) )
|
||||
}
|
||||
}
|
||||
} )
|
||||
@@ -33,7 +34,7 @@ processResources {
|
||||
compileJava {
|
||||
doLast {
|
||||
ant.javah( class: 'com.lyndir.masterpassword.impl.MPAlgorithmV0',
|
||||
outputFile: '../../c/core/src/mpw-jni.h',
|
||||
outputFile: new File( project( ':masterpassword-core' ).projectDir, 'src/mpw-jni.h' ),
|
||||
classpath: files( sourceSets.main.compileClasspath, sourceSets.main.output ).asPath )
|
||||
}
|
||||
}
|
||||
|
@@ -21,4 +21,5 @@ dependencies {
|
||||
testImplementation group: 'org.testng', name: 'testng', version: '6.8.5'
|
||||
testImplementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
|
||||
}
|
||||
|
||||
test.useTestNG()
|
||||
|
@@ -13,7 +13,5 @@ dependencies {
|
||||
testImplementation group: 'org.testng', name: 'testng', version: '6.8.5'
|
||||
testImplementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
|
||||
}
|
||||
//tasks.withType(Test) {
|
||||
// systemProperty "java.library.path", "/Users/lhunath/Documents/workspace/lyndir/MasterPassword/core/java/algorithm/build/libs/mpw/shared"
|
||||
//}
|
||||
|
||||
test.useTestNG()
|
||||
|
Reference in New Issue
Block a user