Browse Source

WIP FreeType on Windows

master
Macoy Madson 5 months ago
parent
commit
4bbbae7c70
  1. 9
      src/FreeType.cake

9
src/FreeType.cake

@ -81,7 +81,14 @@
(defun-comptime build-freetype (manager (& ModuleManager) module (* Module) &return bool)
(comptime-cond
('Windows
(comptime-error "Need to add Windows support to FreeType"))
(var freetype-build-dir (* (const char)) "cakelisp_cache/FreeTypeBuildDir")
(makeDirectory freetype-build-dir)
(run-process-sequential-or ("cmake ../ -D CMAKE_BUILD_TYPE=Release" :in-directory freetype-build-dir)
(Log "error: Failed to CMake FreeType\n")
(return false))
(run-process-sequential-or ("cmake --build build" :in-directory freetype-build-dir)
(Log "error: Failed to CMake build FreeType\n")
(return false)))
('Unix
;; TODO: These paths are duplicated elsewhere in this file

Loading…
Cancel
Save