Updating deploy tool, mason.child and factor.sh for new Windows DLLs
parent
8f916c061f
commit
c2bc2c0705
|
@ -1,4 +1,4 @@
|
||||||
! Copyright (C) 2007, 2008 Slava Pestov.
|
! Copyright (C) 2007, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: namespaces make continuations.private kernel.private init
|
USING: namespaces make continuations.private kernel.private init
|
||||||
assocs kernel vocabs words sequences memory io system arrays
|
assocs kernel vocabs words sequences memory io system arrays
|
||||||
|
@ -14,9 +14,14 @@ IN: tools.deploy.backend
|
||||||
: copy-vm ( executable bundle-name -- vm )
|
: copy-vm ( executable bundle-name -- vm )
|
||||||
prepend-path vm over copy-file ;
|
prepend-path vm over copy-file ;
|
||||||
|
|
||||||
: copy-fonts ( name dir -- )
|
CONSTANT: theme-path "basis/ui/gadgets/theme/"
|
||||||
|
|
||||||
|
: copy-theme ( name dir -- )
|
||||||
deploy-ui? get [
|
deploy-ui? get [
|
||||||
append-path "resource:fonts/" swap copy-tree-into
|
append-path
|
||||||
|
theme-path append-path
|
||||||
|
[ make-directories ]
|
||||||
|
[ theme-path "resource:" prepend swap copy-tree ] bi
|
||||||
] [ 2drop ] if ;
|
] [ 2drop ] if ;
|
||||||
|
|
||||||
: image-name ( vocab bundle-name -- str )
|
: image-name ( vocab bundle-name -- str )
|
||||||
|
|
|
@ -7,7 +7,7 @@ tools.deploy.config.editor assocs hashtables prettyprint ;
|
||||||
IN: tools.deploy.unix
|
IN: tools.deploy.unix
|
||||||
|
|
||||||
: create-app-dir ( vocab bundle-name -- vm )
|
: create-app-dir ( vocab bundle-name -- vm )
|
||||||
dup "" copy-fonts
|
dup "" copy-theme
|
||||||
copy-vm
|
copy-vm
|
||||||
dup OCT: 755 set-file-permissions ;
|
dup OCT: 755 set-file-permissions ;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2007, 2009 Slava Pestov.
|
! Copyright (C) 2007, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: io io.files io.pathnames io.directories kernel namespaces
|
USING: io io.files io.pathnames io.directories io.encodings.ascii kernel namespaces
|
||||||
sequences locals system splitting tools.deploy.backend
|
sequences locals system splitting tools.deploy.backend
|
||||||
tools.deploy.config tools.deploy.config.editor assocs hashtables
|
tools.deploy.config tools.deploy.config.editor assocs hashtables
|
||||||
prettyprint combinators windows.shell32 windows.user32 ;
|
prettyprint combinators windows.shell32 windows.user32 ;
|
||||||
|
@ -9,11 +9,10 @@ IN: tools.deploy.windows
|
||||||
: copy-dll ( bundle-name -- )
|
: copy-dll ( bundle-name -- )
|
||||||
"resource:factor.dll" swap copy-file-into ;
|
"resource:factor.dll" swap copy-file-into ;
|
||||||
|
|
||||||
: copy-freetype ( bundle-name -- )
|
: copy-pango ( bundle-name -- )
|
||||||
{
|
"resource:build-support/dlls.txt" ascii file-lines
|
||||||
"resource:freetype6.dll"
|
[ "resource:" prepend-path ] map
|
||||||
"resource:zlib1.dll"
|
swap copy-files-into ;
|
||||||
} swap copy-files-into ;
|
|
||||||
|
|
||||||
:: copy-vm ( executable bundle-name extension -- vm )
|
:: copy-vm ( executable bundle-name extension -- vm )
|
||||||
vm "." split1-last drop extension append
|
vm "." split1-last drop extension append
|
||||||
|
@ -23,8 +22,8 @@ IN: tools.deploy.windows
|
||||||
: create-exe-dir ( vocab bundle-name -- vm )
|
: create-exe-dir ( vocab bundle-name -- vm )
|
||||||
dup copy-dll
|
dup copy-dll
|
||||||
deploy-ui? get [
|
deploy-ui? get [
|
||||||
[ copy-freetype ]
|
[ copy-pango ]
|
||||||
[ "" copy-fonts ]
|
[ "" copy-theme ]
|
||||||
[ ".exe" copy-vm ] tri
|
[ ".exe" copy-vm ] tri
|
||||||
] [ ".com" copy-vm ] if ;
|
] [ ".com" copy-vm ] if ;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
libcairo-2.dll
|
||||||
|
libgio-2.0-0.dll
|
||||||
|
libglib-2.0-0.dll
|
||||||
|
libgmodule-2.0-0.dll
|
||||||
|
libgobject-2.0-0.dll
|
||||||
|
libgthread-2.0-0.dll
|
||||||
|
libpango-1.0-0.dll
|
||||||
|
libpangocairo-1.0-0.dll
|
||||||
|
libpangowin32-1.0-0.dll
|
||||||
|
libpng12-0.dll
|
||||||
|
libtiff3.dll
|
||||||
|
zlib1.dll
|
|
@ -447,31 +447,11 @@ get_url() {
|
||||||
|
|
||||||
maybe_download_dlls() {
|
maybe_download_dlls() {
|
||||||
if [[ $OS == winnt ]] ; then
|
if [[ $OS == winnt ]] ; then
|
||||||
get_url http://factorcode.org/dlls/freetype6.dll
|
for file in `cat build-support/dlls.txt`; do
|
||||||
get_url http://factorcode.org/dlls/zlib1.dll
|
get_url http://factorcode.org/dlls/$file
|
||||||
get_url http://factorcode.org/dlls/OpenAL32.dll
|
chmod 777 *.dll
|
||||||
get_url http://factorcode.org/dlls/alut.dll
|
check_ret chmod
|
||||||
get_url http://factorcode.org/dlls/comerr32.dll
|
done
|
||||||
get_url http://factorcode.org/dlls/gssapi32.dll
|
|
||||||
get_url http://factorcode.org/dlls/iconv.dll
|
|
||||||
get_url http://factorcode.org/dlls/k5sprt32.dll
|
|
||||||
get_url http://factorcode.org/dlls/krb5_32.dll
|
|
||||||
get_url http://factorcode.org/dlls/libcairo-2.dll
|
|
||||||
get_url http://factorcode.org/dlls/libeay32.dll
|
|
||||||
get_url http://factorcode.org/dlls/libiconv2.dll
|
|
||||||
get_url http://factorcode.org/dlls/libintl3.dll
|
|
||||||
get_url http://factorcode.org/dlls/libpq.dll
|
|
||||||
get_url http://factorcode.org/dlls/libxml2.dll
|
|
||||||
get_url http://factorcode.org/dlls/libxslt.dll
|
|
||||||
get_url http://factorcode.org/dlls/msvcr71.dll
|
|
||||||
get_url http://factorcode.org/dlls/ogg.dll
|
|
||||||
get_url http://factorcode.org/dlls/pgaevent.dll
|
|
||||||
get_url http://factorcode.org/dlls/sqlite3.dll
|
|
||||||
get_url http://factorcode.org/dlls/ssleay32.dll
|
|
||||||
get_url http://factorcode.org/dlls/theora.dll
|
|
||||||
get_url http://factorcode.org/dlls/vorbis.dll
|
|
||||||
chmod 777 *.dll
|
|
||||||
check_ret chmod
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -522,7 +502,7 @@ make_boot_image() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_build_system_apt() {
|
install_build_system_apt() {
|
||||||
sudo apt-get --yes install libc6-dev libfreetype6-dev libx11-dev xorg-dev glutg3-dev wget git-core git-doc rlwrap gcc make
|
sudo apt-get --yes install libc6-dev libpango-1.0-dev libx11-dev xorg-dev glutg3-dev wget git-core git-doc rlwrap gcc make
|
||||||
check_ret sudo
|
check_ret sudo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
! Copyright (C) 2008 Eduardo Cavazos, Slava Pestov.
|
! Copyright (C) 2008, 2009 Eduardo Cavazos, Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays calendar combinators.short-circuit
|
USING: accessors arrays calendar combinators.short-circuit
|
||||||
continuations debugger http.client io.directories io.files
|
continuations debugger http.client io.directories io.files io.launcher
|
||||||
io.launcher io.pathnames kernel make mason.common mason.config
|
io.pathnames io.encodings.ascii kernel make mason.common mason.config
|
||||||
mason.platform mason.report mason.email namespaces sequences ;
|
mason.platform mason.report mason.email namespaces sequences ;
|
||||||
IN: mason.child
|
IN: mason.child
|
||||||
|
|
||||||
: make-cmd ( -- args )
|
: make-cmd ( -- args )
|
||||||
gnu-make platform 2array ;
|
gnu-make platform 2array ;
|
||||||
|
|
||||||
|
: dll-url ( -- url )
|
||||||
|
"http://factorcode.org/dlls/"
|
||||||
|
target-cpu get "x86.64" = [ "64/" append ] when ;
|
||||||
|
|
||||||
: download-dlls ( -- )
|
: download-dlls ( -- )
|
||||||
target-os get "winnt" = [
|
target-os get "winnt" = [
|
||||||
"http://factorcode.org/dlls/"
|
dll-url "build-support/dlls.txt" ascii file-lines
|
||||||
target-cpu get "x86.64" = [ "64/" append ] when
|
[ append download ] with each
|
||||||
[ "freetype6.dll" append ]
|
|
||||||
[ "zlib1.dll" append ] bi
|
|
||||||
[ download ] bi@
|
|
||||||
] when ;
|
] when ;
|
||||||
|
|
||||||
: make-vm ( -- )
|
: make-vm ( -- )
|
||||||
|
|
Loading…
Reference in New Issue