2019-08-09 22:18:43 +08:00
|
|
|
image: salamandar/archlinux-gimp:latest
|
2019-08-21 19:54:38 +08:00
|
|
|
|
2019-07-29 07:11:44 +08:00
|
|
|
stages:
|
2019-10-02 03:36:19 +08:00
|
|
|
- dependencies
|
2019-07-29 07:11:44 +08:00
|
|
|
- gimp
|
|
|
|
|
|
|
|
variables:
|
2019-10-02 02:36:09 +08:00
|
|
|
GIT_DEPTH: "1"
|
2019-07-29 07:11:44 +08:00
|
|
|
INSTALL_DIR: "_install"
|
2019-08-21 19:54:38 +08:00
|
|
|
INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
|
|
|
|
PACMAN_CACHE: "${CI_PROJECT_DIR}/_pacman_cache"
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-10-02 03:36:19 +08:00
|
|
|
deps-git:
|
|
|
|
stage: dependencies
|
|
|
|
cache:
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-10-02 03:36:19 +08:00
|
|
|
- _pacman_cache
|
2019-07-29 07:11:44 +08:00
|
|
|
artifacts:
|
2019-10-02 00:36:07 +08:00
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-08-21 19:54:38 +08:00
|
|
|
- "${INSTALL_DIR}"
|
2019-10-02 03:36:19 +08:00
|
|
|
- _babl/_build
|
2019-10-02 00:36:07 +08:00
|
|
|
- _gegl/_build
|
2019-07-29 07:11:44 +08:00
|
|
|
before_script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
|
|
|
- pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
|
2019-07-29 07:11:44 +08:00
|
|
|
git
|
|
|
|
base-devel
|
|
|
|
meson
|
|
|
|
lcms2
|
|
|
|
base-devel
|
|
|
|
ffmpeg
|
2019-08-08 20:15:36 +08:00
|
|
|
gobject-introspection
|
2019-07-29 07:11:44 +08:00
|
|
|
graphviz
|
|
|
|
jasper
|
|
|
|
json-glib
|
|
|
|
lcms2
|
|
|
|
libgexiv2
|
|
|
|
libraw
|
|
|
|
librsvg
|
|
|
|
libspiro
|
|
|
|
libtiff
|
|
|
|
luajit
|
|
|
|
openexr
|
|
|
|
python
|
|
|
|
sdl2
|
|
|
|
suitesparse
|
2019-08-21 19:54:38 +08:00
|
|
|
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
|
2019-10-02 03:36:19 +08:00
|
|
|
- git clone --depth="${GIT_DEPTH}" https://gitlab.gnome.org/GNOME/babl.git _babl
|
2019-07-29 07:11:44 +08:00
|
|
|
script:
|
2019-10-02 03:36:19 +08:00
|
|
|
- cd _babl
|
|
|
|
- meson -Dprefix="${INSTALL_PREFIX}" _build
|
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build install
|
|
|
|
- cd ../_gegl
|
2019-08-21 19:54:38 +08:00
|
|
|
- meson --prefix="${INSTALL_PREFIX}" _build
|
2019-08-17 03:30:57 +08:00
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build install
|
2019-07-29 07:11:44 +08:00
|
|
|
|
|
|
|
.gimp-base:
|
|
|
|
stage: gimp
|
2019-10-02 03:36:19 +08:00
|
|
|
dependencies:
|
|
|
|
- deps-git
|
2019-07-29 07:11:44 +08:00
|
|
|
artifacts:
|
2019-10-02 00:36:07 +08:00
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
name: "app-build-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-10-02 00:36:07 +08:00
|
|
|
- _build
|
|
|
|
#- "${INSTALL_DIR}"
|
2019-07-29 07:11:44 +08:00
|
|
|
before_script:
|
2019-08-22 22:43:35 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
|
2019-08-21 19:54:38 +08:00
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
|
|
|
- pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
|
2019-07-29 07:11:44 +08:00
|
|
|
git
|
|
|
|
base-devel
|
|
|
|
appstream-glib
|
|
|
|
at-spi2-core
|
|
|
|
at-spi2-atk
|
|
|
|
dbus-glib
|
|
|
|
desktop-file-utils
|
|
|
|
ffmpeg
|
|
|
|
glib-networking
|
|
|
|
gobject-introspection
|
|
|
|
gtk3
|
|
|
|
hicolor-icon-theme
|
|
|
|
jasper
|
|
|
|
lcms2
|
|
|
|
libexif
|
|
|
|
libgudev
|
|
|
|
libheif
|
|
|
|
libmng
|
|
|
|
libmypaint
|
|
|
|
librsvg
|
|
|
|
libwebp
|
|
|
|
libwmf
|
|
|
|
libxmu
|
|
|
|
libxpm
|
2019-08-25 03:16:46 +08:00
|
|
|
mypaint-brushes1
|
2019-07-29 07:11:44 +08:00
|
|
|
openexr
|
|
|
|
poppler-data
|
|
|
|
pygtk
|
|
|
|
alsa-lib
|
|
|
|
ghostscript
|
|
|
|
poppler-glib
|
|
|
|
gtk-doc
|
|
|
|
intltool
|
|
|
|
iso-codes
|
|
|
|
xorg-server-xvfb
|
|
|
|
|
2019-10-02 03:36:19 +08:00
|
|
|
gimp-autotools:
|
2019-07-29 07:11:44 +08:00
|
|
|
extends: .gimp-base
|
|
|
|
script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- mkdir _build
|
2019-07-29 07:11:44 +08:00
|
|
|
- cd _build
|
2019-09-11 23:09:05 +08:00
|
|
|
- ../autogen.sh
|
2019-08-21 19:54:38 +08:00
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
--enable-debug
|
|
|
|
--with-python=force
|
|
|
|
--with-javascript=force
|
|
|
|
--with-lua=force
|
|
|
|
- make -j "$(nproc)"
|
|
|
|
# - make check
|
2019-11-25 03:24:59 +08:00
|
|
|
needs: ["deps-git"]
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2019-10-02 03:36:19 +08:00
|
|
|
gimp-meson:
|
2019-08-09 22:18:43 +08:00
|
|
|
extends: .gimp-base
|
|
|
|
script:
|
|
|
|
- meson _build
|
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
-Dpython=always
|
|
|
|
-Djavascript=always
|
|
|
|
-Dlua=always
|
|
|
|
- ninja -C _build
|
|
|
|
# - ninja test
|
2019-11-25 03:24:59 +08:00
|
|
|
needs: ["deps-git"]
|
2019-08-09 22:18:43 +08:00
|
|
|
|
2019-10-02 03:36:19 +08:00
|
|
|
deps-x86_64-w64-mingw32:
|
2019-11-24 22:55:51 +08:00
|
|
|
image: fedora:31
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: dependencies
|
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
|
|
|
- dnf_cache
|
2019-09-25 20:27:09 +08:00
|
|
|
before_script:
|
|
|
|
- dnf install --assumeyes --setopt=cachedir=`pwd`/dnf_cache --verbose
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
meson
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
git
|
|
|
|
gcc
|
|
|
|
gcc-c++
|
|
|
|
gperf
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
libxslt
|
|
|
|
make
|
|
|
|
python2
|
|
|
|
mingw64-gcc
|
|
|
|
mingw64-gcc-c++
|
|
|
|
mingw64-binutils
|
|
|
|
cpio rpm
|
|
|
|
python3-docutils
|
|
|
|
python3-pip
|
|
|
|
python3-setuptools
|
|
|
|
shared-mime-info
|
|
|
|
which
|
|
|
|
libmount-devel
|
|
|
|
gdk-pixbuf2
|
|
|
|
gdk-pixbuf2-devel
|
|
|
|
glib2-devel
|
|
|
|
#- pip3 install wheel
|
|
|
|
#- pip3 install crossroad
|
|
|
|
- git clone git://git.tuxfamily.org/gitroot/crossroad/crossroad.git
|
|
|
|
- cd crossroad
|
2019-10-02 03:36:19 +08:00
|
|
|
- ./setup.py install --prefix=`pwd`/../.local
|
2019-09-25 20:27:09 +08:00
|
|
|
- cd ..
|
2019-10-01 03:00:25 +08:00
|
|
|
- gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
|
2019-10-02 03:36:19 +08:00
|
|
|
script:
|
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
2019-10-25 04:20:20 +08:00
|
|
|
- crossroad w64 gimp --run="build/windows/crossbuild-gitlab-ci/build-deps.sh"
|
2019-10-02 03:36:19 +08:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- .local/
|
|
|
|
- _deps/
|
2019-09-25 20:27:09 +08:00
|
|
|
|
2019-10-02 03:36:19 +08:00
|
|
|
gimp-x86_64-w64-mingw32-meson:
|
2019-11-24 22:55:51 +08:00
|
|
|
image: fedora:31
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: gimp
|
|
|
|
dependencies:
|
|
|
|
- deps-x86_64-w64-mingw32
|
2019-10-01 19:44:42 +08:00
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
2019-10-02 03:36:19 +08:00
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
2019-10-01 19:44:42 +08:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
|
|
|
- dnf_cache
|
2019-10-02 03:36:19 +08:00
|
|
|
before_script:
|
|
|
|
- dnf install --assumeyes --setopt=cachedir=`pwd`/dnf_cache --verbose
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
meson
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
gcc
|
|
|
|
gcc-c++
|
|
|
|
gperf
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
libxslt
|
|
|
|
make
|
2019-11-24 22:55:51 +08:00
|
|
|
python3
|
2019-10-02 03:36:19 +08:00
|
|
|
mingw64-gcc
|
|
|
|
mingw64-gcc-c++
|
|
|
|
mingw64-binutils
|
|
|
|
cpio rpm
|
|
|
|
shared-mime-info
|
|
|
|
which
|
|
|
|
libmount-devel
|
|
|
|
gdk-pixbuf2
|
|
|
|
gdk-pixbuf2-devel
|
|
|
|
glib2-devel
|
2019-09-25 20:27:09 +08:00
|
|
|
script:
|
2019-10-02 03:36:19 +08:00
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
|
|
|
- mkdir _build && cd _build
|
|
|
|
- echo 'crossroad meson ..
|
|
|
|
-Dwmf=disabled -Dgtk-doc=false
|
|
|
|
-Dpython=always -Dlua=always
|
2019-10-26 19:00:46 +08:00
|
|
|
-Djavascript=always && ninja install &&
|
2019-10-25 04:47:56 +08:00
|
|
|
cp ../build/windows/crossbuild-gitlab-ci/gimp-wrapper.cmd $CROSSROAD_PREFIX/bin/ &&
|
|
|
|
cp -fr $CROSSROAD_PREFIX/ ../gimp-prefix/
|
2019-10-25 04:20:20 +08:00
|
|
|
' |
|
2019-10-02 03:36:19 +08:00
|
|
|
crossroad w64 gimp --run="-"
|
2019-11-25 03:24:59 +08:00
|
|
|
needs: ["deps-x86_64-w64-mingw32"]
|
2019-09-25 20:27:09 +08:00
|
|
|
artifacts:
|
2019-10-02 03:36:19 +08:00
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2019-10-02 00:36:07 +08:00
|
|
|
when: always
|
2019-09-25 20:27:09 +08:00
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- _build/
|
2019-10-25 04:47:56 +08:00
|
|
|
- gimp-prefix/
|