Decided to leave the VFS tab for now. Filtering likely doesn't work, except Show Only Open. Sorting works. Rewrites to replace dynamicRoles done for Mods and Plugins tables. Database.qml now reads "moddir", though installing extracted is still unimplemented so far. Launch still doesn't work. Ignore the "file -> test extract". It's a test for file extraction.
110 lines
3 KiB
Prolog
110 lines
3 KiB
Prolog
QT += core quick widgets sql dbus qml
|
|
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
# In order to do so, uncomment the following line.
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
#QMAKE_CXX = clang++
|
|
#QMAKE_LINK = clang++
|
|
QMAKE_LDFLAGS += -fPIE -g
|
|
#QMAKE_CXXFLAGS_WARN_ON += -Wshadow
|
|
|
|
LIBS += -larchive
|
|
|
|
#CONFIG+=sanitizer sanitize_address sanitize_undefined
|
|
|
|
debug {
|
|
#CONFIG+=sanitizer sanitize_address sanitize_undefined
|
|
#CONFIG+=sanitize_thread sanitize_memory
|
|
}
|
|
|
|
SOURCES += \
|
|
src/file.cpp \
|
|
src/http.cpp \
|
|
src/main.cpp \
|
|
src/fomodreader.cpp \
|
|
src/modreader.cpp \
|
|
src/nxmhandler.cpp \
|
|
src/process.cpp \
|
|
src/utils.cpp \
|
|
src/sqldatabase.cpp \
|
|
src/sqldatabasemodel.cpp \
|
|
src/vfstablemodel.cpp
|
|
|
|
HEADERS += \
|
|
src/file.h \
|
|
src/fomodreader.h \
|
|
src/http.h \
|
|
src/modreader.h \
|
|
src/nxmhandler.h \
|
|
src/process.h \
|
|
src/utils.h \
|
|
src/sqldatabase.h \
|
|
src/sqldatabasemodel.h \
|
|
src/vfstablemodel.h
|
|
|
|
RESOURCES += qml.qrc
|
|
|
|
# LIBS += -larchive
|
|
|
|
# /**
|
|
# * For FUSE-based mod archive VFS:
|
|
# **/
|
|
DEFINES += WITH_FUSE
|
|
CONFIG += c++17 cmdline link_pkgconfig
|
|
|
|
PKGCONFIG += fuse3 libunarr
|
|
#QMAKE_CXXFLAGS += -D_FILE_OFFSET_BITS=64 -O3
|
|
QMAKE_CXXFLAGS += -D_FILE_OFFSET_BITS=64 -g -O0
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
QMAKE_CXXFLAGS_DEBUG -= -O2
|
|
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
# In order to do so, uncomment the following line.
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
SOURCES += \
|
|
src/fusemanager.cpp \
|
|
FuseMounter/fusebase.cpp \
|
|
FuseMounter/fuseinterface.cpp \
|
|
FuseMounter/fusearchive.cpp \
|
|
FuseMounter/fuseproxy.cpp \
|
|
FuseMounter/fusesandbox.cpp
|
|
#FuseMounter/archivemanager.cpp \
|
|
#FuseMounter/database.cpp \
|
|
#FuseMounter/fsproxy.cpp \
|
|
#FuseMounter/fusestuff.cpp \
|
|
#FuseMounter/modarchive.cpp
|
|
|
|
# Default rules for deployment.
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
HEADERS += \
|
|
src/fusemanager.h \
|
|
FuseMounter/fusebase.h \
|
|
FuseMounter/fuseinterface.h \
|
|
FuseMounter/fusearchive.h \
|
|
FuseMounter/fuseproxy.h \
|
|
FuseMounter/fusesandbox.h
|
|
# FuseMounter/archivemanager.h \
|
|
# FuseMounter/database.h \
|
|
# FuseMounter/fsproxy.h \
|
|
# FuseMounter/fusestuff.h \
|
|
# FuseMounter/modarchive.h
|
|
|
|
# /*************************/
|
|
# /* End of FUSE-based VFS */
|
|
# /*************************/
|
|
|
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
|
QML_IMPORT_PATH =
|
|
|
|
# Additional import path used to resolve QML modules just for Qt Quick Designer
|
|
QML_DESIGNER_IMPORT_PATH =
|
|
|
|
# Default rules for deployment.
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
!isEmpty(target.path): INSTALLS += target
|