mirror of
https://github.com/reactos/CMake.git
synced 2025-02-10 13:53:56 +00:00
AUTOGEN: Initializer: Introduce SKIP_AUTOGEN checks
This commit is contained in:
parent
e7280a7f17
commit
32d3540e09
@ -123,6 +123,9 @@ static void SetupSourceFiles(cmGeneratorTarget const* target,
|
|||||||
if (cmSystemTools::IsOn(sf->GetPropertyForUser("GENERATED"))) {
|
if (cmSystemTools::IsOn(sf->GetPropertyForUser("GENERATED"))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTOGEN"))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const bool fileSkipUic =
|
const bool fileSkipUic =
|
||||||
cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTOUIC"));
|
cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTOUIC"));
|
||||||
const bool fileSkipMoc =
|
const bool fileSkipMoc =
|
||||||
@ -578,7 +581,9 @@ static void RccSetupAutoTarget(cmGeneratorTarget const* target,
|
|||||||
std::string ext = sf->GetExtension();
|
std::string ext = sf->GetExtension();
|
||||||
if (ext == "qrc") {
|
if (ext == "qrc") {
|
||||||
std::string absFile = cmsys::SystemTools::GetRealPath(sf->GetFullPath());
|
std::string absFile = cmsys::SystemTools::GetRealPath(sf->GetFullPath());
|
||||||
bool skip = cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTORCC"));
|
const bool skip =
|
||||||
|
cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTOGEN")) ||
|
||||||
|
cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTORCC"));
|
||||||
|
|
||||||
if (!skip) {
|
if (!skip) {
|
||||||
_rcc_files += sepRccFiles;
|
_rcc_files += sepRccFiles;
|
||||||
@ -756,6 +761,7 @@ void cmQtAutoGeneratorInitializer::InitializeAutogenTarget(
|
|||||||
fileIt != srcFiles.end(); ++fileIt) {
|
fileIt != srcFiles.end(); ++fileIt) {
|
||||||
cmSourceFile* sf = *fileIt;
|
cmSourceFile* sf = *fileIt;
|
||||||
if (sf->GetExtension() == "qrc" &&
|
if (sf->GetExtension() == "qrc" &&
|
||||||
|
!cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTOGEN")) &&
|
||||||
!cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTORCC"))) {
|
!cmSystemTools::IsOn(sf->GetPropertyForUser("SKIP_AUTORCC"))) {
|
||||||
{
|
{
|
||||||
const std::string absFile =
|
const std::string absFile =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user