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" 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] cpp.includePaths: [product.sourceDirectory]
Export { 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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.defines: { cpp.defines: {

View File

@ -164,18 +164,6 @@ VApp {
qbs.installDir: "share/pixmaps" 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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.defines: { cpp.defines: {

View File

@ -13,18 +13,6 @@ VLib {
"fvupdatewindow.ui", "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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["network"] } 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 { Group {
name: "Resources" name: "Resources"
files: [ files: [

View File

@ -36,18 +36,6 @@ VLib {
buildconfig.staticBuild: false 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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] 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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -16,18 +16,6 @@ VLib {
"vwatermark.h", "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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["xml"] } Depends { name: "Qt"; submodules: ["xml"] }

View File

@ -53,18 +53,6 @@ VLib {
"vplacelabelitem_p.h" "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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["gui"] } 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 { Group {
name: "Resources" name: "Resources"
prefix: "share/" 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 { Group {
name: "Resources" name: "Resources"
prefix: "share/resources/" prefix: "share/resources/"

View File

@ -12,18 +12,6 @@ VLib {
"vobjpaintdevice.h", "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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] 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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] 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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -13,18 +13,6 @@ VLib {
"abstracttest.h", "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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] 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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -61,18 +61,6 @@ VLib {
"vhighlighter.h" "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 { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [exportingProduct.sourceDirectory] cpp.includePaths: [exportingProduct.sourceDirectory]

View File

@ -22,18 +22,6 @@ VApp {
"tst_valentinacommandline.h", "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 { Group {
name: "Tape test files" name: "Tape test files"
prefix: "tst_tape" + FileInfo.pathSeparator() prefix: "tst_tape" + FileInfo.pathSeparator()

View File

@ -14,16 +14,4 @@ VApp {
files: [ files: [
"main.cpp" "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", "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") + '"' cpp.defines: 'TS_DIR="' + FileInfo.joinPaths(project.sourceDirectory, "share", "translations") + '"'
} }

View File

@ -67,16 +67,4 @@ VApp {
"tst_vabstractpiece.h", "tst_vabstractpiece.h",
"tst_vtooluniondetails.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"]
}
} }