# 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
# 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/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
vcpkg-cmake/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
pkgconf/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
vcpkg-pkgconfig-get-modules/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
vcpkg-tool-meson/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
vcpkg-cmake-get-vars/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46

# 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/c303dd024e2dc03a0665ddffbb12a1077933e649 ios:off osx:off
openssl-unix/c303dd024e2dc03a0665ddffbb12a1077933e649 all:off linux:on
openssl-windows/c303dd024e2dc03a0665ddffbb12a1077933e649 all:off windows:on

# 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/7f59e0013648f0dd80377330b770b414032233cb all:on ios:off

# freeimage and its dependencies (image preview/thumbnail generation)
freeimage/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46 osx:freeimage-bool-typedef-xcode-compiler.patch
libpng/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
libjpeg-turbo/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
tiff/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
openjpeg/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
libwebp/7375bb408f2278d2f1875c259beef93332697ba7 all:libwebp-no-freeglut-no-avx.patch
#upgrading libraw broke freeimage build
libraw/7375bb408f2278d2f1875c259beef93332697ba7 ios:libraw-ios.patch
jxrlib/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46 ios:jxrlib-ios-guiddef-fix.patch
openexr/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46 ios:openexr-ios.patch
imath/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
jasper/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46 all:jasper-no-freeglut.patch
liblzma/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46 ios:liblzma-ios.patch
#python3 not needed; it only provides python bindings to use openexr from python
libffi/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
opengl/94ce0dab56f4d8ba6bd631ba59ed682b02d45c46
#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
pdfium-freetype/2-12-1

# dependencies of pdfium
icu/979a5197b3389cfdf91d0ac5d98b6066ce73fd7a all:off osx:on linux:on
icu/cb91b416cb8f85f0a55853baad23fb18d306148a all:on osx:off linux:off
lcms/c303dd024e2dc03a0665ddffbb12a1077933e649
#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
