forked from enlightenment/efl
68 lines
2.5 KiB
Bash
Executable File
68 lines
2.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
CI_BUILD_TYPE="$1"
|
|
|
|
export MAKEFLAGS="-j5"
|
|
export EIO_MONITOR_POLL=1
|
|
|
|
DEFAULT_LINUX_COPTS="--prefix=/usr/ --with-tests=regular --disable-cxx-bindings"
|
|
|
|
WAYLAND_LINUX_COPTS=" --enable-wayland --enable-elput --enable-drm \
|
|
--enable-wayland-ivi-shell --enable-gl-drm --with-opengl=es --enable-egl"
|
|
|
|
MISC_LINUX_COPTS=" --enable-harfbuzz --enable-liblz4 --enable-image-loader-webp --enable-xinput22 \
|
|
--enable-multisense --enable-lua-old --enable-xpresent --enable-hyphen \
|
|
--enable-pixman --enable-pixman-font --enable-pixman-rect --enable-pixman-line \
|
|
--enable-pixman-poly --enable-pixman-image --enable-pixman-image-scale-sample \
|
|
--enable-image-loader-generic --enable-libuv --enable-tile-rotate --enable-vnc-server \
|
|
--enable-sdl --enable-fb --enable-v4l2 --enable-cserve --enable-always-build-examples \
|
|
--enable-ecore-wayland --enable-ecore-drm --enable-cancel-ok --with-crypto=gnutls \
|
|
--enable-debug --disable-gstreamer1 --enable-gstreamer"
|
|
|
|
MISC_DISABLED_LINUX_COPTS=" --disable-neon --disable-libeeze --disable-systemd --disable-magic-debug \
|
|
--disable-valgrind --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"
|
|
|
|
RELEASE_READY_LINUX_COPTS=" --with-profile=release"
|
|
|
|
if [ "$DISTRO" != "" ] ; then
|
|
# Normal build test of all targets
|
|
OPTS="$DEFAULT_LINUX_COPTS"
|
|
|
|
if [ "$1" = "wayland" ]; then
|
|
OPTS="$OPTS $WAYLAND_LINUX_COPTS"
|
|
fi
|
|
|
|
if [ "$1" = "misc" ]; then
|
|
OPTS="$OPTS $MISC_LINUX_COPTS"
|
|
fi
|
|
|
|
if [ "$1" = "misc-disabled" ]; then
|
|
OPTS="$OPTS $MISC_DISABLED_LINUX_COPTS"
|
|
fi
|
|
|
|
if [ "$1" = "release-ready" ]; then
|
|
OPTS="$OPTS $RELEASE_READY_LINUX_COPTS"
|
|
fi
|
|
docker run --env MAKEFLAGS="-j5" --env EIO_MONITOR_POLL=1 -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO ./autogen.sh $OPTS
|
|
else
|
|
OSX_COPTS="--disable-cxx-bindings"
|
|
|
|
# Prepare OSX env for build
|
|
mkdir -p ~/Library/LaunchAgents
|
|
ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents
|
|
launchctl load ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
|
|
export PATH="$(brew --prefix gettext)/bin:$PATH"
|
|
|
|
export CFLAGS="-I/usr/local/opt/openssl/include $CFLAGS"
|
|
export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
|
|
|
|
# Normal build test of all targets
|
|
./autogen.sh $OSX_COPTS
|
|
fi
|