package vtm-natives with gdx-desktop
This commit is contained in:
parent
ae808dce2e
commit
1f1cd2ef57
@ -1,4 +1,5 @@
|
|||||||
repositories {
|
repositories {
|
||||||
|
// libgdx
|
||||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8,33 +9,36 @@ apply plugin: 'application'
|
|||||||
|
|
||||||
mainClassName = 'org.oscim.gdx.GdxMapApp'
|
mainClassName = 'org.oscim.gdx.GdxMapApp'
|
||||||
|
|
||||||
// task copyAssets(type: Copy) {
|
// need to include themes for the example executable
|
||||||
// from "$rootDir/vtm/assets"
|
// TODO should be removed someday
|
||||||
// into "assets"
|
task copyAssets(type: Copy) {
|
||||||
// include '**/*'
|
from "${rootDir}/vtm-themes/resources"
|
||||||
// }
|
into "${buildDir}"
|
||||||
|
include '**/*'
|
||||||
|
}
|
||||||
|
|
||||||
// tasks.withType(JavaCompile) { compileTask ->
|
// package vtm native libs into jar
|
||||||
// compileTask.dependsOn copyAssets }
|
task copyLibs(type: Copy) {
|
||||||
|
from(zipTree("../vtm-ext-libs/gdx/vtm-jni-natives.jar"))
|
||||||
|
into("${buildDir}/assets")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType(JavaCompile) { compileTask ->
|
||||||
|
compileTask.dependsOn copyAssets
|
||||||
|
compileTask.dependsOn copyLibs
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main.java.srcDirs = ['src']
|
main.java.srcDirs = ['src']
|
||||||
main.resources.srcDirs = ['src']
|
main.resources.srcDirs = ["${buildDir}/assets"]
|
||||||
main.resources.srcDirs = ['assets']
|
|
||||||
output.resourcesDir = 'assets'
|
output.resourcesDir = 'assets'
|
||||||
}
|
}
|
||||||
|
|
||||||
run { ignoreExitValue = true }
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':vtm-gdx')
|
compile project(':vtm-gdx')
|
||||||
compile project(':vtm-themes')
|
compile project(':vtm-themes')
|
||||||
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
||||||
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||||
//compile files('../vtm-ext-libs/gdx/gdx-backend-lwjgl.jar')
|
|
||||||
//compile files('../vtm-ext-libs/gdx/gdx-backend-lwjgl-natives.jar')
|
|
||||||
//compile files('../vtm-ext-libs/gdx/gdx-natives.jar')
|
|
||||||
compile files('../vtm-ext-libs/gdx/vtm-jni-natives.jar')
|
|
||||||
compile 'org.slf4j:slf4j-simple:1.7.5'
|
compile 'org.slf4j:slf4j-simple:1.7.5'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,3 +46,5 @@ eclipse.project {
|
|||||||
linkedResource name: 'assets', type: '2',
|
linkedResource name: 'assets', type: '2',
|
||||||
locationUri: 'PARENT-1-PROJECT_LOC/vtm-themes/resources/assets'
|
locationUri: 'PARENT-1-PROJECT_LOC/vtm-themes/resources/assets'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run { ignoreExitValue = true }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user