diff --git a/.gitignore b/.gitignore index 9c9b6c3..691a4e2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /lbs.exe /build/lbs.ilk /obj/thirdparty/uniproc/src +/releases diff --git a/.gitmodules b/.gitmodules index 0d4be57..85b3962 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/makefile b/makefile index 6736d45..d7cdb6d 100644 --- a/makefile +++ b/makefile @@ -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 - \ No newline at end of file + $(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") diff --git a/thirdparty/libgit2 b/thirdparty/libgit2 new file mode 160000 index 0000000..21a351b --- /dev/null +++ b/thirdparty/libgit2 @@ -0,0 +1 @@ +Subproject commit 21a351b0ed207d0871cb23e09c027d1ee42eae98