allow different arguments to cl

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@125473 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett committed 2005-01-18 09:11:01 +00:00
1 parent fb66cb7e2d
commit e1b166bca7
3 files changed
+62 -6

No files matched your search

+27 -1
View File
@@ -47,7 +47,17 @@
<ant:available property="jniFilesPresent" file="${maven.build.dir}/native/jni"/>
<!-- for some reason '.' aren't allow as parameter for outfile-->
<cc outfile="${maven.build.dir}/native/_" link="${maven.native.link}" debug="${maven.native.debug}">
<!-- 17 Dec 2004 - baleineca
Checking for runtime property and adding it. Default to "dynamic" if not present.
Seems like this is the only way at time of writing to get ccTask to pass something else than the default /MD arg to cl.
-->
<j:set var="runtime" value="${maven.native.runtime}"/>
<j:if test="${runtime} == ''">
<j:set var="runtime" value="dynamic"/>
</j:if>
<cc outfile="${maven.build.dir}/native/_" link="${maven.native.link}" debug="${maven.native.debug}" runtime="${runtime}" rtti="${rtti}">
<compiler name="${maven.native.compiler.name}">
<compilerparam name="target" value="${maven.native.compiler.target}"/>
@@ -152,6 +162,14 @@
<ant:copy file="${maven.build.dir}/native/_.dll"
tofile="${maven.build.dir}/native/${pom.artifactId}-${pom.currentVersion}.dll" overwrite="true"/>
</j:if>
<!-- dylib -->
<ant:available property="outputPresentDylib" file="${maven.build.dir}/native/lib_.dylib"/>
<j:if test="${outputPresentDylib == 'true'}">
<ant:copy file="${maven.build.dir}/native/lib_.dylib"
tofile="${maven.build.dir}/native/lib${pom.artifactId}-${pom.currentVersion}.jnilib" overwrite="true"/>
</j:if>
</goal>
<!-- ================================================================== -->
@@ -180,6 +198,14 @@
<ant:mkdir dir="${libdir__}"/>
<ant:copy file="${maven.build.dir}/native/${pom.artifactId}-${pom.currentVersion}.dll" tofile="${libdir__}/${pom.artifactId}-${pom.currentVersion}.dll" overwrite="true"/>
</j:if>
<!-- jnilib -->
<ant:available property="libPresentJnilib" file="${maven.build.dir}/native/lib${pom.artifactId}-${pom.currentVersion}.jnilib"/>
<j:if test="${libPresentJnilib == 'true'}">
<ant:property name="libdir__" value="${maven.repo.local}/${pom.artifactDirectory}/jnilibs"/>
<ant:mkdir dir="${libdir__}"/>
<ant:copy file="${maven.build.dir}/native/lib${pom.artifactId}-${pom.currentVersion}.jnilib" tofile="${libdir__}/lib${pom.artifactId}-${pom.currentVersion}.jnilib" overwrite="true"/>
</j:if>
</goal>
<!-- ================================================================== -->