mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
Merge pull request #44772 from qgis/manisandro-patch-1
Assorted MinGW build work
This commit is contained in:
commit
cf795616c8
1
.github/workflows/mingw64.yml
vendored
1
.github/workflows/mingw64.yml
vendored
@ -69,6 +69,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p ${GITHUB_WORKSPACE}/.ccache
|
mkdir -p ${GITHUB_WORKSPACE}/.ccache
|
||||||
docker run \
|
docker run \
|
||||||
|
--security-opt seccomp=unconfined \
|
||||||
--env CCACHE_DIR=/QGIS/.ccache \
|
--env CCACHE_DIR=/QGIS/.ccache \
|
||||||
-w /QGIS \
|
-w /QGIS \
|
||||||
-v ${GITHUB_WORKSPACE}:/QGIS \
|
-v ${GITHUB_WORKSPACE}:/QGIS \
|
||||||
|
@ -170,14 +170,15 @@ function linkDep {
|
|||||||
local name="$(basename $1)"
|
local name="$(basename $1)"
|
||||||
test -e "$destdir/$name" && return 0
|
test -e "$destdir/$name" && return 0
|
||||||
test -e "$destdir/qgisplugins/$name" && return 0
|
test -e "$destdir/qgisplugins/$name" && return 0
|
||||||
[[ "$1" == *api-ms-win* ]] && return 0
|
[[ "$1" == *api-ms-win* ]] || [[ "$1" == *MSVCP*.dll ]] || [[ "$1" == *VCRUNTIME*.dll ]] && return 0
|
||||||
echo "${indent}${1}"
|
echo "${indent}${1}"
|
||||||
[ ! -e "$MINGWROOT/$1" ] && echo "Error: missing $MINGWROOT/$1" && return 1
|
[ ! -e "$MINGWROOT/$1" ] && echo "Error: missing $MINGWROOT/$1" && return 1
|
||||||
mkdir -p "$destdir" || return 1
|
mkdir -p "$destdir" || return 1
|
||||||
lnk "$MINGWROOT/$1" "$destdir/$name" || return 1
|
lnk "$MINGWROOT/$1" "$destdir/$name" || return 1
|
||||||
echo "${2:-bin}/$name: $(rpm -qf "$MINGWROOT/$1")" >> $installprefix/origins.txt
|
echo "${2:-bin}/$name: $(rpm -qf "$MINGWROOT/$1")" >> $installprefix/origins.txt
|
||||||
autoLinkDeps "$destdir/$name" "${indent} " || return 1
|
autoLinkDeps "$destdir/$name" "${indent} " || return 1
|
||||||
([ -e "$MINGWROOT/$1.debug" ] && lnk "$MINGWROOT/$1.debug" "$destdir/$name.debug") || ( ($DEBUG && echo "Warning: missing $name.debug") || :)
|
[ -e "/usr/lib/debug${MINGWROOT}/$1.debug" ] && lnk "/usr/lib/debug${MINGWROOT}/$1.debug" "$destdir/$name.debug" || :
|
||||||
|
[ -e "$MINGWROOT/$1.debug" ] && lnk "$MINGWROOT/$1.debug" "$destdir/$name.debug" || :
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,6 +206,10 @@ done
|
|||||||
IFS=$SAVEIFS
|
IFS=$SAVEIFS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Gdal plugins
|
||||||
|
mkdir -p "$installprefix/lib/"
|
||||||
|
cp -a "$MINGWROOT/lib/gdalplugins" "$installprefix/lib/gdalplugins"
|
||||||
|
|
||||||
echo "Linking dependencies..."
|
echo "Linking dependencies..."
|
||||||
binaries=$(find "$installprefix" -name '*.exe' -or -name '*.dll' -or -name '*.pyd')
|
binaries=$(find "$installprefix" -name '*.exe' -or -name '*.dll' -or -name '*.pyd')
|
||||||
for binary in $binaries; do
|
for binary in $binaries; do
|
||||||
|
@ -7,8 +7,6 @@ MAINTAINER Sandro Mani <manisandro@gmail.com>
|
|||||||
RUN \
|
RUN \
|
||||||
echo all > /etc/rpm/macros.image-language-conf && \
|
echo all > /etc/rpm/macros.image-language-conf && \
|
||||||
rm -f /etc/yum.repos.d/*modular* && \
|
rm -f /etc/yum.repos.d/*modular* && \
|
||||||
dnf install -y --nogpgcheck 'dnf-command(config-manager)' && \
|
|
||||||
dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/smani/mingw-extras/repo/fedora-rawhide/smani-mingw-extras-fedora-rawhide.repo && \
|
|
||||||
dnf install -y --nogpgcheck \
|
dnf install -y --nogpgcheck \
|
||||||
mingw64-dlfcn \
|
mingw64-dlfcn \
|
||||||
mingw64-exiv2 \
|
mingw64-exiv2 \
|
||||||
@ -16,14 +14,11 @@ dnf install -y --nogpgcheck \
|
|||||||
mingw64-gcc-c++ \
|
mingw64-gcc-c++ \
|
||||||
mingw64-gdal \
|
mingw64-gdal \
|
||||||
mingw64-gdb \
|
mingw64-gdb \
|
||||||
mingw64-GdbCrashHandler \
|
|
||||||
mingw64-GeographicLib \
|
mingw64-GeographicLib \
|
||||||
mingw64-geos \
|
mingw64-geos \
|
||||||
mingw64-gsl \
|
mingw64-gsl \
|
||||||
mingw64-libgomp \
|
mingw64-libgomp \
|
||||||
mingw64-libzip \
|
mingw64-libzip \
|
||||||
mingw64-osgearth-qt5 \
|
|
||||||
mingw64-pacparser \
|
|
||||||
mingw64-postgresql \
|
mingw64-postgresql \
|
||||||
mingw64-proj \
|
mingw64-proj \
|
||||||
mingw64-python3 \
|
mingw64-python3 \
|
||||||
@ -93,8 +88,5 @@ dnf install -y --nogpgcheck \
|
|||||||
xorg-x11-server-Xvfb \
|
xorg-x11-server-Xvfb \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
RUN wget https://pkg.sourcepole.ch/kadas/mingw64-librsvg2-2.40.11-1.fc28.noarch.rpm
|
|
||||||
RUN dnf install -y mingw64-librsvg2-2.40.11-1.fc28.noarch.rpm
|
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
VOLUME ["/workspace"]
|
VOLUME ["/workspace"]
|
||||||
|
@ -114,7 +114,7 @@ void QgsAuthMethodRegistry::init()
|
|||||||
typedef QgsAuthMethodMetadata *factory_function( );
|
typedef QgsAuthMethodMetadata *factory_function( );
|
||||||
|
|
||||||
#if defined(Q_OS_WIN) || defined(__CYGWIN__)
|
#if defined(Q_OS_WIN) || defined(__CYGWIN__)
|
||||||
mLibraryDirectory.setNameFilters( QStringList( "authmethod_*.dll" ) );
|
mLibraryDirectory.setNameFilters( QStringList( "*authmethod_*.dll" ) );
|
||||||
#else
|
#else
|
||||||
mLibraryDirectory.setNameFilters( QStringList( QStringLiteral( "*authmethod_*.so" ) ) );
|
mLibraryDirectory.setNameFilters( QStringList( QStringLiteral( "*authmethod_*.so" ) ) );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user