Fix build on Windows.
This commit is contained in:
parent
c94ff429e8
commit
4275a6cc61
@ -1,4 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source "${BASH_SOURCE%/*}/build_lib"
|
source "${BASH_SOURCE%/*}/build_lib"
|
||||||
|
|
||||||
|
finalize_merge() {
|
||||||
|
local prefix=$1 platform=$2; shift 2
|
||||||
|
local archs=( "$@" )
|
||||||
|
|
||||||
|
cp -a "src/libsodium/include" "$prefix/out"
|
||||||
|
|
||||||
|
_finalize_merge "$prefix" "$platform" "${archs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
build libsodium windows
|
build libsodium windows
|
||||||
|
@ -69,14 +69,14 @@ library {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// libjson-c
|
// libjson-c
|
||||||
archive.dependsOn project.tasks.maybeCreate( "build_libjson-c-${system}", Exec ).configure {
|
/*archive.dependsOn project.tasks.maybeCreate( "build_libjson-c-${system}", Exec ).configure {
|
||||||
commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-${system}"
|
commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-${system}"
|
||||||
privateHeaders.from "$rootDir/../lib/libjson-c/build-${system}~/out/include"
|
privateHeaders.from "$rootDir/../lib/libjson-c/build-${system}~/out/include"
|
||||||
add( linkLibraries.name, fileTree( "$rootDir/../lib/libjson-c/build-${system}~/out/lib" ) )
|
add( linkLibraries.name, fileTree( "$rootDir/../lib/libjson-c/build-${system}~/out/lib" ) )
|
||||||
}
|
}
|
||||||
clean.dependsOn project.tasks.maybeCreate( "clean_libjson-c-${system}", Exec ).configure {
|
clean.dependsOn project.tasks.maybeCreate( "clean_libjson-c-${system}", Exec ).configure {
|
||||||
commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-${system}", 'clean'
|
commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-${system}", 'clean'
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
// TODO: We may need to zero the jbytes safely.
|
// TODO: We may need to zero the jbytes safely.
|
||||||
|
|
||||||
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
|
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved) {
|
||||||
JNIEnv* env;
|
JNIEnv* env;
|
||||||
if ((*vm)->GetEnv( vm, (void **)&env, JNI_VERSION_1_6 ) != JNI_OK)
|
if ((*vm)->GetEnv( vm, (void **)&env, JNI_VERSION_1_6 ) != JNI_OK)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user