Browse Source

Use the solution instead

master
Macoy Madson 5 months ago
parent
commit
c0ddfe2b9e
  1. 14
      src/FreeType.cake

14
src/FreeType.cake

@ -81,22 +81,14 @@
(defun-comptime build-freetype (manager (& ModuleManager) module (* Module) &return bool)
(comptime-cond
('Windows
(var freetype-expect-file (* (const char)) "cakelisp_cache/FreeTypeBuildDir/Release/freetype.lib")
(var freetype-build-dir (* (const char)) "cakelisp_cache/FreeTypeBuildDir")
(var freetype-expect-file (* (const char)) "Dependencies/FreeType/objs/freetype.lib")
;; Add dependency
(call-on push_back (field manager environment additionalStaticLinkObjects) freetype-expect-file)
(when (fileExists freetype-expect-file)
(return true))
(makeDirectory freetype-build-dir)
;; TODO: FreeType support for x64?
(run-process-sequential-or ("cmake.exe" "../../Dependencies/FreeType" "-DCMAKE_BUILD_TYPE=Release"
;; "-DCMAKE_GENERATOR_PLATFORM=x64"
:in-directory freetype-build-dir)
(Log "error: Failed to CMake FreeType\n")
(return false))
(run-process-sequential-or ("MSBuild.exe" "FreeType.sln" "/p:Configuration=Release" "/p:Platform=Win32"
:in-directory freetype-build-dir)
(run-process-sequential-or ("MSBuild.exe" "builds/windows/vc2010/FreeType.sln" "/p:Configuration=Release" "/p:Platform=x64"
:in-directory "Dependencies/FreeType")
(Log "error: Failed to CMake build FreeType\n")
(return false))

Loading…
Cancel
Save