Add pre-built binary and dependency to source control
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,4 +4,5 @@
|
||||
.classpath
|
||||
.project
|
||||
.maven
|
||||
bin
|
||||
build
|
||||
1
bin/.gitignore
vendored
1
bin/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
/wiiscan/
|
||||
BIN
bin/DelcomDLL.dll
Normal file
BIN
bin/DelcomDLL.dll
Normal file
Binary file not shown.
BIN
bin/wiiscan.exe
Normal file
BIN
bin/wiiscan.exe
Normal file
Binary file not shown.
14
build.gradle
14
build.gradle
@@ -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')
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user