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"]
}
}