Browse Source

- Use pkgconfig for GNU common c++

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
c8c53e2812
  1. 6
      configure
  2. 6
      qcm/libcommoncpp2.qcm
  3. 2
      src/src.pro

6
configure vendored

@ -427,7 +427,7 @@ public: @@ -427,7 +427,7 @@ public:
QString s;
s = conf->getenv("QC_WITH_LIBCOMMONCPP2_INC");
if(!s.isEmpty()) {
if(!conf->checkHeader(s, "cc++/common.h")) {
if(!conf->checkHeader(s, "cc++/url.h")) {
return false;
}
}else{
@ -436,7 +436,7 @@ public: @@ -436,7 +436,7 @@ public:
sl << "/usr/local/include";
bool found = false;
foreach(s, sl){
if(conf->checkHeader(s, "cc++/common.h")){
if(conf->checkHeader(s, "cc++/url.h")){
found = true;
break;
}
@ -470,7 +470,7 @@ public: @@ -470,7 +470,7 @@ public:
if(!found) return false;
conf->addLib(QString("-L") + s);
}
conf->addLib("-lccext2 -lccgnu2");
//conf->addLib("-lccext2 -lccgnu2");
return true;
}
};

6
qcm/libcommoncpp2.qcm

@ -15,7 +15,7 @@ public: @@ -15,7 +15,7 @@ public:
QString s;
s = conf->getenv("QC_WITH_LIBCOMMONCPP2_INC");
if(!s.isEmpty()) {
if(!conf->checkHeader(s, "cc++/common.h")) {
if(!conf->checkHeader(s, "cc++/url.h")) {
return false;
}
}else{
@ -24,7 +24,7 @@ public: @@ -24,7 +24,7 @@ public:
sl << "/usr/local/include";
bool found = false;
foreach(s, sl){
if(conf->checkHeader(s, "cc++/common.h")){
if(conf->checkHeader(s, "cc++/url.h")){
found = true;
break;
}
@ -58,7 +58,7 @@ public: @@ -58,7 +58,7 @@ public:
if(!found) return false;
conf->addLib(QString("-L") + s);
}
conf->addLib("-lccext2 -lccgnu2");
//conf->addLib("-lccext2 -lccgnu2");
return true;
}
};

2
src/src.pro

@ -29,7 +29,7 @@ QMAKE_CXXFLAGS_RELEASE += -fwrapv @@ -29,7 +29,7 @@ QMAKE_CXXFLAGS_RELEASE += -fwrapv
QMAKE_CXXFLAGS_DEBUG += -fwrapv
CONFIG += link_pkgconfig
PKGCONFIG += libtorrent
PKGCONFIG += libtorrent libccext2 libccgnu2
QT += network xml
DEFINES += QT_NO_CAST_TO_ASCII

Loading…
Cancel
Save