Add pre-built binary and dependency to source control
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -4,4 +4,5 @@
|
|||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
.maven
|
.maven
|
||||||
build
|
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 {
|
maven {
|
||||||
url 'https://github.com/Boukefalos/jlibloader/raw/mvn-repo/'
|
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()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.boukefalos:jlibloader:0.3'
|
compile 'com.github.boukefalos:jlibloader:0.3'
|
||||||
|
compile 'com.github.boukefalos:jlibwiiscan:0.9'
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.github.boukefalos'
|
group = 'com.github.boukefalos'
|
||||||
project.archivesBaseName = 'jlibwiiscan'
|
project.archivesBaseName = 'jlibwiiscan'
|
||||||
version = '0.9'
|
version = '0.1'
|
||||||
|
jniVersion = '0.9'
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
gradleVersion = '1.12'
|
gradleVersion = '1.12'
|
||||||
@@ -96,7 +104,7 @@ binaries.withType(SharedLibraryBinary) { binary ->
|
|||||||
}
|
}
|
||||||
jniPom.groupId = project.group
|
jniPom.groupId = project.group
|
||||||
jniPom.artifactId = nativeJar.baseName
|
jniPom.artifactId = nativeJar.baseName
|
||||||
jniPom.version = version
|
jniPom.version = jniVersion
|
||||||
jniPom.scopeMappings.mappings.clear()
|
jniPom.scopeMappings.mappings.clear()
|
||||||
}
|
}
|
||||||
def builderTask = binary.tasks.builder
|
def builderTask = binary.tasks.builder
|
||||||
@@ -121,7 +129,7 @@ mainPom.withXml { provider ->
|
|||||||
def dep = deps.appendNode('dependency')
|
def dep = deps.appendNode('dependency')
|
||||||
dep.appendNode('groupId', project.group)
|
dep.appendNode('groupId', project.group)
|
||||||
dep.appendNode('artifactId', "${project.archivesBaseName}-${platform}")
|
dep.appendNode('artifactId', "${project.archivesBaseName}-${platform}")
|
||||||
dep.appendNode('version', version)
|
dep.appendNode('version', jniVersion)
|
||||||
}
|
}
|
||||||
def dep = deps.appendNode('dependency')
|
def dep = deps.appendNode('dependency')
|
||||||
dep.appendNode('groupId', 'com.github.boukefalos')
|
dep.appendNode('groupId', 'com.github.boukefalos')
|
||||||
|
|||||||
@@ -3,8 +3,13 @@ package wiiscan;
|
|||||||
import com.github.boukefalos.jlibloader.Native;
|
import com.github.boukefalos.jlibloader.Native;
|
||||||
|
|
||||||
public class Wiiscan {
|
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.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