I use this script for building XulRunner.
It might not yield the same structure as the official builds but it
works:


#!/bin/sh

export MOZILLA_SOURCE_CODE_DIR=`pwd`
export PATH=${MOZILLA_SOURCE_CODE_DIR}/buildroot/bin:${PATH}


# --- Verision to build ---
MOZILLA_DIR=./firefox3.06/mozilla


# ----------------------------------------
# --- Disable GCC -fshort-wchar option : Comment IN if you need this.
I use it since I need to use mozille with WxWidgets ---
# ----------------------------------------
#configure_in=${MOZILLA_DIR}/configure.in
#sed -i 's/ac_cv_have_usable_wchar_option_v2="yes"/
ac_cv_have_usable_wchar_option_v2="no"/g' ./${configure_in}


# ----------------------
# --- Build the code ---
# ----------------------

# --enable-cpp-rtti       Enable C++ RTTI
# --enable-cpp-exceptions Enable C++ exceptions
# --disable-plugins
pushd ${MOZILLA_DIR}
autoconf
sh ./configure --prefix=../buildroot --enable-application=xulrunner --
disable-javaxpcom --enable-cpp-rtti --enable-cpp-exceptions
make
make package
popd

if [ $# -eq 1 ]
then
        echo
        echo "Copying build to: $1"
        echo
        mkdir $1
        mkdir $1/include
        mkdir $1/sdk
        mkdir $1/xulrunner
        mkdir $1/sdk/bin
        mkdir $1/sdk/idl
        mkdir $1/sdk/include
        mkdir $1/sdk/include/md
        mkdir $1/sdk/include/obsolete
        mkdir $1/sdk/include/private
        mkdir $1/sdk/lib

        cp -r ${MOZILLA_DIR}/dist/xulrunner/ $1
        find ${MOZILLA_DIR}/dist/include -iname "*" -exec cp '{}' $1/include/
';'
        # SDK stuff
        find ${MOZILLA_DIR}/dist/sdk/bin -iname "*" -exec cp '{}' $1/sdk/bin
';'
        find ${MOZILLA_DIR}/dist/sdk/idl -iname "*" -exec cp '{}' $1/sdk/idl
';'
        find ${MOZILLA_DIR}/dist/sdk/include/md -iname "*" -exec cp '{}' $1/
sdk/include/md ';'
        find ${MOZILLA_DIR}/dist/sdk/include/obsolete -iname "*" -exec cp
'{}' $1/sdk/include/obsolete ';'
        find ${MOZILLA_DIR}/dist/sdk/include/private -iname "*" -exec cp '{}'
$1/sdk/include/private ';'
        find ${MOZILLA_DIR}/dist/sdk/include -maxdepth 1 -iname "*" -exec cp
'{}' $1/sdk/include ';'
        find ${MOZILLA_DIR}/dist/sdk/lib -iname "*" -exec cp '{}' $1/sdk/lib
';'

        # Remove some files that have a counterpart with same name except for
casing which causes trouble on windows.
        # They seem not to be used. At least it does not prevent us from
compiling
        rm $1/include/gfxtypes.h

fi
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to