diff options
Diffstat (limited to 'src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java')
-rw-r--r-- | src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java index 70ee93f..67d7e6b 100644 --- a/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java @@ -27,6 +27,12 @@ public class LinkType { private OutputTypeEnum outputType = new OutputTypeEnum(); private boolean staticRuntime = false; private SubsystemEnum subsystem = new SubsystemEnum(); + +// BEGINFREEHEP + private boolean linkCPP = true; + private boolean linkFortran = false; +// ENDFREEHEP + /** * Constructor * @@ -44,6 +50,11 @@ public class LinkType { String value = outputType.getValue(); return value.equals("executable"); } + + public boolean isJNIModule() { + String value = outputType.getValue(); + return value.equals("jni"); + } /** * Gets whether the link should produce a plugin module. * @@ -60,7 +71,8 @@ public class LinkType { */ public boolean isSharedLibrary() { String value = outputType.getValue(); - return value.equals("shared") || value.equals("plugin"); +// FREEHEP + return value.equals("shared") || value.equals("plugin") || value.equals("jni"); } /** * Gets whether the link should produce a static library. @@ -147,4 +159,23 @@ public class LinkType { public String getSubsystem() { return subsystem.getValue(); } + +// BEGINFREEHEP + public void setLinkCPP(boolean linkCPP) { + this.linkCPP = linkCPP; + } + + public boolean linkCPP() { + return linkCPP; + } + + public void setLinkFortran(boolean linkFortran) { + this.linkFortran = linkFortran; + } + + public boolean linkFortran() { + return linkFortran; + } +// ENDFREEHEP + } |