Move 'Precompiled headers' group to buildconfig.

This commit is contained in:
Roman Telezhynskyi 2023-01-10 10:08:32 +02:00
parent af647e6386
commit 895b02ef0d
22 changed files with 13 additions and 252 deletions

View File

@ -792,4 +792,17 @@ Module {
}
vcs2.headerFileName: "vcsRepoState.h"
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
prefix: FileInfo.joinPaths(product.sourceDirectory, FileInfo.pathSeparator())
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
}

View File

@ -159,18 +159,6 @@ VApp {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.targetOS.contains("windows"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
cpp.includePaths: [product.sourceDirectory]
Export {

View File

@ -84,18 +84,6 @@ VApp {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.defines: {

View File

@ -164,18 +164,6 @@ VApp {
qbs.installDir: "share/pixmaps"
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.defines: {

View File

@ -13,18 +13,6 @@ VLib {
"fvupdatewindow.ui",
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["network"] }

View File

@ -70,18 +70,6 @@ VLib {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Group {
name: "Resources"
files: [

View File

@ -36,18 +36,6 @@ VLib {
buildconfig.staticBuild: false
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -45,18 +45,6 @@ VLib {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -16,18 +16,6 @@ VLib {
"vwatermark.h",
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["xml"] }

View File

@ -53,18 +53,6 @@ VLib {
"vplacelabelitem_p.h"
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["gui"] }

View File

@ -72,18 +72,6 @@ VLib {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Group {
name: "Resources"
prefix: "share/"

View File

@ -118,18 +118,6 @@ VLib {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Group {
name: "Resources"
prefix: "share/resources/"

View File

@ -12,18 +12,6 @@ VLib {
"vobjpaintdevice.h",
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -98,18 +98,6 @@ VLib {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -88,18 +88,6 @@ VLib {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -13,18 +13,6 @@ VLib {
"abstracttest.h",
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -468,18 +468,6 @@ VLib {
]
}
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -61,18 +61,6 @@ VLib {
"vhighlighter.h"
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Export {
Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -22,18 +22,6 @@ VApp {
"tst_valentinacommandline.h",
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
Group {
name: "Tape test files"
prefix: "tst_tape" + FileInfo.pathSeparator()

View File

@ -14,16 +14,4 @@ VApp {
files: [
"main.cpp"
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
}

View File

@ -31,17 +31,5 @@ VApp {
"tst_abstracttranslation.h",
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
cpp.defines: 'TS_DIR="' + FileInfo.joinPaths(project.sourceDirectory, "share", "translations") + '"'
}

View File

@ -67,16 +67,4 @@ VApp {
"tst_vabstractpiece.h",
"tst_vtooluniondetails.h",
]
Group {
name: "Precompiled headers"
condition: buildconfig.enablePCH
files: {
var files = ["stable.h"];
if (qbs.toolchain.contains("msvc"))
files.push("stable.cpp")
return files;
}
fileTags: ["cpp_pch_src"]
}
}