Skip to content
Snippets Groups Projects
Commit eddc809d authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Modified the build script in order to semi-auto-detect the OS for the Eclipse library.

parent 871faa9f
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,12 @@ configurations {
dependencies {
// One of the runtime dependencies has to be used during the compilation. Modify this entry for Eclipse depending on your development JRE.
providedCompile 'org.eclipse.swt:org.eclipse.swt.win32.win32.x86_64:4.4'
if (System.properties['os.name'].toLowerCase().contains('windows')) {
providedCompile 'org.eclipse.swt:org.eclipse.swt.win32.win32.x86_64:4.4'
} else {
providedCompile 'org.eclipse.swt:org.eclipse.swt.gtk.linux.x86_64:4.4'
}
windowsX86Runtime 'org.eclipse.swt:org.eclipse.swt.win32.win32.x86:4.4'
windowsX64Runtime 'org.eclipse.swt:org.eclipse.swt.win32.win32.x86_64:4.4'
linuxX86Runtime 'org.eclipse.swt:org.eclipse.swt.gtk.linux.x86:4.4'
......@@ -209,4 +213,4 @@ task distSrcTar(type: Tar) {
task distAllSrc(dependsOn: [distSrcZip, distSrcTar]) {
description = 'Bundles the source files of the project.'
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment