Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Build libgit2 as part of the mono build

  • Loading branch information...
commit 13745b7423d25e2754034ec764c3cf3bb9021f61 1 parent e7e8c2d
@nulltoken nulltoken authored
Showing with 17 additions and 1 deletion.
  1. +17 −1 build.libgit2sharp.sh
View
18 build.libgit2sharp.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.