Browse Source

Fix formatting

master
Macoy Madson 8 months ago
parent
commit
e9b56f84ec
  1. 40
      src/Raylib.cake

40
src/Raylib.cake

@ -25,32 +25,32 @@
;;
(defun-comptime build-raylib (manager (& ModuleManager) module (* Module) &return bool)
;; Already built?
;; We could enhance this by checking for modifications, but that's pretty rare
(when (and (fileExists "cakelisp_cache/RaylibBuild/raylib/libraylib.a"))
(return true))
;; Already built?
;; We could enhance this by checking for modifications, but that's pretty rare
(when (and (fileExists "cakelisp_cache/RaylibBuild/raylib/libraylib.a"))
(return true))
(Log "Raylib: Building via Configure and Make\n")
(Log "Raylib: Building via Configure and Make\n")
(var raylib-output-dir (* (const char)) "cakelisp_cache/RaylibBuild")
(makeDirectory raylib-output-dir)
(var raylib-output-dir (* (const char)) "cakelisp_cache/RaylibBuild")
(makeDirectory raylib-output-dir)
(run-process-sequential-or
("cmake" "../../Dependencies/raylib" :in-directory raylib-output-dir)
(Log "failed at Raylib configure step. This requires a sh/bash-style shell to execute.")
(return false))
(run-process-sequential-or
("cmake" "../../Dependencies/raylib" :in-directory raylib-output-dir)
(Log "failed at Raylib configure step. This requires a sh/bash-style shell to execute.")
(return false))
(run-process-sequential-or
("make" "--jobs=8" :in-directory raylib-output-dir)
(Log "failed at Raylib make. This tool requires Makefile support.")
(return false))
(run-process-sequential-or
("make" "--jobs=8" :in-directory raylib-output-dir)
(Log "failed at Raylib make. This tool requires Makefile support.")
(return false))
;; One final to check to ensure everything's good to go
(unless (fileExists "cakelisp_cache/RaylibBuild/raylib/libraylib.a")
(Log
"error: Raylib build sequence completed, but files are not where expected. Is there an issue
;; One final to check to ensure everything's good to go
(unless (fileExists "cakelisp_cache/RaylibBuild/raylib/libraylib.a")
(Log
"error: Raylib build sequence completed, but files are not where expected. Is there an issue
with the configuration?\nFile expected:\n\tcakelisp_cache/RaylibBuild/raylib/libraylib.a\n")
(return false))
(return false))
(return true))
(add-compile-time-hook-module pre-build build-raylib)

Loading…
Cancel
Save