Разнос по библиотекам + прикручиваем odb из redkitty
This commit is contained in:
@@ -1,16 +1,55 @@
|
||||
import qbs
|
||||
|
||||
/*!
|
||||
\qmltype cpp-opds
|
||||
\inherits Project
|
||||
\brief Описание
|
||||
*/
|
||||
PSLibrary {
|
||||
Depends { name: "Qt"; submodules: "sql"}
|
||||
cpp.defines: [
|
||||
// You can make your code fail to compile if it uses deprecated APIs.
|
||||
// In order to do so, uncomment the following line.
|
||||
//"QT_DISABLE_DEPRECATED_BEFORE=0x060000" // disables all the APIs deprecated before Qt 6.0.0
|
||||
"DATABASE_SQLITE",
|
||||
"DATABASE_LIBRARY"
|
||||
]
|
||||
consoleApplication: true
|
||||
|
||||
Depends { name: "model" }
|
||||
Depends { name: "sql_builder" }
|
||||
Depends { name: "Qt"; submodules: [ "core", "sql", "network" ] }
|
||||
Depends { name: "cpp" }
|
||||
|
||||
Depends { name: "odb.gen" }
|
||||
Depends { name: "rdbase" }
|
||||
|
||||
Depends { name: "redkit_gen" }
|
||||
redkit_gen.includeModules: ["JsonSerializer"]
|
||||
|
||||
odb.gen.databases: "sqlite"
|
||||
cpp.cxxLanguageVersion: "c++17"
|
||||
|
||||
Group {
|
||||
name: "cpp"
|
||||
files: [
|
||||
"**/*.h",
|
||||
"**/*.cpp"
|
||||
"databasemanager.*",
|
||||
"*.cpp",
|
||||
"*.h",
|
||||
"*.hxx",
|
||||
]
|
||||
excludeFiles: odbs.files
|
||||
}
|
||||
|
||||
Group {
|
||||
id: odbs
|
||||
name: "odb"
|
||||
files: [
|
||||
"author_s.h",
|
||||
"book_s.h",
|
||||
]
|
||||
fileTags: ["hpp", "odbxx"]
|
||||
}
|
||||
|
||||
cpp.dynamicLibraries: [
|
||||
"odb-sqlite",
|
||||
"odb-qt",
|
||||
"odb",
|
||||
"sqlite3"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user