2017-09-28 06:26:55 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-08 01:45:24 -08:00
|
|
|
set -e
|
|
|
|
|
2017-09-28 06:26:55 -07:00
|
|
|
PARALLEL_JOBS=10
|
|
|
|
|
2018-01-05 07:24:43 -08:00
|
|
|
CI_BUILD_TYPE=$1
|
|
|
|
|
|
|
|
DEFAULT_COPTS="--with-tests=regular"
|
|
|
|
WAYLAND_COPTS="--with-tests=regular --enable-wayland --enable-elput --enable-drm"
|
|
|
|
MISC_COPTS="--enable-harfbuzz --enable-liblz4 --enable-image-loader-webp --enable-xinput22 --enable-multisense --enable-lua-old --enable-xpresent --enable-hyphen"
|
|
|
|
|
|
|
|
# --enable-libvlc --enable-vnc-server --enable-g-main-loop --enable-libuv --enable-fb --enable-eglfs --enable-sdl --enable-gl-drm --enable-egl --enable-pix man --enable-tile-rotate --enable-ecore-buffer --enable-image-loader-generic --enable-image-loader-jp2k --enable-gesture --enable-v4l2 --enable-xine
|
|
|
|
# --with-profile=PROFILE --with-crypto=CRYPTO
|
|
|
|
|
2018-04-26 09:05:03 -07:00
|
|
|
MISC_DISABLED_COPTS="--disable-neon --disable-libeeze --disable-systemd --disable-magic-debug \
|
|
|
|
--disable-valgrind --disable-cxx-bindings --disable-gstreamer1 \
|
|
|
|
--disable-fontconfig --disable-fribidi --disable-poppler --disable-spectre --disable-libraw \
|
|
|
|
--disable-librsvg --disable-xcf --disable-libmount --disable-tslib --disable-audio \
|
|
|
|
--disable-pulseaudio --disable-avahi --disable-xinput2 --disable-xim --disable-scim \
|
|
|
|
--disable-ibus --disable-physics --disable-quick-launch --disable-elua"
|
|
|
|
|
2018-01-05 07:24:43 -08:00
|
|
|
if [ "$CI_BUILD_TYPE" = "" ]; then
|
|
|
|
# Normal build test of all targets
|
|
|
|
./autogen.sh $DEFAULT_COPTS
|
|
|
|
make -j $PARALLEL_JOBS
|
|
|
|
make -j $PARALLEL_JOBS examples
|
|
|
|
make -j $PARALLEL_JOBS benchmark
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$CI_BUILD_TYPE" = "wayland" ]; then
|
|
|
|
./autogen.sh $WAYLAND_COPTS
|
|
|
|
make -j $PARALLEL_JOBS
|
|
|
|
make -j $PARALLEL_JOBS examples
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$CI_BUILD_TYPE" = "misc" ]; then
|
|
|
|
./autogen.sh $MISC_COPTS
|
|
|
|
make -j $PARALLEL_JOBS
|
|
|
|
make -j $PARALLEL_JOBS examples
|
|
|
|
fi
|
|
|
|
|
2018-04-26 09:05:03 -07:00
|
|
|
if [ "$CI_BUILD_TYPE" = "misc-disabled" ]; then
|
|
|
|
./autogen.sh $MISC_DISABLED_COPTS
|
|
|
|
make -j $PARALLEL_JOBS
|
|
|
|
make -j $PARALLEL_JOBS examples
|
|
|
|
fi
|