]> gitweb.factorcode.org Git - factor.git/commitdiff
Download Windows DLLs from builder, so that we don't need wget to build Factor
authorunknown <Administrator@.(none)>
Tue, 18 Nov 2008 00:43:33 +0000 (18:43 -0600)
committerunknown <Administrator@.(none)>
Tue, 18 Nov 2008 00:43:33 +0000 (18:43 -0600)
extra/mason/child/child.factor

index 2bc6b191c46faa7fd7c17f17d1c6e44261d1eb3f..0c9669ed5a5a5425088dc0c54df89dfaf3c24665 100644 (file)
@@ -2,14 +2,26 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: kernel namespaces make debugger sequences io.files
 io.launcher arrays accessors calendar continuations
-combinators.short-circuit mason.common mason.report mason.platform ;
+combinators.short-circuit mason.common mason.report
+mason.platform mason.config http.client ;
 IN: mason.child
 
 : make-cmd ( -- args )
-    [ gnu-make , "clean" , platform , ] { } make ;
+    gnu-make platform 2array ;
+
+: download-dlls ( -- )
+    target-os get "winnt" = [
+        "http://factorcode.org/dlls/"
+        target-cpu get "x86.64" = [ "64/" append ] when
+        [ "freetype6.dll" append ]
+        [ "zlib1.dll" append ] bi
+        [ download ] bi@
+    ] when ;
 
 : make-vm ( -- )
     "factor" [
+        download-dlls
+
         <process>
             make-cmd >>command
             "../compile-log" >>stdout