]> gitweb.factorcode.org Git - factor.git/commitdiff
mason.release.dlls: Copy dlls in the whitelist from the directory that the mason...
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 29 Mar 2016 16:52:12 +0000 (09:52 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 29 Mar 2016 16:52:12 +0000 (09:52 -0700)
Currently we only copy libressl dlls on Windows, but other targets are the openal dylib on Mac and libressl on other platforms?

extra/mason/release/dlls/authors.txt [new file with mode: 0644]
extra/mason/release/dlls/dlls.factor [new file with mode: 0644]
extra/mason/release/release.factor

diff --git a/extra/mason/release/dlls/authors.txt b/extra/mason/release/dlls/authors.txt
new file mode 100644 (file)
index 0000000..7c1b2f2
--- /dev/null
@@ -0,0 +1 @@
+Doug Coleman
diff --git a/extra/mason/release/dlls/dlls.factor b/extra/mason/release/dlls/dlls.factor
new file mode 100644 (file)
index 0000000..5d04583
--- /dev/null
@@ -0,0 +1,22 @@
+! Copyright (C) 2016 Doug Coleman.
+! See http://factorcode.org/license.txt for BSD license.
+USING: io.directories kernel sequences system ;
+IN: mason.release.dlls
+
+HOOK: dll-list os ( -- seq )
+
+M: object dll-list { } ;
+
+! These files should be in the directory that mason is run from.
+! e.g. c:\factor32 or c:\factor64 on the build machine.
+M: windows dll-list
+    {
+        "resource:libcrypto-37.dll"
+        "resource:libssl-38.dll"
+        "resource:libtls-10.dll"
+    } ;
+
+: copy-dlls ( -- )
+    dll-list [
+        "factor" copy-files-into
+    ] unless-empty ;
\ No newline at end of file
index 8a457cb2454b13db946af4ad4abd9b8dc4efd90b..ae3433980437daa44a6f307f9272efea8b30034b 100644 (file)
@@ -1,12 +1,14 @@
 ! Copyright (C) 2008, 2009 Eduardo Cavazos, Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: combinators mason.notify mason.release.archive
-mason.release.branch mason.release.tidy mason.release.upload ;
+mason.release.branch mason.release.dlls mason.release.tidy
+mason.release.upload ;
 IN: mason.release
 
 : release ( -- )
     update-clean-branch
     tidy
+    copy-dlls
     archive-name {
         [ make-archive ]
         [ upload ]