Init project
This commit is contained in:
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
## IDEA ##
|
||||||
|
.idea/
|
||||||
|
out/
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
## ECLIPSE ##
|
||||||
|
.settings/
|
||||||
|
bin/
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
|
||||||
|
## GRADLE ##
|
||||||
|
.gradle/
|
||||||
|
build/
|
||||||
|
|
||||||
|
## OTHER ##
|
||||||
|
libs/
|
||||||
|
target/
|
||||||
43
build.gradle
Normal file
43
build.gradle
Normal 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'
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user