新增sql连接,目前支持mysql、sqlite、oracle连接以及相关数据库操作
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
QT += core gui widgets sql printsupport
|
||||
|
||||
TARGET = Omnitool
|
||||
TEMPLATE = app
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
SOURCES += main.cpp \
|
||||
src/dialogs/ElaDatabaseConnectionDialog.cpp \
|
||||
src/dialogs/DatabaseConnectionConfigDialog.cpp \
|
||||
src/mainwindow/mainwindow.cpp \
|
||||
src/utils/configmanager.cpp \
|
||||
src/pages/DatabaseManagerPage.cpp \
|
||||
src/utils/logmanager.cpp \
|
||||
src/models/EditableSqlModel.cpp \
|
||||
src/connectors/DatabaseConnector.cpp \
|
||||
src/connectors/MySQLConnector.cpp \
|
||||
src/connectors/PostgreSQLConnector.cpp \
|
||||
src/connectors/SQLiteConnector.cpp \
|
||||
src/connectors/SQLServerConnector.cpp \
|
||||
src/connectors/OracleConnector.cpp
|
||||
|
||||
HEADERS += src/dialogs/ElaDatabaseConnectionDialog.h \
|
||||
src/dialogs/DatabaseConnectionConfigDialog.h \
|
||||
src/mainwindow/mainwindow.h \
|
||||
src/utils/configmanager.h \
|
||||
src/pages/DatabaseManagerPage.h \
|
||||
src/utils/logmanager.h \
|
||||
src/models/EditableSqlModel.h \
|
||||
src/connectors/DatabaseConnector.h \
|
||||
src/connectors/MySQLConnector.h \
|
||||
src/connectors/PostgreSQLConnector.h \
|
||||
src/connectors/SQLiteConnector.h \
|
||||
src/connectors/SQLServerConnector.h \
|
||||
src/connectors/OracleConnector.h
|
||||
|
||||
RESOURCES += resources.qrc
|
||||
|
||||
CONFIG += c++17
|
||||
CONFIG += debug_and_release
|
||||
|
||||
# Compiler warnings (MSVC)
|
||||
win32-msvc {
|
||||
QMAKE_CXXFLAGS += /W3
|
||||
}
|
||||
|
||||
# Compiler warnings (MinGW/GCC) - kept for compatibility
|
||||
win32-g++ {
|
||||
QMAKE_CXXFLAGS += -Wall -Wextra
|
||||
QMAKE_LFLAGS += -fno-use-linker-plugin
|
||||
}
|
||||
|
||||
INCLUDEPATH += src
|
||||
INCLUDEPATH += $$PWD/3rd/ElaWidgetTools/include
|
||||
INCLUDEPATH += $$PWD/3rd/qscintilla/include
|
||||
|
||||
win32 {
|
||||
LIBS += -L$$PWD/3rd/ElaWidgetTools/lib -lElaWidgetTools
|
||||
LIBS += -L$$PWD/3rd/qscintilla/lib -lqscintilla2_qt6
|
||||
LIBS += -ld3d11 -ldxgi
|
||||
}
|
||||
|
||||
DESTDIR = $$PWD/bin
|
||||
OBJECTS_DIR = $$PWD/build
|
||||
MOC_DIR = $$PWD/build
|
||||
RCC_DIR = $$PWD/build
|
||||
Reference in New Issue
Block a user