diff --git a/docs/maintainers/vcpkg_common_definitions.md b/docs/maintainers/vcpkg_common_definitions.md index b96dd3cbc5..a8111b1227 100644 --- a/docs/maintainers/vcpkg_common_definitions.md +++ b/docs/maintainers/vcpkg_common_definitions.md @@ -5,7 +5,7 @@ The latest version of this document lives in the [vcpkg repo](https://github.com This file defines the following variables which are commonly needed or used in portfiles: ```cmake -VCPKG_TARGET_IS_ with being one of the following: WINDOWS, UWP, MINGW, LINUX, OSX, ANDROID, FREEBSD, OPENBSD. only defined if +VCPKG_TARGET_IS_ with being one of the following: WINDOWS, UWP, MINGW, LINUX, OSX, ANDROID, FREEBSD, OPENBSD, EMSCRIPTEN. only defined if VCPKG_HOST_IS_ with being one of the following: WINDOWS, LINUX, OSX, FREEBSD, OPENBSD. only defined if VCPKG_HOST_PATH_SEPARATOR Host specific path separator (USAGE: "${VCPKG_HOST_PATH_SEPARATOR}"; only use and pass variables with VCPKG_HOST_PATH_SEPARATOR within "") VCPKG_HOST_EXECUTABLE_SUFFIX executable suffix of the host diff --git a/ports/libsodium/portfile.cmake b/ports/libsodium/portfile.cmake index 6fd98241f5..934cf8cf79 100644 --- a/ports/libsodium/portfile.cmake +++ b/ports/libsodium/portfile.cmake @@ -8,10 +8,15 @@ vcpkg_from_github( file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") +if(VCPKG_TARGET_IS_EMSCRIPTEN) + set(ADDITIONAL_OPTIONS "-DENABLE_SSP=OFF") +endif() + vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DBUILD_TESTING=OFF + ${ADDITIONAL_OPTIONS} ) vcpkg_cmake_install() diff --git a/ports/libsodium/vcpkg.json b/ports/libsodium/vcpkg.json index d2b01af14e..b4f0e9dea5 100644 --- a/ports/libsodium/vcpkg.json +++ b/ports/libsodium/vcpkg.json @@ -1,7 +1,7 @@ { "name": "libsodium", "version": "1.0.18", - "port-version": 7, + "port-version": 8, "description": "A modern and easy-to-use crypto library", "homepage": "https://github.com/jedisct1/libsodium", "license": "ISC", diff --git a/ports/opus/portfile.cmake b/ports/opus/portfile.cmake index a9782d8836..02f784ed31 100644 --- a/ports/opus/portfile.cmake +++ b/ports/opus/portfile.cmake @@ -16,6 +16,8 @@ if(VCPKG_TARGET_IS_MINGW) set(STACK_PROTECTOR OFF) string(APPEND VCPKG_C_FLAGS "-D_FORTIFY_SOURCE=0") string(APPEND VCPKG_CXX_FLAGS "-D_FORTIFY_SOURCE=0") +elseif(VCPKG_TARGET_IS_EMSCRIPTEN) + set(STACK_PROTECTOR OFF) else() set(STACK_PROTECTOR ON) endif() diff --git a/ports/opus/vcpkg.json b/ports/opus/vcpkg.json index e56ce6f802..8f4eee903f 100644 --- a/ports/opus/vcpkg.json +++ b/ports/opus/vcpkg.json @@ -1,7 +1,7 @@ { "name": "opus", "version": "1.3.1", - "port-version": 7, + "port-version": 8, "description": "Totally open, royalty-free, highly versatile audio codec", "homepage": "https://github.com/xiph/opus", "license": "BSD-3-Clause", diff --git a/scripts/cmake/vcpkg_common_definitions.cmake b/scripts/cmake/vcpkg_common_definitions.cmake index 599cc088a1..58730a8978 100644 --- a/scripts/cmake/vcpkg_common_definitions.cmake +++ b/scripts/cmake/vcpkg_common_definitions.cmake @@ -20,6 +20,8 @@ elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "MinGW") set(VCPKG_TARGET_IS_WINDOWS ON) set(VCPKG_TARGET_IS_MINGW ON) +elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Emscripten") + set(VCPKG_TARGET_IS_EMSCRIPTEN ON) endif() #Helper variables to identify the host system name diff --git a/versions/baseline.json b/versions/baseline.json index 46079e67fc..dcf7ee0d98 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4126,7 +4126,7 @@ }, "libsodium": { "baseline": "1.0.18", - "port-version": 7 + "port-version": 8 }, "libsoundio": { "baseline": "2.0.0", @@ -5414,7 +5414,7 @@ }, "opus": { "baseline": "1.3.1", - "port-version": 7 + "port-version": 8 }, "opusfile": { "baseline": "0.12", diff --git a/versions/l-/libsodium.json b/versions/l-/libsodium.json index b193c35e27..9cf0250a35 100644 --- a/versions/l-/libsodium.json +++ b/versions/l-/libsodium.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "72748d8d6030aac034e5b74229898016f833b33a", + "version": "1.0.18", + "port-version": 8 + }, { "git-tree": "9ffdf9b217021918c33311af9faa9b4a3086d004", "version": "1.0.18", diff --git a/versions/o-/opus.json b/versions/o-/opus.json index e9dfc1e319..bf880e70ac 100644 --- a/versions/o-/opus.json +++ b/versions/o-/opus.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "f69aedcd28796dfac85514ee0934e7f91ab05e06", + "version": "1.3.1", + "port-version": 8 + }, { "git-tree": "ad2b9149564516603dab6b996af3d4bc7ba29017", "version": "1.3.1",