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,51 +11,58 @@ VLib {
Depends { name: "VFormatLib" }
name: "VLayoutLib"
files: [
"vlayoutexporter.h",
"vlayoutgenerator.h",
"vlayoutdef.h",
"vlayoutpaper.h",
"vlayoutpaper_p.h",
"vbank.h",
"vcontour.h",
"vcontour_p.h",
"vbestsquare.h",
"vlayoutpoint.h",
"vposition.h",
"vrawlayout.h",
"vprintlayout.h",
"vsapoint.h",
"vtextmanager.h",
"vposter.h",
"vgraphicsfillitem.h",
"vabstractpiece.h",
"vabstractpiece_p.h",
"vlayoutpiece.h",
"vlayoutpiece_p.h",
"vlayoutpiecepath.h",
"vlayoutpiecepath_p.h",
"vbestsquare_p.h",
"vrawsapoint.h",
"vlayoutexporter.cpp",
"vlayoutgenerator.cpp",
"vlayoutpaper.cpp",
"vbank.cpp",
"vcontour.cpp",
"vbestsquare.cpp",
"vlayoutpoint.cpp",
"vposition.cpp",
"vrawlayout.cpp",
"vsapoint.cpp",
"vprintlayout.cpp",
"vtextmanager.cpp",
"vposter.cpp",
"vgraphicsfillitem.cpp",
"vabstractpiece.cpp",
"vlayoutpiece.cpp",
"vlayoutpiecepath.cpp",
"vrawsapoint.cpp",
]
files: {
var files = [
"vlayoutexporter.h",
"vlayoutgenerator.h",
"vlayoutdef.h",
"vlayoutpaper.h",
"vlayoutpaper_p.h",
"vbank.h",
"vcontour.h",
"vcontour_p.h",
"vbestsquare.h",
"vlayoutpoint.h",
"vposition.h",
"vrawlayout.h",
"vprintlayout.h",
"vsapoint.h",
"vtextmanager.h",
"vposter.h",
"vgraphicsfillitem.h",
"vabstractpiece.h",
"vabstractpiece_p.h",
"vlayoutpiece.h",
"vlayoutpiece_p.h",
"vlayoutpiecepath.h",
"vlayoutpiecepath_p.h",
"vbestsquare_p.h",
"vrawsapoint.h",
"vlayoutexporter.cpp",
"vlayoutgenerator.cpp",
"vlayoutpaper.cpp",
"vbank.cpp",
"vcontour.cpp",
"vbestsquare.cpp",
"vlayoutpoint.cpp",
"vposition.cpp",
"vrawlayout.cpp",
"vprintlayout.cpp",
"vtextmanager.cpp",
"vposter.cpp",
"vgraphicsfillitem.cpp",
"vabstractpiece.cpp",
"vlayoutpiece.cpp",
"vlayoutpiecepath.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"