diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-05-17 02:22:19 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@filifjonkan.site> | 2011-05-17 02:22:19 +0300 |
commit | 84fbaed77de78c37ddae2da17f182aa148ef5776 (patch) | |
tree | a14630c11e9306f074a4d8c9f42dd8f843b0a3aa | |
parent | 85d44913abdca42d32bb98e435221227d447fe65 (diff) |
More cross-compiling work
AC_SUBST also EXEEXT_FOR_BUILD and use that in Makefile.in.
As winemv.set.sh is now called WindowsMSVCEnv.Set.sh, with capital E
and S like all the others, we can simplify the glob pattern for the
Set.sh file.
Don't attempt to download and/or run unpackers for dependencies
relevant only when using MSVC if using MinGW.
Misc other Windows host vs. build fixes.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.in | 32 | ||||
-rwxr-xr-x | configure.in | 8 | ||||
-rwxr-xr-x | download | 7 | ||||
-rwxr-xr-x | post_download.in | 6 | ||||
-rwxr-xr-x | set_soenv.in | 3 | ||||
-rwxr-xr-x | solenv/bin/relocate | 2 | ||||
-rw-r--r-- | solenv/inc/settings.mk | 6 | ||||
-rw-r--r-- | solenv/inc/startup/startup.mk | 2 | ||||
-rw-r--r-- | solenv/inc/tg_ext.mk | 2 |
10 files changed, 35 insertions, 34 deletions
diff --git a/.gitignore b/.gitignore index 14df6753f249..c17ae1f99b61 100644 --- a/.gitignore +++ b/.gitignore @@ -57,7 +57,6 @@ /install /downloaded /*.Set.sh -/winenv.set.sh /ID /tags /docs diff --git a/Makefile.in b/Makefile.in index 54e93cfae54b..9b9dcbf138cc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -8,14 +8,14 @@ else GBUILD_OPT:=--gmake endif -all: Makefile dmake/dmake@EXEEXT@ src.downloaded +all: Makefile dmake/dmake@EXEEXT_FOR_BUILD@ src.downloaded - @. ./*[Ee]nv.[Ss]et.sh && \ + @. ./*Env.Set.sh && \ cd instsetoo_native && \ build.pl $(GBUILD_OPT) -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@ install: - @. ./*[Ee]nv.[Ss]et.sh && \ + @. ./*Env.Set.sh && \ echo "Installing in $${prefix:-@prefix@}..." && \ ooinstall "$${prefix:-@prefix@}" && \ echo "" && \ @@ -23,27 +23,27 @@ install: echo "$${prefix:-@prefix@}/program/soffice" dev-install: - @. ./*[Ee]nv.[Ss]et.sh && \ + @. ./*Env.Set.sh && \ ooinstall -l @abs_builddir@/install && \ echo "" && \ echo "Developer installation finished, you can now execute:" && \ echo "@abs_builddir@/install/program/soffice" -distclean: dmake/dmake@EXEEXT@ - @. ./*[Ee]nv.[Ss]et.sh && \ +distclean: dmake/dmake@EXEEXT_FOR_BUILD@ + @. ./*Env.Set.sh && \ dmake distclean -clean: dmake/dmake@EXEEXT@ - @. ./*[Ee]nv.[Ss]et.sh && \ +clean: dmake/dmake@EXEEXT_FOR_BUILD@ + @. ./*Env.Set.sh && \ dmake clean && \ if [ -n "$$USE_GMAKE" ] ; then make -f GNUmakefile.mk -sr clean ; fi -dmake/dmake@EXEEXT@: - @. ./*[Ee]nv.[Ss]et.sh && \ +dmake/dmake@EXEEXT_FOR_BUILD@: + @. ./*Env.Set.sh && \ ./bootstrap src.downloaded: ooo.lst download - @. ./*[Ee]nv.[Ss]et.sh && \ + @. ./*Env.Set.sh && \ $$SRC_ROOT/download $$SRC_ROOT/ooo.lst && touch $@ fetch: src.downloaded @@ -51,20 +51,20 @@ fetch: src.downloaded Makefile: configure.in set_soenv.in Makefile.in ./autogen.sh -check: Makefile dmake/dmake@EXEEXT@ fetch - @. ./*[Ee]nv.[Ss]et.sh && \ +check: Makefile dmake/dmake@EXEEXT_FOR_BUILD@ fetch + @. ./*Env.Set.sh && \ cd smoketestoo_native && \ export SAL_USE_VCLPLUGIN="svp" && \ build.pl $(GBUILD_OPT) -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@ id: - @. ./*[Ee]nv.[Ss]et.sh && \ + @. ./*Env.Set.sh && \ create-ids tags: - @. ./*[Ee]nv.[Ss]et.sh && \ + @. ./*Env.Set.sh && \ create-tags docs: - @. ./*[Ee]nv.[Ss]et.sh && \ + @. ./*Env.Set.sh && \ mkdocs.sh $$SRC_ROOT/docs $$SOLARENV/inc/doxygen.cfg diff --git a/configure.in b/configure.in index fbffd51f2d2a..5b652d213c4e 100755 --- a/configure.in +++ b/configure.in @@ -1292,11 +1292,11 @@ fi AC_SUBST(CROSS_COMPILING) if test "$build_os" = "cygwin"; then - BUILD_EXEEXT=.exe + EXEEXT_FOR_BUILD=.exe else - BUILD_EXEEXT= + EXEEXT_FOR_BUILD= fi - +AC_SUBST(EXEEXT_FOR_BUILD) dnl =================================================================== dnl check for required programs (grep, awk, sed, bash) @@ -5932,7 +5932,7 @@ if test "$_os" = "WINNT" ; then if test "$build_os" = "cygwin"; then with_nsis_path=`cygpath -u "$with_nsis_path"` fi - if test -e "$with_nsis_path/makensis$BUILD_EXEEXT"; then + if test -e "$with_nsis_path/makensis$EXEEXT_FOR_BUILD"; then NSIS_PATH="$with_nsis_path" elif test "$build_os" = "cygwin"; then nsistest=`./oowintool --nsis-dir`; @@ -28,7 +28,7 @@ # environment setup yet? if [ -z "$TARFILE_LOCATION" ]; then - . ./*[Ee]nv.[Ss]et.sh + . ./*Env.Set.sh fi # we want to clone if we are in the bootstrap git repo and clone does not exist yet @@ -173,7 +173,7 @@ for i in $filelist ; do fi done -if [ "$GUI" = "WNT" ]; then +if [ "$COM" = "MSC" ]; then downloaditem "http://download.microsoft.com/download/platformsdk/Redist/5.0.2195.1/W9XNT4/EN-US/" "dbghinst.EXE" "096f1d53d9ba09cde27d6f7c2ea6cc47" downloaditem "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/" "WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd" @@ -201,7 +201,8 @@ if [ ! -z "$failed" ]; then exit 1 fi -if [ "$GUI" = "WNT" -a -n "$md5sum" ]; then +if [ "$COM" = "MSC" -a -n "$md5sum" ]; then + # This can be run only on Windows itself (Cygwin) TMPUNPACK=`cygpath -d $TARFILE_LOCATION/tmp` chmod a+w $TARFILE_LOCATION/tmp if [ ! -f ./external/dbghelp/dbghelp.dll -a -f $TARFILE_LOCATION/dbghinst.EXE ]; then diff --git a/post_download.in b/post_download.in index ff639f801633..fc4207e709fa 100755 --- a/post_download.in +++ b/post_download.in @@ -21,7 +21,7 @@ case "$host_os" in gnu) _os=GNU ;; - cygwin*) # Windows + cygwin*|mingw32*) # Windows _os=WINNT ;; darwin*) # Mac OS X or iOS @@ -69,7 +69,7 @@ fi dnl =================================================================== dnl Windows builds - use oowintool to copy CRT dlls and manifest dnl =================================================================== -if test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then +if test "$COM" = "MSC"; then if ./oowintool --msvc-copy-dlls ./external/msvcp ; then : else @@ -95,7 +95,7 @@ fi dnl =================================================================== dnl Windows builds need vcredist_x86.exe and vcredist_x64.exe in external/vcredist/ dnl =================================================================== -if test "$_os" = "WINNT"; then +if test "$COM" = "MSC"; then AC_MSG_CHECKING([for vcredist_x86.exe]) if test -e ./external/vcredist/vcredist_x86.exe; then AC_MSG_RESULT([found]) diff --git a/set_soenv.in b/set_soenv.in index fe5e6409f419..826a11fcd126 100755 --- a/set_soenv.in +++ b/set_soenv.in @@ -665,7 +665,8 @@ elsif ( $platform =~ m/cygwin|mingw32/ ) # At the moment this implies the use of tcsh # WTF does that mean? $FLIPCMD = "slfl.pl"; - $PATH_SEPERATOR = ';' if '@build_os@' eq 'cygwin'; + $PATH_SEPERATOR = ';'; + $PATH_SEPERATOR = ':' if '@build_os@' ne 'cygwin'; $outfile = "WindowsMinGWEnv.Set.sh"; $COMPATH = PathFormat('@COMPATH@/bin'); $COMPATH =~ s/\/bin$//i; diff --git a/solenv/bin/relocate b/solenv/bin/relocate index 4e9fe685b687..6a5cfb992a3c 100755 --- a/solenv/bin/relocate +++ b/solenv/bin/relocate @@ -45,7 +45,7 @@ sub sniff_set($) opendir ($dirhandle, $build_dir) || die "Can't open $build_dir"; while ($fname = readdir ($dirhandle)) { - $fname =~ /[Ss]et.sh$/ && last; + $fname =~ /Set.sh$/ && last; } closedir ($dirhandle); diff --git a/solenv/inc/settings.mk b/solenv/inc/settings.mk index 80c6b721c5f4..04dfd3490387 100644 --- a/solenv/inc/settings.mk +++ b/solenv/inc/settings.mk @@ -320,11 +320,11 @@ dbgutil= # --------------------------------------------------------------------------- DMAKE_WORK_DIR*:=$(subst,/,/ $(PWD)) -.IF "$(GUI)"=="WNT" +.IF "$(GUI_FOR_BUILD)"=="WNT" posix_PWD:=/cygdrive/$(PWD:s/://) -.ELSE #GUI)"=="WNT" +.ELSE posix_PWD:=$(PWD) -.ENDIF #GUI)"=="WNT" +.ENDIF .IF "$(TMP)"!="" diff --git a/solenv/inc/startup/startup.mk b/solenv/inc/startup/startup.mk index bd028d835921..da4f38e5e5ad 100644 --- a/solenv/inc/startup/startup.mk +++ b/solenv/inc/startup/startup.mk @@ -42,7 +42,7 @@ OS_variable_needed # Customize macro definitions based on seting of OS. # This must come before the default macro definitions which follow. -.IF "$(OS)" == "WNT" +.IF "$(OS_FOR_BUILD)" == "WNT" .INCLUDE: $(INCFILENAME:d)wnt/macros.mk .END diff --git a/solenv/inc/tg_ext.mk b/solenv/inc/tg_ext.mk index d219302c6e1b..65dfe4a463c4 100644 --- a/solenv/inc/tg_ext.mk +++ b/solenv/inc/tg_ext.mk @@ -39,7 +39,7 @@ LDFLAGS!:=$(EXTRA_LINKFLAGS) $(LDFLAGS) .EXPORT : LDFLAGS .ENDIF -.IF "$(GUI)"=="WNT" +.IF "$(GUI_FOR_BUILD)"=="WNT" PATH!:=.:$(SOLARBINDIR:^"/cygdrive/":s/://):$(PATH) .ELSE # "$(GUI)"=="WNT" PATH!:=.$(PATH_SEPERATOR)$(SOLARBINDIR)$(PATH_SEPERATOR)$(PATH) |