cleaned project files, TODO: add cmake project file
This commit is contained in:
parent
1356901224
commit
98f94fc1b1
56
general.pri
56
general.pri
|
@ -1,28 +1,12 @@
|
|||
#dirs
|
||||
UI_DIR = ./gui
|
||||
# specify build directories for moc, object and rcc files
|
||||
MOC_DIR = ./moc
|
||||
OBJECTS_DIR = ./obj
|
||||
RCC_DIR = ./res
|
||||
# compiler flags
|
||||
|
||||
# compiler flags: enable C++11
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
QMAKE_LFLAGS += -std=c++11
|
||||
# prefix
|
||||
targetprefix = $$(TARGET_PREFIX)
|
||||
message("Using target prefix \"$${targetprefix}\".")
|
||||
# print install root
|
||||
message("Using install root \"$$(INSTALL_ROOT)\".")
|
||||
# target
|
||||
CONFIG(debug, debug|release) {
|
||||
TARGET = $${targetprefix}$${projectname}d
|
||||
} else {
|
||||
TARGET = $${targetprefix}$${projectname}
|
||||
}
|
||||
# add defines
|
||||
DEFINES += "'PROJECT_NAME=\"$${projectname}\"'"
|
||||
DEFINES += "'APP_NAME=\"$${appname}\"'"
|
||||
DEFINES += "'APP_AUTHOR=\"$${appauthor}\"'"
|
||||
DEFINES += "'APP_URL=\"$${appurl}\"'"
|
||||
DEFINES += "'APP_VERSION=\"$${VERSION}\"'"
|
||||
|
||||
# variables to check target architecture
|
||||
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
||||
win32-g++-32:QMAKE_TARGET.arch = x86
|
||||
|
@ -30,7 +14,30 @@ win32-g++-64:QMAKE_TARGET.arch = x86_64
|
|||
linux-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
||||
linux-g++-32:QMAKE_TARGET.arch = x86
|
||||
linux-g++-64:QMAKE_TARGET.arch = x86_64
|
||||
# configuration
|
||||
|
||||
# determine and print target prefix
|
||||
targetprefix = $$(TARGET_PREFIX)
|
||||
message("Using target prefix \"$${targetprefix}\".")
|
||||
|
||||
# print install root
|
||||
message("Using install root \"$$(INSTALL_ROOT)\".")
|
||||
|
||||
# set target
|
||||
CONFIG(debug, debug|release) {
|
||||
TARGET = $${targetprefix}$${projectname}d
|
||||
} else {
|
||||
TARGET = $${targetprefix}$${projectname}
|
||||
}
|
||||
|
||||
# add defines for meta data
|
||||
DEFINES += "APP_METADATA_AVAIL"
|
||||
DEFINES += "'PROJECT_NAME=\"$${projectname}\"'"
|
||||
DEFINES += "'APP_NAME=\"$${appname}\"'"
|
||||
DEFINES += "'APP_AUTHOR=\"$${appauthor}\"'"
|
||||
DEFINES += "'APP_URL=\"$${appurl}\"'"
|
||||
DEFINES += "'APP_VERSION=\"$${VERSION}\"'"
|
||||
|
||||
# configure Qt modules and defines
|
||||
mobile {
|
||||
DEFINES += CONFIG_MOBILE
|
||||
} else:desktop {
|
||||
|
@ -61,7 +68,7 @@ no-gui {
|
|||
}
|
||||
guiqtquick {
|
||||
message("Configured for Qt Quick GUI support.")
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += quick
|
||||
QT += quick
|
||||
CONFIG(debug, debug|release) {
|
||||
CONFIG += qml_debug
|
||||
}
|
||||
|
@ -69,11 +76,12 @@ guiqtquick {
|
|||
}
|
||||
guiqtwidgets {
|
||||
message("Configured for Qt widgets GUI support.")
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
QT += widgets
|
||||
DEFINES += GUI_QTWIDGETS
|
||||
DEFINES += MODEL_UNDO_SUPPORT
|
||||
}
|
||||
# Windows stuff: configuration for cross compliation with mingw-w64
|
||||
|
||||
# configuration for cross compliation with mingw-w64
|
||||
win32 {
|
||||
QMAKE_TARGET_PRODUCT = "$${appname}"
|
||||
QMAKE_TARGET_COPYRIGHT = "by $${appauthor}"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# meta data
|
||||
projectname = repoindex
|
||||
appname = "Repository Index"
|
||||
appauthor = Martchus
|
||||
|
@ -12,32 +13,17 @@ VERSION = 1.0.0
|
|||
}
|
||||
}
|
||||
|
||||
# basic configuration: console application
|
||||
TEMPLATE = app
|
||||
|
||||
CONFIG += console # enables qDebug()
|
||||
|
||||
QT += core network websockets concurrent KArchive
|
||||
|
||||
SOURCES += main.cpp \
|
||||
alpm/manager.cpp \
|
||||
alpm/package.cpp \
|
||||
alpm/utilities.cpp \
|
||||
network/server.cpp \
|
||||
network/connection.cpp \
|
||||
alpm/group.cpp \
|
||||
alpm/config.cpp \
|
||||
alpm/resolvebuildorder.cpp \
|
||||
alpm/mingwbundle.cpp \
|
||||
network/userrepository.cpp \
|
||||
alpm/alpmpackage.cpp \
|
||||
alpm/aurpackage.cpp \
|
||||
alpm/alpmdatabase.cpp \
|
||||
alpm/repository.cpp \
|
||||
alpm/upgradelookup.cpp \
|
||||
alpm/suggestionslookup.cpp \
|
||||
alpm/packageinfolookup.cpp \
|
||||
alpm/packagelookup.cpp
|
||||
# add defines for configuration
|
||||
CONFIG(release, debug|release) {
|
||||
DEFINES += NDEBUG
|
||||
}
|
||||
|
||||
# add project files
|
||||
HEADERS += \
|
||||
alpm/manager.h \
|
||||
alpm/package.h \
|
||||
|
@ -57,11 +43,38 @@ HEADERS += \
|
|||
alpm/upgradelookup.h \
|
||||
alpm/suggestionslookup.h \
|
||||
alpm/packageinfolookup.h \
|
||||
alpm/packagelookup.h
|
||||
alpm/packagelookup.h \
|
||||
alpm/packagefinder.h
|
||||
|
||||
DISTFILES += \
|
||||
SOURCES += main.cpp \
|
||||
alpm/manager.cpp \
|
||||
alpm/package.cpp \
|
||||
alpm/utilities.cpp \
|
||||
network/server.cpp \
|
||||
network/connection.cpp \
|
||||
alpm/group.cpp \
|
||||
alpm/config.cpp \
|
||||
alpm/resolvebuildorder.cpp \
|
||||
alpm/mingwbundle.cpp \
|
||||
network/userrepository.cpp \
|
||||
alpm/alpmpackage.cpp \
|
||||
alpm/aurpackage.cpp \
|
||||
alpm/alpmdatabase.cpp \
|
||||
alpm/repository.cpp \
|
||||
alpm/upgradelookup.cpp \
|
||||
alpm/suggestionslookup.cpp \
|
||||
alpm/packageinfolookup.cpp \
|
||||
alpm/packagelookup.cpp \
|
||||
alpm/packagefinder.cpp
|
||||
|
||||
OTHER_FILES += \
|
||||
README.md \
|
||||
LICENSE \
|
||||
CMakeLists.txt \
|
||||
resources/config.h.in \
|
||||
resources/windows.rc.in
|
||||
|
||||
DISTFILES += \
|
||||
web/index.html \
|
||||
web/js/pagination.js \
|
||||
web/js/entrymanagement.js \
|
||||
|
@ -76,11 +89,6 @@ DISTFILES += \
|
|||
repoindex.conf.js \
|
||||
web/js/client.js
|
||||
|
||||
# defines
|
||||
CONFIG(release, debug|release) {
|
||||
DEFINES += NDEBUG
|
||||
}
|
||||
|
||||
# libs and includepath
|
||||
CONFIG(debug, debug|release) {
|
||||
LIBS += -lc++utilitiesd
|
||||
|
|
Loading…
Reference in New Issue