Browse Source

Fix config, add SDL and imgui

TreemapSubdirectories
Macoy Madson 2 years ago
parent
commit
2e1b9ae220
  1. 6
      .gitmodules
  2. 2
      Build.sh
  3. 1
      Dependencies/SDL
  4. 1
      Dependencies/imgui
  5. 8
      src/Config_Linux.cake
  6. 6
      src/FileHelper.cake

6
.gitmodules

@ -4,3 +4,9 @@
[submodule "Dependencies/gamelib"]
path = Dependencies/gamelib
url = gitea@macoy.me:macoy/gamelib.git
[submodule "Dependencies/SDL"]
path = Dependencies/SDL
url = https://github.com/libsdl-org/SDL
[submodule "Dependencies/imgui"]
path = Dependencies/imgui
url = https://github.com/ocornut/imgui

2
Build.sh

@ -14,5 +14,5 @@ echo "\n\nFile Helper\n\n"
CAKELISP=./Dependencies/cakelisp/bin/cakelisp
$CAKELISP --execute \
Dependencies/gamelib/test/src/Config_Linux.cake \
src/Config_Linux.cake \
src/FileHelper.cake || exit $?

1
Dependencies/SDL

@ -0,0 +1 @@
Subproject commit 9c063468d6b806de954d867ced857395c6162b82

1
Dependencies/imgui

@ -0,0 +1 @@
Subproject commit 33cdbe97b8fd233c6c12ca216e76398c2e89b0d8

8
src/Config_Linux.cake

@ -0,0 +1,8 @@
(skip-build)
(set-cakelisp-option cakelisp-src-dir "Dependencies/cakelisp/src")
(add-cakelisp-search-directory "Dependencies/gamelib/src")
(add-cakelisp-search-directory "Dependencies/cakelisp/runtime")
(add-cakelisp-search-directory "src")
(comptime-define-symbol 'Unix)

6
src/FileHelper.cake

@ -1,8 +1,4 @@
(set-cakelisp-option cakelisp-src-dir "Dependencies/cakelisp/src")
(add-cakelisp-search-directory "Dependencies/gamelib/src")
(add-cakelisp-search-directory "Dependencies/cakelisp/runtime")
(import "SDL.cake")
(import "SDL.cake" "ImGui.cake")
(c-import "SDL.h" "SDL_syswm.h" "SDL_timer.h")
;; TODO: Somehow inherit this from SDL.cake?
(module-use-sdl-build-options)

Loading…
Cancel
Save