Skip to content

Commit

Permalink
build help
Browse files Browse the repository at this point in the history
  • Loading branch information
mPokornyETM committed Dec 17, 2023
1 parent b4822d4 commit e8157a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 7 additions & 5 deletions WinCC_OA_Test/Projects/TfCustomizedQG/scripts/buildHelp.ctl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
//-----------------------------------------------------------------------------
/**Generate a full documentation from the project files. See also DoxygenGenerator
*/
void main()
void main(string sourcePathRoot)
{
const string sourcePathRoot = dirName(PROJ_PATH);
if (sourcePathRoot.isEmpty())
sourcePathRoot = dirName(dirName(dirName(PROJ_PATH)));

// const string sourcePathTests = sourcePathRoot + "WinCC_OA_Test/";
const string sourcePathQualityChecks = sourcePathRoot + "WinCCOA_QualityChecks/";
const string sourcePathDocs = sourcePathRoot + "docs/";
Expand All @@ -27,7 +29,7 @@ void main()
DebugTN("sourcePathQualityChecks", sourcePathQualityChecks);
DebugTN("sourcePathDocs", sourcePathDocs);
DebugTN("target", target);

rmdir(target, TRUE);

/// create a dummy helper project.
Expand Down Expand Up @@ -64,7 +66,7 @@ void main()
ctrlMan.setOptions(makeDynString("-n", "doxygen.ctl"));
ctrlMan.setProj(helpProject.getId());
ctrlMan.setNum(101);

GlobalStorage storage;
storage.setValue("doxygen/projectName", helpProject.getName());
storage.setValue("doxygen/outputDirectory", target);
Expand All @@ -87,7 +89,7 @@ void main()
storage.removeKey("doxygen/todoLinkFormat");

helpProject.deleteProj();

if (exitCode != 0)
{
throwError(makeError("", PRIO_FATAL, ERR_CONTROL, 54, "doxygen.ctl crashed", exitCode));
Expand Down
6 changes: 4 additions & 2 deletions devTools/buildHelp.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ cls
REM ---------------------------------------------------------------------------
REM default values
SET WINCC_OA_VERSION=3.19
set WINCC_OA_TEST_PATH=%cd%\..\WinCC_OA_Test\
cd ..
set WINCC_OA_TEST_PATH=%cd%\WinCC_OA_Test\
cd devTools

REM get input params
:loopStdIn
Expand All @@ -33,5 +35,5 @@ call registerHelperProject.cmd

REM --------------------------------------------------------------------------
REM generate help
call %oaBinPath%WCCOActrl.exe -config %WINCC_OA_TEST_PATH%Projects\TfCustomizedQG\config\config -n buildHelp.ctl %WINCC_OA_TEST_PATH% -log +stderr -lang en_US.utf8
call %oaBinPath%WCCOActrl.exe -config %WINCC_OA_TEST_PATH%Projects\TfCustomizedQG\config\config -n buildHelp.ctl -log +stderr -lang en_US.utf8

0 comments on commit e8157a9

Please sign in to comment.