Browse Source

More work attempting to get Zig ready for merge

zig-compilation
Macoy Madson 9 months ago
parent
commit
f2ac4d85a1
  1. 2
      src/Config_ZigWindows.cake
  2. 2
      test/Build.sh
  3. 17
      test/BuildZig.sh
  4. 3
      test/src/GameLibTests.cake
  5. 1
      test/src/GameLibZigCross.cake

2
src/Config_ZigWindows.cake

@ -2,3 +2,5 @@
;; (add-compiler-link-options "-target x86_64-windows-gnu")
(comptime-define-symbol 'Windows)
(import "Config_ZigCompile.cake")

2
test/Build.sh

@ -14,4 +14,4 @@ cd ../..
CAKELISP=./Dependencies/cakelisp/bin/cakelisp
$CAKELISP src/Config_Linux.cake ../src/Config_ZigCompile.cake src/GameLibTests.cake --verbose-processes || exit $?
$CAKELISP src/Config_Linux.cake src/GameLibTests.cake --verbose-processes || exit $?

17
test/BuildZig.sh

@ -0,0 +1,17 @@
#!/bin/sh
CAKELISP_DIR=Dependencies/cakelisp
# Link Cakelisp if necessary
[ ! -d "$CAKELISP_DIR" ] && git clone git@github.com:makuto/cakelisp.git Dependencies/cakelisp
# Build Cakelisp itself
echo "\n\nCakelisp\n\n"
cd $CAKELISP_DIR
./Build.sh || exit $?
cd ../..
CAKELISP=./Dependencies/cakelisp/bin/cakelisp
$CAKELISP src/Config_Linux.cake ../src/Config_ZigCompile.cake src/GameLibZigCross.cake src/GameLibTests.cake --verbose-processes || exit $?

3
test/src/GameLibTests.cake

@ -32,6 +32,8 @@
(comptime-cond
('Windows
"src/Config_Windows.cake")
('Zig-Windows
"../src/Config_ZigWindows.cake")
(true
"src/Config_Linux.cake")))
@ -49,7 +51,6 @@
(gamelib-run-test
"Auto Test (somewhat minimal)"
(array platform-config
"../src/Config_ZigCompile.cake" "../src/Config_ZigWindows.cake"
"../src/AutoTest.cake" "../src/Introspection.cake"
"../src/Dictionary.cake" "../src/DynamicArray.cake"
"../src/TaskSystem.cake" "../src/Image.cake" "../src/DataBundle.cake")))

1
test/src/GameLibZigCross.cake

@ -0,0 +1 @@
(comptime-define-symbol 'Zig-Windows)
Loading…
Cancel
Save