Archived
0

Init project

This commit is contained in:
2015-09-18 12:19:42 +03:00
commit 487e2b7c61
2 changed files with 63 additions and 0 deletions

43
build.gradle Normal file
View File

@@ -0,0 +1,43 @@
buildscript {
repositories { maven { url "https://plugins.gradle.org/m2/" } }
dependencies { classpath "gradle.plugin.com.stehno:gradle-natives:0.2.3" }
}
apply plugin: 'java'
apply plugin: 'com.stehno.natives'
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
def lwjgl_ver = '2.9.3'
dependencies {
compile (['org.lwjgl.lwjgl:lwjgl:'+lwjgl_ver])
}
sourceSets {
main {
java.srcDirs = ['src/java']
resources.srcDirs = ['src/resources']
}
}
import org.gradle.internal.os.OperatingSystem;
natives {
jars = [
'lwjgl-platform-'+lwjgl_ver+'-natives-windows',
'lwjgl-platform-'+lwjgl_ver+'-natives-osx',
'lwjgl-platform-'+lwjgl_ver+'-natives-linux',
]
if (OperatingSystem.current().isWindows()) {
platforms = 'windows'
} else if (operatingsystem.current().isMacOsX()) {
platforms = 'osx'
} else if (operatingsystem.current().isLinux()) {
platforms = 'linux'
}
}