Skip to content

Commit

Permalink
Changed gcc lib extension to be dll #13
Browse files Browse the repository at this point in the history
  • Loading branch information
mxklb committed Oct 21, 2018
1 parent 166c5a4 commit 5e54eac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/loadlibs.pri
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ for(lib, customLibs) {
isEmpty(LIB_EXTENSION) {
LIB_EXTENSION = lib
}
gcc {
LIB_EXTENSION = dll
}
}
#message($${LIB_EXTENSION})

Expand All @@ -57,11 +60,8 @@ for(lib, customLibs) {
PRE_TARGETDEPS += $${OUTDIR}/$${WINDIR}/$${LIBNAME}.$${LIB_EXTENSION}
}
gcc {
LIBS += -L$${OUTDIR}/$${WINDIR}/ -l$${LIBNAME}
PRE_TARGETDEPS += $${OUTDIR}/$${WINDIR}/lib$${LIBNAME}.$${LIB_EXTENSION}
QMAKE_LFLAGS += "-Wl,-rpath,\'$$OUTDIR\'/\'$$WINDIR\'"
BUILD_DIR = $$system("dir")
message($${BUILD_DIR})
LIBS += $${OUTDIR}/$${WINDIR}/$${LIBNAME}.$${LIB_EXTENSION}
PRE_TARGETDEPS += $${OUTDIR}/$${WINDIR}/$${LIBNAME}.$${LIB_EXTENSION}
}
}
unix:!macx {
Expand Down

0 comments on commit 5e54eac

Please sign in to comment.