3 changed files with 42 additions and 0 deletions
@ -0,0 +1,30 @@ |
|||
(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") |
|||
|
|||
(import "CHelpers.cake" "BuildTools.cake" |
|||
"Dependencies.cake") |
|||
|
|||
(comptime-cond |
|||
('auto-test |
|||
(c-import "<stdio.h>" "miniz.h") |
|||
(defun test--compression (&return int) |
|||
(fprintf stderr "miniz version %s\n" (mz_version)) |
|||
(return 0)))) |
|||
|
|||
(add-c-search-directory-module "Dependencies/miniz" |
|||
"Dependencies/gamelib/src" |
|||
;; For GameLibTests.cake |
|||
"../src") |
|||
(add-c-build-dependency |
|||
"miniz.c" |
|||
"miniz_tdef.c" |
|||
"miniz_tinfl.c" |
|||
"miniz_zip.c") |
|||
|
|||
(add-dependency-git-submodule |
|||
clone-miniz |
|||
"https://github.com/richgel999/miniz.git" |
|||
"Dependencies/miniz") |
|||
|
@ -0,0 +1,10 @@ |
|||
// This is for Compression.cake to build miniz without CMake
|
|||
#ifdef WINDOWS |
|||
#ifdef MINIZ_EXPORTING |
|||
#define MINIZ_EXPORT __declspec(dllexport) |
|||
#else |
|||
#define MINIZ_EXPORT __declspec(dllimport) |
|||
#endif |
|||
#else |
|||
#define MINIZ_EXPORT |
|||
#endif |
Loading…
Reference in new issue