Archived
0

gradle: remove natives unpacker

This commit is contained in:
2015-09-21 09:57:41 +03:00
parent 360fff6393
commit 65d8a40a51

View File

@@ -1,10 +1,4 @@
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: 'java'
apply plugin: 'com.stehno.natives'
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'eclipse' apply plugin: 'eclipse'
@@ -25,20 +19,3 @@ sourceSets {
resources.srcDirs = ['src/resources'] 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'
}
}