Last active
December 16, 2015 21:29
-
-
Save nsuke/5500367 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zeromq | |
sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/g' configure | |
CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ CXXFLAGS="-static-libstdc++" CPPFLAGS="-static-libgcc -march=corei7 -pipe" ./configure --build=x86_64-unknown-linux-gnu --host=i686-w64-mingw32 --prefix=$HOME/usr/i686-w64-mingw32 | |
# configure gvim | |
./configure --enable-fail-if-missing --with-features=huge \ | |
--enable-rubyinterp --enable-pythoninterp --enable-perlinterp \ | |
--with-python-config-dir=/usr/lib/python2.7 \ | |
--enable-xim --enable-multibyte --enable-fontset \ | |
--enable-gui=gtk2 --enable-cscope | |
# configure qvim | |
./configure --enable-fail-if-missing --with-features=huge \ | |
--enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-python3interp \ | |
--with-python-config-dir=/usr/lib/python2.7 \ | |
--enable-xim --enable-multibyte \ | |
--with-vim-name=qvim --enable-gui=qt --enable-cscope | |
# toggle firefox visibility with firetray and activate the window (for KDE, not needed on Gnome) | |
firefox -firetrayShowHide && sleep 0.1 && wmctrl -i -a $(wmctrl -l -p | awk '/^[^ ]+ +[^ ]+ +'`pgrep firefox`'/ {print $1}') | |
# start exaile or toggle-visible if already start | |
[ pgrep exaile ] && exaile --toggle-visible || exaile | |
# configure ffmpeg | |
./configure --enable-gpl --enable-nonfree --enable-version3 \ | |
--enable-shared --enable-pic \ | |
--cpu=native \ | |
--enable-fontconfig --enable-gnutls --enable-x11grab --enable-openssl \ | |
--enable-libx264 --enable-libvpx --enable-libv4l2 --enable-libtheora | |
# configure gcc | |
./configure --enable-lto --enable-ld --enable-gold --with-cpu=native --with-arch=native --with-tune=native --silent | |
make -j8 profiledbootstrap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
$BRANCH=dev | |
$SKIP_FLAGS="-no-cups -no-sql-sqlite -no-qml-debug -nomake examples -skip qtactiveqt -skip qtenginio -skip qtlocation -skip qtmultimedia -skip qtserialport -skip qtquick1 -skip qtscript -skip qtsensors -skip qtwebkit -skip qtxmlpatterns" | |
set -e | |
function cleanup { | |
git clean -dfx || true | |
git checkout -f || true | |
git submodule foreach --recursive 'git clean -dfx' || true | |
git submodule foreach --recursive "git checkout $BRANCH" || true | |
git submodule foreach --recursive 'git pull --rebase' || true | |
#git submodule foreach --recursive 'git checkout -f' | |
} | |
function build { | |
cleanup | |
./configure $SKIP_FLAGS -opensource -confirm-license -no-pch -platform linux-clang $* | |
make -j8 | |
make install | |
} | |
build -prefix $HOME/usr -release | |
build -prefix $HOME/usr/debug -debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment