: prepend-current-path ( path -- path' )
current-directory get prepend-path ;
+: copy-output-file-as ( name new-name -- )
+ [ prepend-current-path ]
+ [ dll-out-directory prepend-path ] bi* copy-file ;
+
: copy-output-file ( name -- )
prepend-current-path dll-out-directory copy-file-into ;
"sqlite3.dll" copy-output-file
] with-updated-git-repo ;
+: build-yaml-dll ( -- )
+ "https://github.com/yaml/libyaml.git" [
+ [
+ current-directory get ...
+ { "cmake" "-DBUILD_SHARED_LIBS=ON" ".." } try-process
+ { "msbuild" "yaml.sln" } try-process
+ "Debug/yaml.dll" copy-output-file
+ ] with-build-directory
+ ] with-updated-git-repo ;
+
: build-zlib-dll ( -- )
"https://github.com/madler/zlib" [
check-nmake