File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 tar xf ${NW_DOWNLOAD} .tar.gz
4444 export PATH=$( pwd) /${NW_DOWNLOAD} :${PATH}
4545 if [[ " ${TARGET_ARCH} " == ' ia32' ]]; then
46+ # for nw >= 0.11.0 on ia32 we need gcc/g++ 4.8
47+ IFS=' .' read -a NODE_WEBKIT_VERSION <<< " ${NODE_WEBKIT}"
48+ if test ${NODE_WEBKIT_VERSION[0]} -ge 0 -a ${NODE_WEBKIT_VERSION[1]} -ge 11; then
49+ # travis-ci runs ubuntu 12.04, so we need this ppa for gcc/g++ 4.8
50+ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
51+ CC=gcc-4.8
52+ CXX=g++-4.8
53+ COMPILER_PACKAGES=" gcc-4.8-multilib g++-4.8-multilib"
54+ else
55+ CC=gcc-4.6
56+ CXX=g++-4.6
57+ COMPILER_PACKAGES=" gcc-multilib g++-multilib"
58+ fi
4659 # need to update to avoid 404 for linux-libc-dev_3.2.0-64.97_amd64.deb
4760 sudo apt-get update
4861 # prepare packages for 32-bit builds on Linux
49- sudo apt-get -y install gcc-multilib g++-multilib libx11-6:i386 libnotify4:i386 libxtst6:i386 libcap2:i386 libglib2.0-0:i386 libgtk2.0-0:i386 libatk1.0-0:i386 libgdk-pixbuf2.0-0:i386 libcairo2:i386 libfreetype6:i386 libfontconfig1:i386 libxcomposite1:i386 libasound2:i386 libxdamage1:i386 libxext6:i386 libxfixes3:i386 libnss3:i386 libnspr4:i386 libgconf-2-4:i386 libexpat1:i386 libdbus-1-3:i386 libudev0:i386
62+ sudo apt-get -y install $COMPILER_PACKAGES libx11-6:i386 libnotify4:i386 libxtst6:i386 libcap2:i386 libglib2.0-0:i386 libgtk2.0-0:i386 libatk1.0-0:i386 libgdk-pixbuf2.0-0:i386 libcairo2:i386 libfreetype6:i386 libfontconfig1:i386 libxcomposite1:i386 libasound2:i386 libxdamage1:i386 libxext6:i386 libxfixes3:i386 libnss3:i386 libnspr4:i386 libgconf-2-4:i386 libexpat1:i386 libdbus-1-3:i386 libudev0:i386
5063 # also use ldd to find out if some necessary apt-get is missing
5164 ldd $( pwd) /${NW_DOWNLOAD} /nw
52- CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source ${GYP_ARGS}
65+ npm install --build-from-source ${GYP_ARGS}
5366 else
5467 npm install --build-from-source ${GYP_ARGS}
5568 fi
You can’t perform that action at this time.
0 commit comments