Include vsapoint.cpp only before C++17.

This commit is contained in:
Roman Telezhynskyi 2023-01-16 18:48:21 +02:00
parent 16c5117b9c
commit 74bd52652e
2 changed files with 52 additions and 46 deletions

View File

@ -11,7 +11,8 @@ VLib {
Depends { name: "VFormatLib" }
name: "VLayoutLib"
files: [
files: {
var files = [
"vlayoutexporter.h",
"vlayoutgenerator.h",
"vlayoutdef.h",
@ -46,7 +47,6 @@ VLib {
"vlayoutpoint.cpp",
"vposition.cpp",
"vrawlayout.cpp",
"vsapoint.cpp",
"vprintlayout.cpp",
"vtextmanager.cpp",
"vposter.cpp",
@ -54,8 +54,15 @@ VLib {
"vabstractpiece.cpp",
"vlayoutpiece.cpp",
"vlayoutpiecepath.cpp",
"vrawsapoint.cpp",
]
"vrawsapoint.cpp"
];
if (Qt.core.versionMajor >= 5 && Qt.core.versionMinor < 12) {
files.push("vsapoint.cpp"); // need only before C++17
}
return files;
}
Group {
name: "dialogs"

View File

@ -26,7 +26,6 @@
**
*************************************************************************/
// See https://stackoverflow.com/a/46719572/3045403
#if __cplusplus < 201703L
#include "vsapoint.h"