Skip to content

Commit

Permalink
Restructured the project file
Browse files Browse the repository at this point in the history
Move OS specific configuration to separate project files
  • Loading branch information
Christophe Dumez committed Nov 20, 2010
1 parent 1ca0840 commit 8a1e79d
Show file tree
Hide file tree
Showing 34 changed files with 301 additions and 320 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public:
bool exec()
{
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
conf->addDefine("DISABLE_GUI");
conf->addExtra("CONFIG += nox");
}
return(QT_VERSION >= 0x040500);
}
Expand Down
16 changes: 16 additions & 0 deletions macxconf.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PREFIX = /usr/local
BINDIR = /usr/local/bin
DATADIR = /usr/local/share

INCLUDEPATH += /usr/local/include/libtorrent /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include
LIBS += -ltorrent-rasterbar -lcrypto -L/opt/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -framework Cocoa -framework Carbon

document_icon.path = Contents/Resources
document_icon.files = Icons/qBitTorrentDocument.icns

QMAKE_BUNDLE_DATA += document_icon
ICON = Icons/qbittorrent_mac.icns
QMAKE_INFO_PLIST = Info.plist

DEFINES += WITH_GEOIP_EMBEDDED
message("On Mac OS X, GeoIP database must be embedded.")
10 changes: 10 additions & 0 deletions os2conf.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
LIBS += -ltorrent-rasterbar \
-lboost_thread \
-lboost_system \
-lboost_filesystem \
-lssl -lcrypto -lidn -lpthread

RC_FILE = qbittorrent_os2.rc

DEFINES += WITH_GEOIP_EMBEDDED
message("On eCS(OS/2), GeoIP database must be embedded.")
2 changes: 1 addition & 1 deletion qcm/qt4.qcm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public:
bool exec()
{
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
conf->addDefine("DISABLE_GUI");
conf->addExtra("CONFIG += nox");
}
return(QT_VERSION >= 0x040500);
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/geoip.qrc

This file was deleted.

19 changes: 19 additions & 0 deletions src/geoip/geoip.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
INCLUDEPATH += $$PWD

HEADERS += $$PWD/geoipmanager.h

SOURCES += $$PWD/geoipmanager.cpp

# Add GeoIP resource file if the GeoIP database
# should be embedded in qBittorrent executable
contains(DEFINES, WITH_GEOIP_EMBEDDED) {
exists("geoip/GeoIP.dat") {
message("GeoIP.dat was found in src/geoip/.")
RESOURCES += $$PWD/geoip.qrc
} else {
DEFINES -= WITH_GEOIP_EMBEDDED
error("GeoIP.dat was not found in src/geoip/ folder, please follow instructions in src/geoip/README.")
}
} else {
message("GeoIP database will not be embedded in qBittorrent executable.")
}
5 changes: 5 additions & 0 deletions src/geoip/geoip.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/geoip">
<file>GeoIP.dat</file>
</qresource>
</RCC>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions src/preferences/preferences.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
INCLUDEPATH += $$PWD

!contains(DEFINES, DISABLE_GUI) {

HEADERS += $$PWD/options_imp.h \
$$PWD/advancedsettings.h

SOURCES += $$PWD/options_imp.cpp

FORMS += $$PWD/options.ui
}

HEADERS += $$PWD/preferences.h
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion src/properties/properties.pri
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
INCLUDEPATH += $$PWD

FORMS += $$PWD/propertieswidget.ui
FORMS += $$PWD/propertieswidget.ui \
$$PWD/trackersadditiondlg.ui \
$$PWD/peer.ui

HEADERS += $$PWD/propertieswidget.h \
$$PWD/peerlistwidget.h \
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/searchengine/searchengine.pri
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
INCLUDEPATH += $$PWD

FORMS += $$PWD/search.ui \
$$PWD/engineselect.ui
$$PWD/engineselect.ui \
$$PWD/pluginsource.ui

HEADERS += $$PWD/searchengine.h \
$$PWD/searchtab.h \
Expand Down
Loading

0 comments on commit 8a1e79d

Please sign in to comment.