4 changed files with 65 additions and 2 deletions
@ -0,0 +1,23 @@ |
|||
#!/bin/sh |
|||
|
|||
CAKELISP_DIR=Dependencies/cakelisp |
|||
|
|||
# Build Cakelisp itself |
|||
echo "\n\nCakelisp\n\n" |
|||
cd $CAKELISP_DIR |
|||
./Build.sh || exit $? |
|||
|
|||
cd ../.. |
|||
|
|||
echo "\n\nAuto Color\n\n" |
|||
|
|||
CAKELISP=./Dependencies/cakelisp/bin/cakelisp |
|||
|
|||
# We can't run the full app yet until I set up SDL to build under Mingw |
|||
$CAKELISP --verbose-processes \ |
|||
src/Config_Mingw.cake \ |
|||
src/AutoColorCLI.cake || exit $? |
|||
|
|||
rsync /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/libgcc_s_seh-1.dll . |
|||
|
|||
wine AutoColor.exe |
@ -0,0 +1,22 @@ |
|||
(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 'Windows) |
|||
|
|||
;; TODO: Remove. These are only to ease testing via cross-compilation |
|||
(set-cakelisp-option build-time-compiler "/usr/bin/x86_64-w64-mingw32-g++") |
|||
(set-cakelisp-option build-time-compile-arguments |
|||
"-g" "-c" 'source-input "-o" 'object-output |
|||
'include-search-dirs 'additional-options) |
|||
|
|||
(set-cakelisp-option build-time-linker "/usr/bin/x86_64-w64-mingw32-g++") |
|||
(set-cakelisp-option build-time-link-arguments |
|||
"-o" 'executable-output 'object-input) |
|||
|
|||
;; Use separate build configuration in case other things build files from src/ |
|||
(add-build-config-label "CrossCompile_Windows") |
|||
|
|||
(set-cakelisp-option executable-output "AutoColor.exe") |
Loading…
Reference in new issue