Update cross building for Windows on Linux

This updates the instructions and the plumbing to be able to link against
a locally built libgit2

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-03-07 16:33:00 -08:00
parent 18303b6f43
commit 4edf37f9be
5 changed files with 20 additions and 3 deletions

View file

@ -126,7 +126,14 @@ LIBS *= $$XSLT_LIBS $$XML2_LIBS
# We're searching for:
# libzip
# sqlite3
link_pkgconfig: PKGCONFIG += libzip sqlite3 libgit2
link_pkgconfig: PKGCONFIG += libzip sqlite3
isEmpty(LIBGIT2DEVEL) {
PKGCONFIG += libgit2
} else {
INCLUDEPATH += $$LIBGIT2DEVEL/include
LIBS += -L$$LIBGIT2DEVEL/build -lgit2 -lz -lcrypto
}
# Add libiconv if needed
link_pkgconfig: packagesExist(libiconv): PKGCONFIG += libiconv