Browse Source

Converted remaining dependencies to auto-clone

RelativeDependencies
Macoy Madson 3 years ago
parent
commit
6be4a3de7e
  1. 3
      src/Aubio.cake
  2. 2
      src/Dependencies.cake
  3. 7
      src/Ogre.cake
  4. 2
      src/SDL.cake
  5. 2
      src/Tracy.cake
  6. 4
      test/src/VocalGame.cake

3
src/Aubio.cake

@ -82,7 +82,7 @@
;;
(set-cakelisp-option cakelisp-src-dir "Dependencies/cakelisp/src")
(add-cakelisp-search-directory "Dependencies/cakelisp/runtime")
(import &comptime-only "Macros.cake" "BuildTools.cake")
(import &comptime-only "ComptimeHelpers.cake" "BuildTools.cake")
(defun-comptime build-aubio (manager (& ModuleManager) module (* Module) &return bool)
(comptime-cond
@ -113,6 +113,7 @@
(Log "Aubio: Successfully built\n")
(return true))
(add-dependency-git-submodule clone-aubio "https://github.com/aubio/aubio" "Dependencies/Aubio")
(add-compile-time-hook-module pre-build build-aubio)
(add-c-search-directory-module "Dependencies/aubio/src")

2
src/Dependencies.cake

@ -1,7 +1,7 @@
(skip-build)
(set-cakelisp-option cakelisp-src-dir "Dependencies/cakelisp/src")
(add-cakelisp-search-directory "Dependencies/cakelisp/runtime")
(import &comptime-only "Macros.cake" "BuildTools.cake")
(import &comptime-only "ComptimeHelpers.cake" "BuildTools.cake")
;; TODO Pitfall: This will pull master, which we might not know works. We need to specify a branch
(defmacro add-dependency-git-submodule (hook-name symbol repository-url string output-directory string)

7
src/Ogre.cake

@ -3,7 +3,7 @@
(import
"OgreInitialize.cake"
&comptime-only "Macros.cake" "BuildTools.cake")
&comptime-only "CHelpers.cake" "BuildTools.cake")
(c-import "<stdio.h>"
;; Ogre dependencies
@ -387,6 +387,11 @@ ln -s %s %s\n"
(Log "Ogre: Successfully built\n")
(return true))
(add-dependency-git-submodule clone-ogre-next "https://github.com/OGRECave/ogre-next"
"Dependencies/ogre-next")
(add-dependency-git-submodule clone-ogre-next-deps "https://github.com/OGRECave/ogre-next-deps"
"Dependencies/ogre-next-deps")
(add-compile-time-hook-module pre-build build-ogre)
(use-ogre-build-options)

2
src/SDL.cake

@ -1,7 +1,7 @@
(set-cakelisp-option cakelisp-src-dir "Dependencies/cakelisp/src")
(add-cakelisp-search-directory "Dependencies/cakelisp/runtime")
(import &comptime-only "Macros.cake" "BuildTools.cake" "Dependencies.cake")
(import &comptime-only "CHelpers.cake" "BuildTools.cake" "Dependencies.cake")
(c-import "stdio.h"
"SDL.h"

2
src/Tracy.cake

@ -58,6 +58,8 @@
(Log "error: did not build Tracy profiler. Is this platform unsupported? Was Tracy built in an
unexpected location?")
(return false))
(add-dependency-git-submodule clone-tracy "https://github.com/wolfpld/tracy" "Dependencies/tracy")
(add-compile-time-hook-module pre-build build-tracy-profiler)
;; TODO: Any file which includes Tracy needs these

4
test/src/VocalGame.cake

@ -805,3 +805,7 @@ path? You may need to install ImageMagick. See https://www.imagemagick.org/scrip
(add-cpp-build-dependency "OgreHlms.cpp")
(module-use-tracy-build-options)
(import &comptime-only "Dependencies.cake")
(add-dependency-git-submodule clone-blender2ogre "https://github.com/OGRECave/blender2ogre"
"Dependencies/blender2ogre")

Loading…
Cancel
Save