-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched quazip to dynamic linking only.
- Loading branch information
1 parent
73e8665
commit 61c0081
Showing
19 changed files
with
61 additions
and
5,635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,4 +68,5 @@ unix { | |
#message("Enabled dynamic linking of libgit2") | ||
PKGCONFIG += libgit2 | ||
} | ||
LIBS += -lz | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright (c) 2021 Fritzing GmbH | ||
|
||
message("Using fritzing quazip detect script.") | ||
|
||
exists($$absolute_path($$PWD/../../quazip_qt5)) { | ||
QUAZIPPATH = $$absolute_path($$PWD/../../quazip_qt5) | ||
message("found quazip in $${QUAZIPPATH}") | ||
} else { | ||
error("quazip could not be found.") | ||
} | ||
|
||
message("including $$absolute_path($${QUAZIPPATH}/include/quazip)") | ||
|
||
unix:!macx { | ||
message("including quazip library on linux") | ||
INCLUDEPATH += $$absolute_path($${QUAZIPPATH}/include/quazip) | ||
LIBS += -L$$absolute_path($${QUAZIPPATH}/lib) -lquazip1-qt5 | ||
QMAKE_RPATHDIR += $$absolute_path($${QUAZIPPATH}/lib) | ||
LIBS += -lz | ||
} | ||
|
||
macx { | ||
message("including quazip library on mac os") | ||
INCLUDEPATH += $$absolute_path($${QUAZIPPATH}/include/quazip) | ||
LIBS += -L$$absolute_path($${QUAZIPPATH}/lib) -lquazip1-qt5 | ||
QMAKE_RPATHDIR += $$absolute_path($${QUAZIPPATH}/lib) | ||
LIBS += -lz | ||
} | ||
|
||
win32 { | ||
|
||
message("including quazip library on windows") | ||
|
||
QUAZIPINCLUDE = $$absolute_path($${QUAZIPPATH}/include/quazip) | ||
exists($$QUAZIPINCLUDE/quazip.h) { | ||
message("found quazip include path at $$QUAZIPINCLUDE") | ||
} else { | ||
message("Fritzing requires quazip") | ||
error("quazip include path not found in $$QUAZIPINCLUDE") | ||
} | ||
|
||
INCLUDEPATH += $$QUAZIPINCLUDE | ||
|
||
contains(QMAKE_TARGET.arch, x86_64) { | ||
QUAZIPLIB = $$absolute_path($$QUAZIPPATH/build64/Release) | ||
} else { | ||
QUAZIPLIB = $$absolute_path($$QUAZIPPATH/build32/Release) | ||
} | ||
|
||
exists($$QUAZIPLIB/quazip1-qt5.lib) { | ||
message("found quazip library in $$QUAZIPLIB") | ||
} else { | ||
error("quazip library not found in $$QUAZIPLIB") | ||
} | ||
|
||
LIBS += -L$$QUAZIPLIB -lquazip1-qt5 | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.