#!/bin/sh if test -z "${SRC_ROOT}"; then if test -f ./config_build.mk ; then sed -e 's/^\s*\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/' config_build.mk.sh . ./config_build.mk.sh rm config_build.mk.sh else if test -f ./config_host.mk ; then sed -e 's/^\s*\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/' config_host.mk.sh . ./config_host.mk.sh rm config_host.mk.sh fi fi fi if test -z "${SOLARENV}"; then echo "bootstrap: No environment set!" exit 1 fi # executables are *.exe for WNT. This variable is necessary since Cygwin 1.5.x # Use spawn instead of fork when building dmake on cygwin. if test "$GUI_FOR_BUILD" = "WNT"; then EXEEXT=".exe" DMAKE_CONF="--enable-spawn" else EXEEXT="" DMAKE_CONF="" fi export EXEEXT # ------------------------------------------------------------------------------ # Build dmake if test "$BUILD_DMAKE" != "NO"; then if test ! -x "$SRC_ROOT/dmake/dmake$EXEEXT"; then cd "$SRC_ROOT/dmake" || exit # If cross-compiling then don't use the cross compilers to build dmake. if test "$GUI_FOR_BUILD" = "WNT"; then # Let the Cygwin gcc be found unset CC CXX AR NM OBJDUMP PKG_CONFIG RANLIB STRIP elif test "$CROSS_COMPILING" = "YES"; then export CC="$CC_FOR_BUILD" export CXX="$CXX_FOR_BUILD" unset AR NM OBJDUMP PKG_CONFIG RANLIB STRIP fi # For normal unixy systems if test -f "Makefile" ; then $GNUMAKE distclean || exit fi ./configure $DMAKE_CONF || exit ## invoke the gnu make command set by configure. $GNUMAKE || exit echo "" echo "dmake has been successfully built" cd .. else echo "dmake/dmake already built" fi fi mkdir -p "$SOLARENV/$OUTPATH_FOR_BUILD/bin" if test "$BUILD_DMAKE" != "NO"; then cp -f "$SRC_ROOT/dmake/dmake$EXEEXT" "$SOLARENV/$OUTPATH_FOR_BUILD/bin" || exit echo "" echo "dmake copied to $SOLARENV/$OUTPATH_FOR_BUILD/bin/dmake$EXEEXT" fi # build concat-deps echo "building concat-deps" if [ "$COM_FOR_BUILD" = "MSC" ] ; then # on cygwin force the use of gcc gcc -O2 "$SOLARENV/bin/concat-deps.c" -o "$SOLARENV/bin/concat-deps" || exit else $CC_FOR_BUILD -O2 "$SOLARENV/bin/concat-deps.c" -o "$SOLARENV/bin/concat-deps" || exit fi #make sure build.pl is executable chmod +x "$SRC_ROOT/solenv/bin/build.pl" chmod +x "$SRC_ROOT/solenv/bin/zipdep.pl" chmod +x "$SRC_ROOT/solenv/bin/gccinstlib.pl" # Local Variables: # mode: shell-script # tab-width: 4 # indent-tabs-mode: nil # End: # vim:set shiftwidth=4 softtabstop=4 expandtab: -24.04 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2012-11-05cleanup README files.Michael Meeks
2012-11-05add a README filesAlia Almusaireae
2012-10-30postgresql: forgot to change include path for openldapMatúš Kukan
2012-10-30fix parallelism variables and let's have only --with-parallelism from now onMatúš Kukan
2012-10-28openldap: convert to gbuildMatúš Kukan
2012-10-21fix postgresql on winPeter Foley
2012-10-21convert postgresql to gbuildPeter Foley
2012-07-16Fixing build with internal openldapFridrich Štrba
2012-07-16First attempt at removing mozilla ldap at all (please help to fix)Fridrich Štrba
2012-07-09Trying to use Windows LDAP for Windows buildsFridrich Strba
2012-05-04Revert "Fix Windows debug build."Jesús Corrius
2012-05-03Fix Windows debug build.Jesús Corrius
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen
2012-02-10Silence silly MSVC "deprecation" warnings tooTor Lillqvist
2012-02-10Don't use the debugging CRT and different name when building LO for debuggingTor Lillqvist
2012-02-10pgsql: MSVC build use MozLDAP headers only when using MozLDAPLionel Elie Mamane
2012-02-06fix postgresql massive-parallel buildLionel Elie Mamane
2012-02-05postgresql on MS Windows: use MozLDAP only if enabledLionel Elie Mamane
2012-02-03redo c16027de8423cdb6b33ce5f5f9e13fdc25b9dbeb cleanerLionel Elie Mamane
2012-02-03Fix order in which postgresql searches for libsStephan Bergmann
2012-01-31Fix build of postgresql module with mozilla ldap on WNTMSCFridrich Štrba
2012-01-24Use --build and --host when cross-compilingTor Lillqvist