Skip to content
Snippets Groups Projects
Commit 4396b6c4 authored by Philipp Spohr's avatar Philipp Spohr
Browse files

Assuming Lemon/CPLEX are installed, Gradle now fetches and compiles yoshiko

parent 5da13900
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,3 @@ gradle/wrapper/gradle-wrapper.properties ...@@ -13,9 +13,3 @@ gradle/wrapper/gradle-wrapper.properties
/.settings/org.eclipse.buildship.core.prefs /.settings/org.eclipse.buildship.core.prefs
/.settings/org.eclipse.jdt.core.prefs /.settings/org.eclipse.jdt.core.prefs
/bin/de /bin/de
/CMakeCache.txt
/Makefile
/cmake_install.cmake
# CMAKE
/CMakeFiles
...@@ -24,36 +24,40 @@ Clone task to fetch the required C++ code from the yoshiko repository ...@@ -24,36 +24,40 @@ Clone task to fetch the required C++ code from the yoshiko repository
*/ */
task cloneYoshikoCode { task cloneYoshikoCode {
description = 'Fetches the Yoshiko Source from the github repository for further processing' description = 'Fetches the Yoshiko Source from the github repository for further processing'
doLast{ doLast{
if (!(file(yoshikoDir).exists())){ if (!(file(yoshikoDir).exists())){
logger.info("Yoshiko source files don't exist yet, cloning ...") logger.info("Yoshiko source files don't exist yet, cloning ...")
org.ajoberstar.grgit.Grgit.clone(dir: file(yoshikoDir), uri: 'https://github.com/spqrPh/yoshiko') org.ajoberstar.grgit.Grgit.clone(dir: file(yoshikoDir), uri: 'https://github.com/spqrPh/yoshiko')
//TODO: Always checkout a version that is tagged as "stable"
mkdir yoshikoDir+"/build"
} }
} }
} }
task launchCMake(type: Exec, group: "init") { task launchCMake(type: Exec, group: "init") {
logger.info("Executing CMAKE in directory:"+workingDir) workingDir yoshikoDir+"/build"
executable = "cmake" executable = "cmake"
args yoshikoDir args ".."
} }
compileCpp.dependsOn launchCMake
cpp { cpp {
applicationType = "clibrary" applicationType = "clibrary"
buildTasksEnabled = false
exec.with { exec.with {
execPath = "echo" execPath = yoshikoDir+"/build"
compileCppExecPath = "make" compileCppExecPath = "make"
compileCppBaseArgs = ".." compileCppBaseArgs = ""
compileCppExecWorkingDir = "build" compileCppExecWorkingDir = yoshikoDir+"/build"
} }
} }
compileJava.dependsOn(cloneYoshikoCode) //Task-Chain
launchCMake.dependsOn cloneYoshikoCode
compileCpp.dependsOn launchCMake
compileJava.dependsOn compileCpp
repositories { repositories {
maven { url "http://code.cytoscape.org/nexus/content/repositories/snapshots/" } maven { url "http://code.cytoscape.org/nexus/content/repositories/snapshots/" }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment