diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-05-30 14:34:09 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-05-30 15:45:01 (GMT) |
commit | 2930a198f610e729d73df6771d70119adac6df2e (patch) | |
tree | ce60765554c545454c65bae917c5d1a554eec166 /Source/cmQtAutoGeneratorRcc.h | |
parent | 392f223d6055a8863064fabcc704442f29bd0c23 (diff) | |
download | CMake-2930a198f610e729d73df6771d70119adac6df2e.zip CMake-2930a198f610e729d73df6771d70119adac6df2e.tar.gz CMake-2930a198f610e729d73df6771d70119adac6df2e.tar.bz2 |
Autogen: Add lock file to AUTORCC commands
By using a per .qrc lock file in AUTORCC, the same
`cmake -E cmake_autorcc ...` command can be called concurrently.
Diffstat (limited to 'Source/cmQtAutoGeneratorRcc.h')
-rw-r--r-- | Source/cmQtAutoGeneratorRcc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmQtAutoGeneratorRcc.h b/Source/cmQtAutoGeneratorRcc.h index 55e0998..74cec36 100644 --- a/Source/cmQtAutoGeneratorRcc.h +++ b/Source/cmQtAutoGeneratorRcc.h @@ -5,6 +5,7 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include "cmFileLock.h" #include "cmQtAutoGenerator.h" #include "cm_uv.h" @@ -48,7 +49,7 @@ private: void PollStage(); void SetStage(StageT stage); // -- Settings file - void SettingsFileRead(); + bool SettingsFileRead(); void SettingsFileWrite(); // -- Tests bool TestQrcRccFiles(); @@ -77,6 +78,8 @@ private: std::string RccExecutable_; std::vector<std::string> RccListOptions_; // -- Job + std::string LockFile_; + cmFileLock LockFileLock_; std::string QrcFile_; std::string QrcFileName_; std::string QrcFileDir_; |