Added libgit2 dependency

This commit is contained in:
2025-03-10 20:11:21 +11:00
parent 68e2c49c8f
commit af6d3223da
4 changed files with 14 additions and 3 deletions

1
.gitignore vendored
View File

@@ -16,3 +16,4 @@
/lbs.exe
/build/lbs.ilk
/obj/thirdparty/uniproc/src
/releases

3
.gitmodules vendored
View File

@@ -4,3 +4,6 @@
[submodule "thirdparty/uniproc"]
path = thirdparty/uniproc
url = ssh://gitea@git.rileyk.au:19482/riley/uniproc.git
[submodule "thirdparty/libgit2"]
path = thirdparty/libgit2
url = https://github.com/libgit2/libgit2.git

View File

@@ -1,8 +1,8 @@
CXX := clang++
CC := clang
INCLUDES := include src thirdparty/luajit/src thirdparty/uniproc/include
LIBRARY_DIRECTORIES := thirdparty/luajit/src
INCLUDES := include src thirdparty/luajit/src thirdparty/uniproc/include thirdparty/libgit2/include
LIBRARY_DIRECTORIES := thirdparty/luajit/src thirdparty/libgit2
LINKER_INPUTS := lua51 luajit
DEBUG_DEFINES :=
@@ -63,4 +63,10 @@ build_deps: .make/thirdparty_luajit .make/thirdparty_uniproc
.make/thirdparty_uniproc:
git submodule update --init --recursive --remote
$(call touch,".make/thirdparty_uniproc")
.make/thirdparty_libgit2:
git submodule update --init --recursive --remote
cd thirdparty/libgit2 && mkdir build
cd thirdparty/libgit2/build && cmake .. && cmake --build .
$(call touch,".make/thirdparty_libgit2")

1
thirdparty/libgit2 vendored Submodule

Submodule thirdparty/libgit2 added at 21a351b0ed