Add pre-built binary and dependency to source control

This commit is contained in:
2016-08-20 15:40:03 +01:00
parent 10d5a13336
commit 0ceab0a316
6 changed files with 20 additions and 7 deletions

1
.gitignore vendored
View File

@@ -4,4 +4,5 @@
.classpath
.project
.maven
bin
build

1
bin/.gitignore vendored
View File

@@ -1 +0,0 @@
/wiiscan/

BIN
bin/DelcomDLL.dll Normal file

Binary file not shown.

BIN
bin/wiiscan.exe Normal file

Binary file not shown.

View File

@@ -7,16 +7,24 @@ repositories {
maven {
url 'https://github.com/Boukefalos/jlibloader/raw/mvn-repo/'
}
maven {
url 'https://github.com/Boukefalos/libwiiuse/raw/mvn-repo/'
}
maven {
url 'https://github.com/Boukefalos/jlibwiiscan/raw/mvn-repo/'
}
mavenCentral()
}
dependencies {
compile 'com.github.boukefalos:jlibloader:0.3'
compile 'com.github.boukefalos:jlibwiiscan:0.9'
}
group = 'com.github.boukefalos'
project.archivesBaseName = 'jlibwiiscan'
version = '0.9'
version = '0.1'
jniVersion = '0.9'
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
@@ -96,7 +104,7 @@ binaries.withType(SharedLibraryBinary) { binary ->
}
jniPom.groupId = project.group
jniPom.artifactId = nativeJar.baseName
jniPom.version = version
jniPom.version = jniVersion
jniPom.scopeMappings.mappings.clear()
}
def builderTask = binary.tasks.builder
@@ -121,7 +129,7 @@ mainPom.withXml { provider ->
def dep = deps.appendNode('dependency')
dep.appendNode('groupId', project.group)
dep.appendNode('artifactId', "${project.archivesBaseName}-${platform}")
dep.appendNode('version', version)
dep.appendNode('version', jniVersion)
}
def dep = deps.appendNode('dependency')
dep.appendNode('groupId', 'com.github.boukefalos')

View File

@@ -3,8 +3,13 @@ package wiiscan;
import com.github.boukefalos.jlibloader.Native;
public class Wiiscan {
public static void load() {
public static String load() {
Native.load("com.github.boukefalos", "libwiiuse");
Native.load("com.github.boukefalos", "jlibwiiscan", "DelcomDLL");
Native.binary("com.github.boukefalos", "jlibwiiscan", "sox");
return Native.binary("com.github.boukefalos", "jlibwiiscan", "sox");
}
public static void main(String[] args) {
System.out.println(Wiiscan.load());
}
}