Skip to content

Commit

Permalink
Merge pull request #128 from bgilbert/winpthreads
Browse files Browse the repository at this point in the history
Drop winpthreads
  • Loading branch information
bgilbert authored Sep 23, 2023
2 parents d2bc29f + 8fe04d6 commit ca27809
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 80 deletions.
11 changes: 5 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@

set -eE

packages="winpthreads zlib libpng libjpeg_turbo libtiff libopenjp2 sqlite3 proxy_libintl libffi pcre2 glib gdk_pixbuf pixman cairo libxml2 uthash libdicom openslide openslide_java"
packages="zlib libpng libjpeg_turbo libtiff libopenjp2 sqlite3 proxy_libintl libffi pcre2 glib gdk_pixbuf pixman cairo libxml2 uthash libdicom openslide openslide_java"

# Package display names
winpthreads_name="winpthreads"
zlib_name="zlib"
libpng_name="libpng"
libjpeg_turbo_name="libjpeg-turbo"
Expand All @@ -45,7 +44,6 @@ openslide_name="OpenSlide"
openslide_java_name="OpenSlide Java"

# Locations of license files within the source tree
winpthreads_licenses="mingw-w64-libraries/winpthreads/COPYING"
zlib_licenses="README"
libpng_licenses="LICENSE"
libjpeg_turbo_licenses="LICENSE.md README.ijg simd/nasm/jsimdext.inc" # !!!
Expand All @@ -67,12 +65,10 @@ openslide_licenses="LICENSE.txt lgpl-2.1.txt COPYING.LESSER"
openslide_java_licenses="COPYING.LESSER"

# Build artifacts
winpthreads_artifacts="libwinpthread-1.dll"
openslide_artifacts="libopenslide-0.dll openslide-quickhash1sum.exe openslide-show-properties.exe openslide-write-png.exe slidetool.exe"
openslide_java_artifacts="openslide-jni.dll openslide.jar"

# Update-checking URLs
winpthreads_upurl="https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/"
zlib_upurl="https://zlib.net/"
libpng_upurl="http://www.libpng.org/pub/png/libpng.html"
libjpeg_turbo_upurl="https://sourceforge.net/projects/libjpeg-turbo/files/"
Expand All @@ -93,7 +89,6 @@ openslide_upurl="https://github.com/openslide/openslide/tags"
openslide_java_upurl="https://github.com/openslide/openslide-java/tags"

# Update-checking regexes
winpthreads_upregex="mingw-w64-v([0-9.]+)\.zip"
zlib_upregex="source code, version ([0-9.]+)"
libpng_upregex="libpng-([0-9.]+)-README.txt"
libjpeg_turbo_upregex="files/([0-9.]+)/"
Expand Down Expand Up @@ -449,6 +444,10 @@ probe() {
echo "Couldn't find suitable compiler."
exit 1
fi
if ! ${cc} -v 2>&1 | grep -q "Thread model: win32" ; then
echo "Compiler doesn't use win32 thread model."
exit 1
fi

# Ensure Wine is not run via binfmt_misc, since some packages
# attempt to run programs after building them.
Expand Down
6 changes: 0 additions & 6 deletions meson/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ add_global_arguments(
language: ['c', 'cpp']
)

subproject(
'winpthreads',
default_options : [
'default_library=shared',
],
)
subproject('zlib')
subproject('libpng')
subproject(
Expand Down
58 changes: 0 additions & 58 deletions meson/subprojects/packagefiles/winpthreads-meson.patch

This file was deleted.

10 changes: 0 additions & 10 deletions meson/subprojects/winpthreads.wrap

This file was deleted.

0 comments on commit ca27809

Please sign in to comment.