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

Back to 0:

Seperate Compilation of C++/Java code for now
parent 63b103f6
Branches
Tags
No related merge requests found
plugins { plugins {
id 'org.ajoberstar.grgit' version '1.7.2'
id 'fr.echoes.gradle.cpp' version '1.2.9'
id 'maven' id 'maven'
} }
//Hacky woraround for conflicting task names with maven and cpp plugin
tasks.remove(install)
apply plugin: 'java' apply plugin: 'java'
...@@ -17,55 +12,12 @@ description = """yoshikoWrapper""" ...@@ -17,55 +12,12 @@ description = """yoshikoWrapper"""
sourceCompatibility = 1.8 sourceCompatibility = 1.8
targetCompatibility = 1.8 targetCompatibility = 1.8
def yoshikoDir = 'build/yoshikoSource'
/*
Clone task to fetch the required C++ code from the yoshiko repository
*/
task cloneYoshikoCode {
description = 'Fetches the Yoshiko Source from the github repository for further processing'
doLast{
if (!(file(yoshikoDir).exists())){
logger.info("Yoshiko source files don't exist yet, cloning ...")
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") {
workingDir yoshikoDir+"/build"
executable = "cmake"
args ".."
}
cpp {
applicationType = "clibrary"
buildTasksEnabled = false
exec.with {
execPath = yoshikoDir+"/build"
compileCppExecPath = "make"
compileCppBaseArgs = ""
compileCppExecWorkingDir = yoshikoDir+"/build"
}
}
//Task-Chain
launchCMake.dependsOn cloneYoshikoCode
compileCpp.dependsOn launchCMake
compileJava.dependsOn compileCpp
jar.dependsOn compileJava
repositories { repositories {
maven { url "http://code.cytoscape.org/nexus/content/repositories/snapshots/" } maven { url "http://code.cytoscape.org/nexus/content/repositories/snapshots/" }
maven { url "http://code.cytoscape.org/nexus/content/repositories/releases/" } maven { url "http://code.cytoscape.org/nexus/content/repositories/releases/" }
maven { url "http://repo.maven.apache.org/maven2" } maven { url "http://repo.maven.apache.org/maven2" }
} }
dependencies { dependencies {
compile group: 'org.osgi', name: 'org.osgi.core', version:'4.2.0' compile group: 'org.osgi', name: 'org.osgi.core', version:'4.2.0'
compile group: 'org.cytoscape', name: 'service-api', version:'3.5.0-RC2' compile group: 'org.cytoscape', name: 'service-api', version:'3.5.0-RC2'
......
...@@ -8,7 +8,7 @@ public class CyActivator extends AbstractCyActivator { ...@@ -8,7 +8,7 @@ public class CyActivator extends AbstractCyActivator {
@Override @Override
public void start(BundleContext context) throws Exception { public void start(BundleContext context) throws Exception {
//DONOTHINGYET System.loadLibrary("yoshiko");
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment