# Ports (components) are taken from various vcpkg commits (https://github.com/microsoft/vcpkg).
#
# NOTE: Modifying a commit here will not trigger a rebuild of that port, leading to build failures.
#       In order to test a different commit for ports, there are 2 possible approaches:
#       - start with a new SDK clone, apply changes here, and only then attempt to build, OR
#       - for every affected component, first clean it manually from vcpkg
#         (i.e. `vcpkg remove --triplet x64-windows-mega libraw`
#         vcpkg is usually at 3rdparty_sdk/vcpkg/vcpkg)

# vcpkg commits used as source for ports in this file -- to consider for future upgrades
# 7476f0d4e77d3333fbb249657df8251c28c4faae from 2023.09.20
# e0a9559a9b24af116388eae242d675bf9fde025c from 2022.10.25
# 94ce0dab56f4d8ba6bd631ba59ed682b02d45c46 from 2022.10.19 ('2022.10.19 Release' tag)
# cb91b416cb8f85f0a55853baad23fb18d306148a from 2022.04.01
# 92adeffbce95847e141411177248ed04ac49ea9b from 2021.12.22
# 979a5197b3389cfdf91d0ac5d98b6066ce73fd7a from 2021.11.10
# 7375bb408f2278d2f1875c259beef93332697ba7 from 2021.11.03
# c303dd024e2dc03a0665ddffbb12a1077933e649 from 2020.12.07

# Common dependencies
vcpkg-cmake-config/7476f0d4e77d3333fbb249657df8251c28c4faae
vcpkg-cmake/7476f0d4e77d3333fbb249657df8251c28c4faae
pkgconf/7476f0d4e77d3333fbb249657df8251c28c4faae
vcpkg-pkgconfig-get-modules/7476f0d4e77d3333fbb249657df8251c28c4faae
vcpkg-tool-meson/7476f0d4e77d3333fbb249657df8251c28c4faae
vcpkg-cmake-get-vars/7476f0d4e77d3333fbb249657df8251c28c4faae

# direct core dependencies of the SDK
c-ares/c303dd024e2dc03a0665ddffbb12a1077933e649 all:on ios:off
cryptopp/c303dd024e2dc03a0665ddffbb12a1077933e649
curl/7375bb408f2278d2f1875c259beef93332697ba7 all:on ios:off
curl[core,sectransp]/7375bb408f2278d2f1875c259beef93332697ba7 all:off ios:curl-for-ios.patch
libsodium/92adeffbce95847e141411177248ed04ac49ea9b all:on ios:libsodium-ios.patch
openssl/6172c4b5a08aecf5755f753c6338fa74103d39cf ios:off osx:off

# needed by external projects which still rely on SDK to fetch and build it; SDK no longer uses PCRE
# this is the minimum version after PCRE's ftp server switched
pcre/d6bd10b9af6f6197711222a0ac827e52e0247e30 all:off linux:on

readline/8.0 all:off osx:on
sqlite3/c303dd024e2dc03a0665ddffbb12a1077933e649
zlib/e0a9559a9b24af116388eae242d675bf9fde025c

# needed by the SDK if enabling serving/streaming (outgoing) files via http/s or include a an ftp server
libuv/c303dd024e2dc03a0665ddffbb12a1077933e649 ios:off

# mediainfo, customized with constrained functionality (determine media properties such as track length, codec, etc)
libmediainfo/19.09
libzen/0.4.37

# ffmpeg (video preview/thumbnail generation)
ffmpeg/c67a3059bbdb19799d402085e7323f71e7d68656 all:on ios:off osx:ffmpeg-osx-linker.patch

# freeimage and its dependencies (image preview/thumbnail generation)
freeimage/7476f0d4e77d3333fbb249657df8251c28c4faae osx:freeimage-bool-typedef-xcode-compiler.patch
libpng/7476f0d4e77d3333fbb249657df8251c28c4faae
libjpeg-turbo/7476f0d4e77d3333fbb249657df8251c28c4faae
tiff/7476f0d4e77d3333fbb249657df8251c28c4faae
openjpeg/7476f0d4e77d3333fbb249657df8251c28c4faae
libwebp/7476f0d4e77d3333fbb249657df8251c28c4faae
libraw/7476f0d4e77d3333fbb249657df8251c28c4faae
jxrlib/7476f0d4e77d3333fbb249657df8251c28c4faae
openexr/7476f0d4e77d3333fbb249657df8251c28c4faae
imath/7476f0d4e77d3333fbb249657df8251c28c4faae
jasper/7476f0d4e77d3333fbb249657df8251c28c4faae all:jasper-no-freeglut.patch
liblzma/7476f0d4e77d3333fbb249657df8251c28c4faae
egl-registry/7476f0d4e77d3333fbb249657df8251c28c4faae
opengl-registry/7476f0d4e77d3333fbb249657df8251c28c4faae
opengl/7476f0d4e77d3333fbb249657df8251c28c4faae
#freeglut (cross platform window manager) not needed; problematic on some platforms, pulling in many, many dependencies

# pdfium libraries, specific version for build stability  (preview/thumbnail generation for pdfs)
# no v8 (javascript execution) etc
pdfium/5247
freetype[core,bzip2,png,zlib]/6bf5ffffe875f2f824ca68eade4149587357880e

# dependencies of pdfium
icu/979a5197b3389cfdf91d0ac5d98b6066ce73fd7a all:off osx:on linux:on
icu/cb91b416cb8f85f0a55853baad23fb18d306148a all:on osx:off linux:off
lcms/7476f0d4e77d3333fbb249657df8251c28c4faae
#libjpeg-turbo already added above for freeimage
#openjpeg already added above for freeimage
bzip2/c303dd024e2dc03a0665ddffbb12a1077933e649
#libpng already added above for freeimage

#for megachat, not needed by sdk itself
#libwebsockets/2.4.2

## qt5 and its dependencies windows only - posibly for mega chat
## linux depends on fontconfig and thus freetype and conflicts with pdfium-freetype
# libpq/6185aa76504a5025f36754324abf307cc776f3da
# pcre2/6185aa76504a5025f36754324abf307cc776f3da
# egl-registry/6185aa76504a5025f36754324abf307cc776f3da
# double-conversion/6185aa76504a5025f36754324abf307cc776f3da
# freeglut/6185aa76504a5025f36754324abf307cc776f3da
# qt5-base/6185aa76504a5025f36754324abf307cc776f3da all:qt5-base.patch
# qt5-declarative/6185aa76504a5025f36754324abf307cc776f3da
# qt5-svg/6185aa76504a5025f36754324abf307cc776f3da
# qt5-imageformats/6185aa76504a5025f36754324abf307cc776f3da
# qt5-activeqt/6185aa76504a5025f36754324abf307cc776f3da all:off windows:on
# qt5-tools/6185aa76504a5025f36754324abf307cc776f3da
# atlmfc/6185aa76504a5025f36754324abf307cc776f3da all:off windows:on
# qt5-multimedia/6185aa76504a5025f36754324abf307cc776f3da all:off windows:on
# qt5-winextras/6185aa76504a5025f36754324abf307cc776f3da all:off windows:on

# tests and tools
asio/c303dd024e2dc03a0665ddffbb12a1077933e649
gtest/c303dd024e2dc03a0665ddffbb12a1077933e649 all:gtest-warnings-are-not-errors.patch

# previously listed - possibly for mega chat,sync,cmd.  Re-add with comment if the SDK alone needs them
#x264/c303dd024e2dc03a0665ddffbb12a1077933e649
#giflib/c303dd024e2dc03a0665ddffbb12a1077933e649
#sdl1/c303dd024e2dc03a0665ddffbb12a1077933e649
#mbedtls/c303dd024e2dc03a0665ddffbb12a1077933e649
#nghttp2/c303dd024e2dc03a0665ddffbb12a1077933e649
#opencl/c303dd024e2dc03a0665ddffbb12a1077933e649
#libvpx/c303dd024e2dc03a0665ddffbb12a1077933e649
#libevent/c303dd024e2dc03a0665ddffbb12a1077933e649
