Browse Source

Added build procedure for windows

Petr Mironychev 6 years ago
parent
commit
85c4aa0a21
3 changed files with 22 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 7 1
      CuteGit.pro
  3. 14 0
      README.md

+ 1 - 0
.gitignore

@@ -4,6 +4,7 @@
 *.lo
 *.o
 *.obj
+*.pro.user
 
 # Precompiled Headers
 *.gch

+ 7 - 1
CuteGit.pro

@@ -4,7 +4,13 @@ TARGET = CuteGit
 
 TEMPLATE = app
 
-LIBS += -lgit2
+unix {
+    LIBS += -lgit2
+}
+win32 {
+    INCLUDEPATH += $$PWD//include
+    LIBS += -L$$PWD//lib// -lgit2
+}
 
 SOURCES += \
     main.cpp \

+ 14 - 0
README.md

@@ -1,2 +1,16 @@
 # CuteGit
 
+# Build for windows
+For building and run CuteGit on Windows, you need:
+* cmake
+* libgit2 library from here https://github.com/libgit2/libgit2 or site https://libgit2.github.com
+
+## Instruction:
+1. Check correct install cmake(system path for python, ...Qt\5.7\mingw53_32\bin, ...Qt\Tools\mingw530_32\bin)
+2. Create new folder in libgit2 library directory folder(example: build)
+3. Open "build" folder in command line and input follow commands:
+    #cmake .. -G "MinGW Makefiles"
+    #cmake --build .
+4. Built file libgit2.dll copy to "lib" folder in root directory CuteGit, if the folder doesn't exist, then create a new one.
+5. Copy "include" folder from libgit2 library to root directory CuteGit.
+6. Build CuteGit.