Skip to content

Commit

Permalink
bug fix 711
Browse files Browse the repository at this point in the history
  • Loading branch information
cseifert committed Mar 15, 2008
1 parent 1e9dda7 commit 28ce07e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions capture-server/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
<!-- Compile the java code -->
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,vars,source"/>

<!-- Compile the jni code -->
<!-- Compile the revert code -->
<if>
<equals arg1="${os}" arg2="windows" />
<then>
<exec executable="compile_jni_win32.bat"/>
<exec executable="compile_revert_win32.bat"/>
</then>
<else>
<exec command="sh" executable="./compile_jni_linux.sh"/>
<exec command="sh" executable="./compile_revert_linux.sh"/>
</else>
</if>

Expand Down
4 changes: 4 additions & 0 deletions capture-server/compile_revert_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
echo $VIX_INCLUDE
gcc -I $JAVA_HOME/include -I $JAVA_HOME/include/linux -I $VIX_INCLUDE VMwareServerExt.c -c -g
gcc -shared $VIX_LIB/libvmware-vix.so VMwareServerExt.o -o libVMwareServerExt.so -ldl
2 changes: 2 additions & 0 deletions capture-server/compile_revert_win32.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cl -I "%VIX_INCLUDE%" revert.c /MT /link "%VIX_LIB%\vix.lib"

0 comments on commit 28ce07e

Please sign in to comment.