Skip to content

Commit 13745b7

Browse files
committed
Build libgit2 as part of the mono build
1 parent e7e8c2d commit 13745b7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

build.libgit2sharp.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
#!/bin/sh
22

3-
xbuild CI-build.msbuild /t:Deploy
3+
PREVIOUS_LD=$LD_LIBRARY_PATH
4+
5+
mkdir cmake-build && cd cmake-build
6+
7+
cmake -DBUILD_SHARED_LIBS:BOOL=ON -DTHREADSAFE:BOOL=ON -DBUILD_CLAR:BOOL=OFF -DCMAKE_INSTALL_PREFIX=./libgit2-bin ../libgit2
8+
cmake --build . --target install
9+
10+
LD_LIBRARY_PATH=$PWD/libgit2-bin/lib:$LD_LIBRARY_PATH
11+
export LD_LIBRARY_PATH
12+
13+
cd ..
14+
15+
echo $LD_LIBRARY_PATH
16+
xbuild CI-build.msbuild /t:Deploy
17+
18+
LD_LIBRARY_PATH=$PREVIOUS_LD
19+
export LD_LIBRARY_PATH

0 commit comments

Comments
 (0)