Changeset 6467


Ignore:
Timestamp:
Dec 13, 2017, 5:55:23 PM (2 years ago)
Author:
Juanma
Message:

firefox_customizer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devtools/firefox_customizer/firefox_customizer.sh

    r6465 r6467  
    7171mk_add_options MOZ_APP_DISPLAYNAME=${APPNAME}
    7272        " > mozconfig
     73        if [ $BUILD_386 -eq 1 ]
     74        then
     75                echo "##i386 build###
     76export PKG_CONFIG_PATH="/var/chroot/linux32/usr/lib/i386-linux-gnu/pkgconfig:/var/chroot/linux32/usr/share/pkgconfig"
     77export MOZ_LINUX_32_SSE2_STARTUP_ERROR=1
     78CFLAGS="$CFLAGS -msse -msse2 -mfpmath=sse"
     79CXXFLAGS="$CXXFLAGS -msse -msse2 -mfpmath=sse"
     80#LDFLAGS='-L/var/chroot/linux32/usr/lib/i386-linux-gnu/ -L/var/chroot/linux32/lib/i386-linux-gnu/'
     81if test `uname -m` = "x86_64"; then
     82#  export CC=/var/chroot/linux32/usr/bin/gcc
     83#  export CXX=/var/chroot/linux32/usr/bin/g++
     84  CFLAGS="$CFLAGS -m32 -march=pentium-m $LDFLAGS"
     85  CXXFLAGS="$CXXFLAGS -m32 -march=pentium-m $LDFLAGS"
     86  ac_add_options --target=i686-pc-linux
     87  ac_add_options --host=i686-pc-linux
     88#  ac_add_options --host=x86_64-pc-linux
     89  ac_add_options --x-libraries=/usr/lib
     90fi
     91" >> mozconfig
     92        fi
    7393}
    7494
     
    102122}
    103123
     124function help()
     125{
     126        printf "Usage: $0 [OPTION]\n\n"
     127        echo "  amd64"
     128        printf "\tGenerates amd64 build\n"
     129        echo "  i386"
     130        printf "\tGenerates i386 build\n"
     131        exit 0
     132}
     133
    104134#### MAIN ####
     135
     136[ $# -eq 0 ] && help
     137
     138if [[ $1 == "i386" ]]
     139then
     140        BUILD_386=1
     141elif [[ $1 != "amd64" ]]
     142then
     143        help
     144fi
    105145
    106146run_tests
Note: See TracChangeset for help on using the changeset viewer.