Skip to content

Commit da69653

Browse files
committed
built libs in linux
- tested with Linux Mint 14
1 parent 6392de2 commit da69653

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

libs/common.pri

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
# place the directory where your library will be compiled and accessed from:
2-
CPPLIBS=$$PWD/cpplibs
1+
# CPPLIBS - the directory where your library will be compiled and accessed from:
2+
# QTLIBS - place directory of Qt libraries folder
33

4-
# place directory of Qt library folder
5-
QTLIBS=C:/Qt/Qt5.0.2/5.0.2/mingw47_32/lib
4+
win32 {
5+
CPPLIBS=$$PWD/cpplibs
6+
QTLIBS=C:/Qt/Qt5.0.2/5.0.2/mingw47_32/lib
7+
8+
isEmpty( QTLIBS ) {
9+
error("You need to define QTLIBS environment variable(Qt lib folder).")
10+
}
11+
}
12+
13+
linux-g++ {
14+
CPPLIBS=$$PWD/cpplibsLINUX
15+
}
616

717
# common settings for testcases in libs
818
CONFIG += debug
@@ -32,6 +42,3 @@ isEmpty(CPPLIBS) {
3242
error("You should define CPPLIBS environment variable to point to this location.")
3343
}
3444

35-
isEmpty( QTLIBS ) {
36-
error("You need to define QTLIBS environment variable(Qt lib folder).")
37-
}

libs/libs.pri

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
include (common.pri)
44
DESTDIR = $$CPPLIBS
5-
LIBS += -L$$CPPLIBS -L$$QTLIBS
5+
LIBS += -L$$CPPLIBS
6+
7+
win32 {
8+
LIBS += -L$$QTLIBS
9+
}
10+
611
TEMPLATE = lib
712

813
win32 {

0 commit comments

Comments
 (0)