Skip to content

Commit

Permalink
Check for Git and CMake in code build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kaetemi committed Apr 29, 2022
1 parent cee61ab commit c085d91
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions nel/tools/build_gamedata/processes/lib/0_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# Setup build directories
printLog(log, ">>> Setup export directories <<<")
mkPath(log, ExportBuildDirectory + "/" + LibExeDllDirectory)
mkPath(log, ExportBuildDirectory + "/" + LibTagDirectory)

# Setup build directories
# printLog(log, ">>> Setup build directories <<<")
Expand Down
14 changes: 14 additions & 0 deletions tool/quick_start/configure_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,20 @@ def WriteHeader(fo):
fo.write("@echo off\n")
fo.write("title Ryzom Core\n")
fo.write("cd /d " + EscapeArg(NeLRootDir) + "\n")
fo.write("goto :checktools\n")
fo.write(":nogit\n")
fo.write("echo ERROR: Git is not installed\n")
fo.write("pause\n")
fo.write("exit\n")
fo.write(":nocmake\n")
fo.write("echo ERROR: CMake is not installed\n")
fo.write("pause\n")
fo.write("exit\n")
fo.write(":checktools\n")
fo.write("where /q git\n")
fo.write("if %errorlevel% neq 0 goto :nogit\n")
fo.write("where /q cmake\n")
fo.write("if %errorlevel% neq 0 goto :nocmake\n")
fo.write(":patchversion\n")
fo.write("call " + EscapeArg(NeLPatchVersionScript) + "\n")
WritePauseGoto(fo, ":patchversion")
Expand Down

0 comments on commit c085d91

Please sign in to comment.