Permalink
Browse files

Build libgit2 as part of the mono build

  • Loading branch information...
1 parent e7e8c2d commit 13745b7423d25e2754034ec764c3cf3bb9021f61 @nulltoken nulltoken committed May 28, 2012
Showing with 17 additions and 1 deletion.
  1. +17 −1 build.libgit2sharp.sh
View
@@ -1,3 +1,19 @@
#!/bin/sh
-xbuild CI-build.msbuild /t:Deploy
+PREVIOUS_LD=$LD_LIBRARY_PATH
+
+mkdir cmake-build && cd cmake-build
+
+cmake -DBUILD_SHARED_LIBS:BOOL=ON -DTHREADSAFE:BOOL=ON -DBUILD_CLAR:BOOL=OFF -DCMAKE_INSTALL_PREFIX=./libgit2-bin ../libgit2
+cmake --build . --target install
+
+LD_LIBRARY_PATH=$PWD/libgit2-bin/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH
+
+cd ..
+
+echo $LD_LIBRARY_PATH
+xbuild CI-build.msbuild /t:Deploy
+
+LD_LIBRARY_PATH=$PREVIOUS_LD
+export LD_LIBRARY_PATH

0 comments on commit 13745b7

Please sign in to comment.