mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-17 09:19:38 -06:00
build: Remove qmake project files
This deletes all qmake project files. To simplify things and in preparation for Qt6 support we are now only supporting cmake builds.
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
CONFIG += debug_and_release
|
||||
|
||||
HEADERS += \
|
||||
json.hpp
|
||||
@@ -1,13 +0,0 @@
|
||||
TEMPLATE = lib
|
||||
|
||||
QT += core gui network
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
||||
|
||||
CONFIG += staticlib
|
||||
CONFIG += debug_and_release
|
||||
|
||||
HEADERS += \
|
||||
qcustomplot.h
|
||||
|
||||
SOURCES += \
|
||||
qcustomplot.cpp
|
||||
@@ -1,16 +0,0 @@
|
||||
TEMPLATE = lib
|
||||
|
||||
QT += core gui widgets
|
||||
|
||||
CONFIG += staticlib
|
||||
CONFIG += debug_and_release
|
||||
|
||||
HEADERS += \
|
||||
src/qhexedit.h \
|
||||
src/chunks.h \
|
||||
src/commands.h
|
||||
|
||||
SOURCES += \
|
||||
src/qhexedit.cpp \
|
||||
src/chunks.cpp \
|
||||
src/commands.cpp
|
||||
@@ -1,21 +0,0 @@
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TEMPLATE = lib
|
||||
|
||||
VERSION = 2.1.0
|
||||
|
||||
CONFIG += qt warn_on release
|
||||
|
||||
HEADERS = \
|
||||
src/qhexedit.h \
|
||||
src/chunks.h \
|
||||
src/commands.h
|
||||
|
||||
|
||||
SOURCES = \
|
||||
src/qhexedit.cpp \
|
||||
src/chunks.cpp \
|
||||
src/commands.cpp
|
||||
|
||||
TARGET = qhexedit
|
||||
@@ -1,240 +0,0 @@
|
||||
# The project file for the QScintilla library.
|
||||
#
|
||||
# Copyright (c) 2019 Riverbank Computing Limited <info@riverbankcomputing.com>
|
||||
#
|
||||
# This file is part of QScintilla.
|
||||
#
|
||||
# This file may be used under the terms of the GNU General Public License
|
||||
# version 3.0 as published by the Free Software Foundation and appearing in
|
||||
# the file LICENSE included in the packaging of this file. Please review the
|
||||
# following information to ensure the GNU General Public License version 3.0
|
||||
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
||||
#
|
||||
# If you do not wish to use this file under the terms of the GPL version 3.0
|
||||
# then you may purchase a commercial license. For more information contact
|
||||
# info@riverbankcomputing.com.
|
||||
#
|
||||
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
# This must be kept in sync with Python/configure.py, Python/configure-old.py,
|
||||
# example-Qt4Qt5/application.pro and designer-Qt4Qt5/designer.pro.
|
||||
!win32:VERSION = 15.0.0
|
||||
|
||||
TEMPLATE = lib
|
||||
TARGET = qscintilla2
|
||||
CONFIG += qt warn_off thread exceptions hide_symbols staticlib debug_and_release
|
||||
INCLUDEPATH += . ../include ../lexlib ../src
|
||||
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
|
||||
!CONFIG(staticlib) {
|
||||
DEFINES += QSCINTILLA_MAKE_DLL
|
||||
}
|
||||
DEFINES += SCINTILLA_QT SCI_LEXER INCLUDE_DEPRECATED_FEATURES
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
QT += widgets printsupport
|
||||
|
||||
greaterThan(QT_MINOR_VERSION, 1) {
|
||||
macx:QT += macextras
|
||||
}
|
||||
|
||||
# Work around QTBUG-39300.
|
||||
CONFIG -= android_install
|
||||
} else {
|
||||
DEFINES += QT_NO_ACCESSIBILITY
|
||||
}
|
||||
|
||||
# Comment this in if you want the internal Scintilla classes to be placed in a
|
||||
# Scintilla namespace rather than pollute the global namespace.
|
||||
#DEFINES += SCI_NAMESPACE
|
||||
|
||||
target.path = $$[QT_INSTALL_LIBS]
|
||||
INSTALLS += target
|
||||
|
||||
header.path = $$[QT_INSTALL_HEADERS]
|
||||
header.files = Qsci
|
||||
INSTALLS += header
|
||||
|
||||
trans.path = $$[QT_INSTALL_TRANSLATIONS]
|
||||
trans.files = qscintilla_*.qm
|
||||
INSTALLS += trans
|
||||
|
||||
qsci.path = $$[QT_INSTALL_DATA]
|
||||
qsci.files = ../qsci
|
||||
INSTALLS += qsci
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
features.path = $$[QT_HOST_DATA]/mkspecs/features
|
||||
} else {
|
||||
features.path = $$[QT_INSTALL_DATA]/mkspecs/features
|
||||
}
|
||||
CONFIG(staticlib) {
|
||||
features.files = $$PWD/features_staticlib/qscintilla2.prf
|
||||
} else {
|
||||
features.files = $$PWD/features/qscintilla2.prf
|
||||
}
|
||||
INSTALLS += features
|
||||
|
||||
HEADERS = \
|
||||
./Qsci/qsciglobal.h \
|
||||
./Qsci/qscicommand.h \
|
||||
./Qsci/qscicommandset.h \
|
||||
./Qsci/qscidocument.h \
|
||||
./Qsci/qsciprinter.h \
|
||||
./Qsci/qscistyle.h \
|
||||
./Qsci/qscistyledtext.h \
|
||||
ListBoxQt.h \
|
||||
../include/ILexer.h \
|
||||
../include/Platform.h \
|
||||
../include/SciLexer.h \
|
||||
../include/Scintilla.h \
|
||||
../include/ScintillaWidget.h \
|
||||
../include/Sci_Position.h \
|
||||
../lexlib/Accessor.h \
|
||||
../lexlib/CharacterCategory.h \
|
||||
../lexlib/CharacterSet.h \
|
||||
../lexlib/DefaultLexer.h \
|
||||
../lexlib/LexAccessor.h \
|
||||
../lexlib/LexerBase.h \
|
||||
../lexlib/LexerModule.h \
|
||||
../lexlib/LexerNoExceptions.h \
|
||||
../lexlib/LexerSimple.h \
|
||||
../lexlib/OptionSet.h \
|
||||
../lexlib/PropSetSimple.h \
|
||||
../lexlib/StyleContext.h \
|
||||
../lexlib/SubStyles.h \
|
||||
../lexlib/WordList.h \
|
||||
../src/AutoComplete.h \
|
||||
../src/CallTip.h \
|
||||
../src/CaseConvert.h \
|
||||
../src/CaseFolder.h \
|
||||
../src/Catalogue.h \
|
||||
../src/CellBuffer.h \
|
||||
../src/CharClassify.h \
|
||||
../src/ContractionState.h \
|
||||
../src/DBCS.h \
|
||||
../src/Decoration.h \
|
||||
../src/Document.h \
|
||||
../src/Editor.h \
|
||||
../src/ElapsedPeriod.h \
|
||||
../src/ExternalLexer.h \
|
||||
../src/FontQuality.h \
|
||||
../src/Indicator.h \
|
||||
../src/IntegerRectangle.h \
|
||||
../src/KeyMap.h \
|
||||
../src/LineMarker.h \
|
||||
../src/MarginView.h \
|
||||
../src/Partitioning.h \
|
||||
../src/PerLine.h \
|
||||
../src/PositionCache.h \
|
||||
../src/RESearch.h \
|
||||
../src/RunStyles.h \
|
||||
../src/ScintillaBase.h \
|
||||
../src/Selection.h \
|
||||
../src/SplitVector.h \
|
||||
../src/Style.h \
|
||||
../src/UniConversion.h \
|
||||
../src/UniqueString.h \
|
||||
../src/ViewStyle.h \
|
||||
../src/XPM.h \
|
||||
../src/Position.h \
|
||||
../src/SparseVector.h \
|
||||
./Qsci/qsciscintilla.h \
|
||||
./Qsci/qsciscintillabase.h \
|
||||
./Qsci/qsciabstractapis.h \
|
||||
./Qsci/qsciapis.h \
|
||||
./Qsci/qscilexer.h \
|
||||
./Qsci/qscilexercustom.h \
|
||||
./Qsci/qscilexersql.h \
|
||||
./Qsci/qscilexerjson.h \
|
||||
./Qsci/qscilexerhtml.h \
|
||||
./Qsci/qscilexerxml.h \
|
||||
./Qsci/qscilexerjavascript.h \
|
||||
./Qsci/qscilexercpp.h \
|
||||
./Qsci/qscilexerpython.h \
|
||||
./Qsci/qscimacro.h \
|
||||
SciClasses.h \
|
||||
ScintillaQt.h \
|
||||
SciAccessibility.h
|
||||
|
||||
SOURCES = \
|
||||
qsciscintilla.cpp \
|
||||
qsciscintillabase.cpp \
|
||||
qsciabstractapis.cpp \
|
||||
qsciapis.cpp \
|
||||
qscicommand.cpp \
|
||||
qscicommandset.cpp \
|
||||
qscidocument.cpp \
|
||||
qscilexer.cpp \
|
||||
qscilexercustom.cpp \
|
||||
qscilexersql.cpp \
|
||||
qscilexerjson.cpp \
|
||||
qscilexerhtml.cpp \
|
||||
qscilexerxml.cpp \
|
||||
qscilexerjavascript.cpp \
|
||||
qscilexercpp.cpp \
|
||||
qscilexerpython.cpp \
|
||||
qscimacro.cpp \
|
||||
qsciprinter.cpp \
|
||||
qscistyle.cpp \
|
||||
qscistyledtext.cpp \
|
||||
MacPasteboardMime.cpp \
|
||||
InputMethod.cpp \
|
||||
SciClasses.cpp \
|
||||
ListBoxQt.cpp \
|
||||
PlatQt.cpp \
|
||||
ScintillaQt.cpp \
|
||||
SciAccessibility.cpp \
|
||||
../lexers/LexSQL.cpp \
|
||||
../lexers/LexJSON.cpp \
|
||||
../lexers/LexHTML.cpp \
|
||||
../lexlib/Accessor.cpp \
|
||||
../lexlib/CharacterCategory.cpp \
|
||||
../lexlib/CharacterSet.cpp \
|
||||
../lexlib/DefaultLexer.cpp \
|
||||
../lexlib/LexerBase.cpp \
|
||||
../lexlib/LexerModule.cpp \
|
||||
../lexlib/LexerNoExceptions.cpp \
|
||||
../lexlib/LexerSimple.cpp \
|
||||
../lexlib/PropSetSimple.cpp \
|
||||
../lexlib/StyleContext.cpp \
|
||||
../lexlib/WordList.cpp \
|
||||
../src/AutoComplete.cpp \
|
||||
../src/CallTip.cpp \
|
||||
../src/CaseConvert.cpp \
|
||||
../src/CaseFolder.cpp \
|
||||
../src/Catalogue.cpp \
|
||||
../src/CellBuffer.cpp \
|
||||
../src/CharClassify.cpp \
|
||||
../src/ContractionState.cpp \
|
||||
../src/DBCS.cpp \
|
||||
../src/Decoration.cpp \
|
||||
../src/Document.cpp \
|
||||
../src/Editor.cpp \
|
||||
../src/EditModel.cpp \
|
||||
../src/EditView.cpp \
|
||||
../src/ExternalLexer.cpp \
|
||||
../src/Indicator.cpp \
|
||||
../src/KeyMap.cpp \
|
||||
../src/LineMarker.cpp \
|
||||
../src/MarginView.cpp \
|
||||
../src/PerLine.cpp \
|
||||
../src/PositionCache.cpp \
|
||||
../src/RESearch.cpp \
|
||||
../src/RunStyles.cpp \
|
||||
../src/ScintillaBase.cpp \
|
||||
../src/Selection.cpp \
|
||||
../src/Style.cpp \
|
||||
../src/UniConversion.cpp \
|
||||
../src/ViewStyle.cpp \
|
||||
../src/XPM.cpp
|
||||
|
||||
TRANSLATIONS = \
|
||||
qscintilla_cs.ts \
|
||||
qscintilla_de.ts \
|
||||
qscintilla_es.ts \
|
||||
qscintilla_fr.ts \
|
||||
qscintilla_pt_br.ts
|
||||
@@ -1,9 +0,0 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
CONFIG += debug_and_release
|
||||
|
||||
SUBDIRS = libs/qhexedit/qhexedit.pro \
|
||||
libs/qcustomplot-source/qcustomplot.pro \
|
||||
libs/qscintilla/Qt4Qt5/qscintilla.pro \
|
||||
libs/json/json.pro \
|
||||
src
|
||||
48
src/i18n.pri
48
src/i18n.pri
@@ -1,48 +0,0 @@
|
||||
# This file is taken from the project https://gitorious.org/qop/qop/.
|
||||
# For autocompiling qm-files.
|
||||
|
||||
#rules to generate ts
|
||||
isEmpty(QMAKE_LUPDATE) {
|
||||
win32: QMAKE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate.exe
|
||||
unix {
|
||||
QMAKE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate
|
||||
!exists($$QMAKE_LUPDATE) { QMAKE_LUPDATE = lupdate-qt4 }
|
||||
} else {
|
||||
!exists($$QMAKE_LUPDATE) { QMAKE_LUPDATE = lupdate }
|
||||
}
|
||||
}
|
||||
#limitation: only on ts can be generated
|
||||
updatets.name = Creating or updating ts-files...
|
||||
updatets.input = _PRO_FILE_
|
||||
updatets.output = $$TRANSLATIONS
|
||||
updatets.commands = $$QMAKE_LUPDATE ${QMAKE_FILE_IN}
|
||||
updatets.CONFIG += no_link no_clean
|
||||
QMAKE_EXTRA_COMPILERS += updatets
|
||||
|
||||
#rules for ts->qm
|
||||
isEmpty(QMAKE_LRELEASE) {
|
||||
#a qm generated by lrelease-qt3 can be used for qt2, qt3, qt4!
|
||||
win32: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe
|
||||
unix {
|
||||
QMAKE_LRELEASE = lrelease-qt3
|
||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease }
|
||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
|
||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 }
|
||||
} else {
|
||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
|
||||
}
|
||||
}
|
||||
updatets.name = Compiling qm-files...
|
||||
updateqm.input = TRANSLATIONS
|
||||
updateqm.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
||||
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
||||
updateqm.CONFIG += no_link no_clean target_predeps
|
||||
updateqm.variable_out = copytranslations.files
|
||||
QMAKE_EXTRA_COMPILERS += updateqm
|
||||
|
||||
# Copy translations into the bundle when one is created
|
||||
mac:contains(CONFIG, "app_bundle") {
|
||||
copytranslations.path = Contents/MacOS/translations
|
||||
copytranslations.depends = updateqm
|
||||
QMAKE_BUNDLE_DATA += copytranslations
|
||||
}
|
||||
312
src/src.pro
312
src/src.pro
@@ -1,312 +0,0 @@
|
||||
TEMPLATE = app
|
||||
|
||||
QT += core gui network widgets printsupport concurrent xml
|
||||
|
||||
TARGET = sqlitebrowser
|
||||
|
||||
CONFIG += debug_and_release
|
||||
CONFIG += qt
|
||||
CONFIG += warn_on
|
||||
|
||||
QMAKE_CXXFLAGS += -std=c++14
|
||||
|
||||
# create a unittest option
|
||||
CONFIG(unittest) {
|
||||
QT += testlib
|
||||
|
||||
HEADERS += tests/testsqlobjects.h tests/TestImport.h tests/TestRegex.h tests/TestRowCache.h
|
||||
SOURCES += tests/testsqlobjects.cpp tests/TestImport.cpp tests/TestRegex.cpp tests/TestRowCache.cpp
|
||||
} else {
|
||||
SOURCES += main.cpp
|
||||
}
|
||||
|
||||
HEADERS += \
|
||||
ImageViewer.h \
|
||||
RemoteCommitsModel.h \
|
||||
RemoteLocalFilesModel.h \
|
||||
RemoteNetwork.h \
|
||||
TableBrowserDock.h \
|
||||
dbstructureqitemviewfacade.h \
|
||||
sqlitedb.h \
|
||||
MainWindow.h \
|
||||
EditIndexDialog.h \
|
||||
AboutDialog.h \
|
||||
EditTableDialog.h \
|
||||
AddRecordDialog.h \
|
||||
Settings.h \
|
||||
PreferencesDialog.h \
|
||||
EditDialog.h \
|
||||
ExportDataDialog.h \
|
||||
ImportCsvDialog.h \
|
||||
sqltextedit.h \
|
||||
sql/sqlitetypes.h \
|
||||
csvparser.h \
|
||||
ExtendedTableWidget.h \
|
||||
sqlitetablemodel.h \
|
||||
RowCache.h \
|
||||
RowLoader.h \
|
||||
FilterTableHeader.h \
|
||||
version.h \
|
||||
SqlExecutionArea.h \
|
||||
VacuumDialog.h \
|
||||
DbStructureModel.h \
|
||||
Application.h \
|
||||
sqlite.h \
|
||||
CipherDialog.h \
|
||||
ExportSqlDialog.h \
|
||||
SqlUiLexer.h \
|
||||
FileDialog.h \
|
||||
ColumnDisplayFormatDialog.h \
|
||||
FilterLineEdit.h \
|
||||
RemoteDatabase.h \
|
||||
ForeignKeyEditorDelegate.h \
|
||||
PlotDock.h \
|
||||
RemoteDock.h \
|
||||
RemoteModel.h \
|
||||
RemotePushDialog.h \
|
||||
docktextedit.h \
|
||||
FindReplaceDialog.h \
|
||||
ExtendedScintilla.h \
|
||||
FileExtensionManager.h \
|
||||
CondFormatManager.h \
|
||||
Data.h \
|
||||
CipherSettings.h \
|
||||
DotenvFormat.h \
|
||||
Palette.h \
|
||||
CondFormat.h \
|
||||
sql/Query.h \
|
||||
RunSql.h \
|
||||
sql/ObjectIdentifier.h \
|
||||
ProxyDialog.h \
|
||||
IconCache.h \
|
||||
SelectItemsPopup.h \
|
||||
TableBrowser.h \
|
||||
sql/parser/ParserDriver.h \
|
||||
sql/parser/sqlite3_lexer.h \
|
||||
sql/parser/sqlite3_location.h \
|
||||
sql/parser/sqlite3_parser.hpp
|
||||
|
||||
SOURCES += \
|
||||
ImageViewer.cpp \
|
||||
RemoteCommitsModel.cpp \
|
||||
RemoteLocalFilesModel.cpp \
|
||||
RemoteNetwork.cpp \
|
||||
TableBrowserDock.cpp \
|
||||
dbstructureqitemviewfacade.cpp \
|
||||
sqlitedb.cpp \
|
||||
MainWindow.cpp \
|
||||
EditIndexDialog.cpp \
|
||||
EditTableDialog.cpp \
|
||||
AddRecordDialog.cpp \
|
||||
Settings.cpp \
|
||||
PreferencesDialog.cpp \
|
||||
AboutDialog.cpp \
|
||||
EditDialog.cpp \
|
||||
ExportDataDialog.cpp \
|
||||
ImportCsvDialog.cpp \
|
||||
sqltextedit.cpp \
|
||||
sql/sqlitetypes.cpp \
|
||||
csvparser.cpp \
|
||||
ExtendedTableWidget.cpp \
|
||||
sqlitetablemodel.cpp \
|
||||
RowLoader.cpp \
|
||||
FilterTableHeader.cpp \
|
||||
SqlExecutionArea.cpp \
|
||||
VacuumDialog.cpp \
|
||||
DbStructureModel.cpp \
|
||||
Application.cpp \
|
||||
CipherDialog.cpp \
|
||||
ExportSqlDialog.cpp \
|
||||
SqlUiLexer.cpp \
|
||||
FileDialog.cpp \
|
||||
ColumnDisplayFormatDialog.cpp \
|
||||
FilterLineEdit.cpp \
|
||||
RemoteDatabase.cpp \
|
||||
ForeignKeyEditorDelegate.cpp \
|
||||
PlotDock.cpp \
|
||||
RemoteDock.cpp \
|
||||
RemoteModel.cpp \
|
||||
RemotePushDialog.cpp \
|
||||
docktextedit.cpp \
|
||||
FindReplaceDialog.cpp \
|
||||
ExtendedScintilla.cpp \
|
||||
FileExtensionManager.cpp \
|
||||
CondFormatManager.cpp \
|
||||
Data.cpp \
|
||||
CipherSettings.cpp \
|
||||
DotenvFormat.cpp \
|
||||
Palette.cpp \
|
||||
CondFormat.cpp \
|
||||
sql/Query.cpp \
|
||||
RunSql.cpp \
|
||||
sql/ObjectIdentifier.cpp \
|
||||
ProxyDialog.cpp \
|
||||
IconCache.cpp \
|
||||
SelectItemsPopup.cpp \
|
||||
TableBrowser.cpp \
|
||||
sql/parser/ParserDriver.cpp \
|
||||
sql/parser/sqlite3_lexer.cpp \
|
||||
sql/parser/sqlite3_parser.cpp
|
||||
|
||||
RESOURCES += icons/icons.qrc \
|
||||
translations/flags/flags.qrc \
|
||||
translations/translations.qrc \
|
||||
certs/CaCerts.qrc \
|
||||
qdarkstyle/dark/darkstyle.qrc \
|
||||
qdarkstyle/light/lightstyle.qrc
|
||||
|
||||
FORMS += \
|
||||
ImageViewer.ui \
|
||||
MainWindow.ui \
|
||||
EditIndexDialog.ui \
|
||||
AboutDialog.ui \
|
||||
EditTableDialog.ui \
|
||||
AddRecordDialog.ui \
|
||||
PreferencesDialog.ui \
|
||||
EditDialog.ui \
|
||||
ExportDataDialog.ui \
|
||||
ImportCsvDialog.ui \
|
||||
SqlExecutionArea.ui \
|
||||
VacuumDialog.ui \
|
||||
CipherDialog.ui \
|
||||
ExportSqlDialog.ui \
|
||||
ColumnDisplayFormatDialog.ui \
|
||||
PlotDock.ui \
|
||||
RemoteDock.ui \
|
||||
RemotePushDialog.ui \
|
||||
FindReplaceDialog.ui \
|
||||
FileExtensionManager.ui \
|
||||
CondFormatManager.ui \
|
||||
ProxyDialog.ui \
|
||||
SelectItemsPopup.ui \
|
||||
TableBrowser.ui
|
||||
|
||||
TRANSLATIONS += \
|
||||
translations/sqlb_ar_SA.ts \
|
||||
translations/sqlb_cs.ts \
|
||||
translations/sqlb_zh.ts \
|
||||
translations/sqlb_zh_TW.ts \
|
||||
translations/sqlb_de.ts \
|
||||
translations/sqlb_es_ES.ts \
|
||||
translations/sqlb_fr.ts \
|
||||
translations/sqlb_ru.ts \
|
||||
translations/sqlb_pl.ts \
|
||||
translations/sqlb_pt_BR.ts \
|
||||
translations/sqlb_en_GB.ts \
|
||||
translations/sqlb_ko_KR.ts \
|
||||
translations/sqlb_tr.ts \
|
||||
translations/sqlb_uk_UA.ts \
|
||||
translations/sqlb_it.ts \
|
||||
translations/sqlb_ja.ts \
|
||||
translations/sqlb_nl.ts \
|
||||
translations/sqlb_sv.ts
|
||||
|
||||
# SQLite / SQLCipher switch pieces
|
||||
CONFIG(sqlcipher) {
|
||||
QMAKE_CXXFLAGS += -DENABLE_SQLCIPHER
|
||||
LIBS += -lsqlcipher
|
||||
|
||||
# Add the paths for Homebrew installed SQLCipher
|
||||
macx {
|
||||
INCLUDEPATH += /usr/local/opt/sqlcipher/include
|
||||
LIBS += -L/usr/local/opt/sqlcipher/lib
|
||||
}
|
||||
} else {
|
||||
LIBS += -lsqlite3
|
||||
|
||||
# Add the paths for Homebrew installed SQLite
|
||||
macx {
|
||||
INCLUDEPATH += /usr/local/opt/sqlite/include
|
||||
LIBS += -L/usr/local/opt/sqlite/lib
|
||||
}
|
||||
}
|
||||
|
||||
LIBPATH_QHEXEDIT=$$OUT_PWD/../libs/qhexedit
|
||||
LIBPATH_QCUSTOMPLOT=$$OUT_PWD/../libs/qcustomplot-source
|
||||
LIBPATH_QSCINTILLA=$$OUT_PWD/../libs/qscintilla/Qt4Qt5
|
||||
LIBPATH_JSON=$$OUT_PWD/../libs/json
|
||||
unix {
|
||||
LIBS += -ldl
|
||||
}
|
||||
os2 {
|
||||
RC_FILE = os2app.rc
|
||||
}
|
||||
win32 {
|
||||
TARGET = "DB Browser for SQLite"
|
||||
RC_FILE = winapp.rc
|
||||
INCLUDEPATH += $$PWD
|
||||
CONFIG(debug,debug|release) {
|
||||
LIBPATH_QHEXEDIT = $$LIBPATH_QHEXEDIT/debug
|
||||
LIBPATH_QCUSTOMPLOT = $$LIBPATH_QCUSTOMPLOT/debug
|
||||
LIBPATH_QSCINTILLA = $$LIBPATH_QSCINTILLA/debug
|
||||
LIBPATH_JSON = $$LIBPATH_JSON/debug
|
||||
}
|
||||
CONFIG(release,debug|release) {
|
||||
LIBPATH_QHEXEDIT = $$LIBPATH_QHEXEDIT/release
|
||||
LIBPATH_QCUSTOMPLOT = $$LIBPATH_QCUSTOMPLOT/release
|
||||
LIBPATH_QSCINTILLA = $$LIBPATH_QSCINTILLA/release
|
||||
LIBPATH_JSON = $$LIBPATH_JSON/release
|
||||
}
|
||||
QMAKE_CXXFLAGS += -DCHECKNEWVERSION
|
||||
|
||||
# Added SQLite installation path variables, matching our setup guide
|
||||
LIBS += -L$$PWD/../../../dev/SQLite/ -lsqlite3
|
||||
INCLUDEPATH += $$PWD/../../../dev/SQLite
|
||||
DEPENDPATH += $$PWD/../../../dev/SQLite
|
||||
}
|
||||
macx {
|
||||
TARGET = "DB Browser for SQLite"
|
||||
RC_FILE = macapp.icns
|
||||
QT += macextras opengl
|
||||
INCLUDEPATH += /usr/local/include
|
||||
LIBS += -L/usr/local/lib -framework Carbon
|
||||
QMAKE_INFO_PLIST = app.plist
|
||||
QMAKE_CXXFLAGS += -DCHECKNEWVERSION
|
||||
}
|
||||
|
||||
CONFIG(all_warnings) {
|
||||
QMAKE_CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wpedantic -Wconversion -Wsign-conversion
|
||||
QMAKE_CXXFLAGS += -Wnull-dereference -Wdouble-promotion -Wformat=2 -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wuseless-cast
|
||||
}
|
||||
|
||||
UI_DIR = .ui
|
||||
INCLUDEPATH += $$PWD/../libs/qhexedit/src $$PWD/../libs/qcustomplot-source $$PWD/../libs/qscintilla/Qt4Qt5 $$PWD/../libs/json $$PWD/..
|
||||
LIBS += -L$$LIBPATH_QHEXEDIT -L$$LIBPATH_QCUSTOMPLOT -L$$LIBPATH_QSCINTILLA -lqhexedit -lqcustomplot -lqscintilla2
|
||||
DEPENDPATH += $$PWD/../libs/qhexedit $$PWD/../libs/qcustomplot-source $$PWD/../libs/qscintilla/Qt4Qt5 $$PWD/../libs/json
|
||||
|
||||
unix {
|
||||
# Below, the user can specify where all generated file can be placed
|
||||
# through a set of variables, being them:
|
||||
#
|
||||
# PREFIX -> the root directory where the files will be placed
|
||||
# BINDIR -> where executables accessible by the user resides
|
||||
# DATADIR -> where data files and resources should be placed
|
||||
#
|
||||
# The values of each variable changes between supported platforms and are describe as follow
|
||||
|
||||
# Default configuration for package sqlitebrowser.
|
||||
# The default prefix is /usr/local
|
||||
!defined(PREFIX, var): PREFIX = /usr/local
|
||||
!defined(BINDIR, var): BINDIR = $$PREFIX/bin
|
||||
!defined(DATADIR, var): DATADIR = $$PREFIX/share
|
||||
|
||||
# The executable
|
||||
target.path = $$BINDIR
|
||||
INSTALLS += target
|
||||
|
||||
# Icon
|
||||
icon.path = $$DATADIR/icons/hicolor/256x256/apps/
|
||||
icon.files = icons/sqlitebrowser.png
|
||||
INSTALLS += icon
|
||||
|
||||
# Desktop metadata
|
||||
desktop.path = $$DATADIR/applications/
|
||||
desktop.files = ../distri/sqlitebrowser.desktop
|
||||
INSTALLS += desktop
|
||||
appdata.path = $$DATADIR/metainfo/
|
||||
appdata.files = ../distri/sqlitebrowser.desktop.appdata.xml
|
||||
INSTALLS += appdata
|
||||
}
|
||||
|
||||
# Rules for creating/updating {ts|qm}-files
|
||||
include(i18n.pri)
|
||||
Reference in New Issue
Block a user