mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[cmake/getdns/jasper/mesa/sentry-native] Fix error C2065 and C2079 (#22630)
* [cmake/getdns/jasper/mesa/sentry-native] Fix error C2065 and C2079 * Add windows check * Add MINGW check * update json Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
parent
3afbc7b286
commit
48b4cb1cce
@ -16,6 +16,11 @@ vcpkg_extract_source_archive(
|
||||
PATCHES disable-install-COPYING-in-config-step.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
set(VCPKG_CXX_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_CXX_FLAGS}")
|
||||
set(VCPKG_C_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_C_FLAGS}")
|
||||
endif()
|
||||
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "getdns",
|
||||
"version": "1.7.0",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "GetDNS is a modern asynchronous DNS API",
|
||||
"homepage": "https://getdnsapi.net/",
|
||||
"supports": "!uwp",
|
||||
|
@ -6,6 +6,11 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
set(VCPKG_CXX_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_CXX_FLAGS}")
|
||||
set(VCPKG_C_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_C_FLAGS}")
|
||||
endif()
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" JAS_ENABLE_SHARED)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "jasper",
|
||||
"version": "2.0.33",
|
||||
"port-version": 1,
|
||||
"description": "Open source implementation of the JPEG-2000 Part-1 standard",
|
||||
"homepage": "https://github.com/mdadams/jasper",
|
||||
"dependencies": [
|
||||
|
@ -170,8 +170,12 @@ list(APPEND MESA_OPTIONS -Dshared-glapi=enabled) #shared GLAPI required when bu
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
list(APPEND MESA_OPTIONS -Dplatforms=['windows'])
|
||||
list(APPEND MESA_OPTIONS -Dmicrosoft-clc=disabled)
|
||||
if(NOT VCPKG_TARGET_IS_MINGW)
|
||||
set(VCPKG_CXX_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_CXX_FLAGS}")
|
||||
set(VCPKG_C_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_C_FLAGS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
vcpkg_configure_meson(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "mesa",
|
||||
"version": "21.2.5",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Mesa - The 3D Graphics Library",
|
||||
"homepage": "https://www.mesa3d.org/",
|
||||
"supports": "!(windows & arm)",
|
||||
|
@ -1,7 +1,3 @@
|
||||
if(NOT VCPKG_TARGET_IS_OSX)
|
||||
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
|
||||
endif()
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/getsentry/sentry-native/releases/download/0.4.13/sentry-native.zip"
|
||||
FILENAME "sentry-native-0.4.13.zip"
|
||||
@ -30,8 +26,13 @@ if (NOT DEFINED SENTRY_BACKEND)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
set(VCPKG_CXX_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_CXX_FLAGS}")
|
||||
set(VCPKG_C_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_C_FLAGS}")
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSENTRY_BUILD_TESTS=OFF
|
||||
-DSENTRY_BUILD_EXAMPLES=OFF
|
||||
@ -59,7 +60,7 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
endif()
|
||||
|
||||
file(
|
||||
INSTALL ${SOURCE_PATH}/LICENSE
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
||||
INSTALL "${SOURCE_PATH}/LICENSE"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
||||
RENAME copyright
|
||||
)
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "sentry-native",
|
||||
"version-semver": "0.4.13",
|
||||
"port-version": 1,
|
||||
"description": "Sentry SDK for C, C++ and native applications.",
|
||||
"homepage": "https://sentry.io/",
|
||||
"supports": "!(arm | (arm64 & !osx) | uwp)",
|
||||
|
@ -25,6 +25,11 @@ if(VCPKG_CROSSCOMPILING)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
set(VCPKG_CXX_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_CXX_FLAGS}")
|
||||
set(VCPKG_C_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_C_FLAGS}")
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "cmake",
|
||||
"version-string": "3.20.0",
|
||||
"port-version": 1,
|
||||
"description": "CMake is an open-source, cross-platform family of tools designed to build, test and package software.",
|
||||
"homepage": "https://cmake.org/",
|
||||
"dependencies": [
|
||||
|
@ -2418,7 +2418,7 @@
|
||||
},
|
||||
"getdns": {
|
||||
"baseline": "1.7.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"getopt": {
|
||||
"baseline": "0",
|
||||
@ -2954,7 +2954,7 @@
|
||||
},
|
||||
"jasper": {
|
||||
"baseline": "2.0.33",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"jbig2dec": {
|
||||
"baseline": "0.19",
|
||||
@ -4362,7 +4362,7 @@
|
||||
},
|
||||
"mesa": {
|
||||
"baseline": "21.2.5",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"meschach": {
|
||||
"baseline": "1.2b",
|
||||
@ -6302,7 +6302,7 @@
|
||||
},
|
||||
"sentry-native": {
|
||||
"baseline": "0.4.13",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"septag-sx": {
|
||||
"baseline": "2019-05-07",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "877301bc39a398579f0f3f13725afcd4bcd797c4",
|
||||
"version": "1.7.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "3fc05946f698399983a44d1c9a173df743c7bacf",
|
||||
"version": "1.7.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "6fc7475e9c22dafb473c98e00136e89c03ad8f5b",
|
||||
"version": "2.0.33",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "c00bfcf7f17b8ba6db6ee5e62ac379902bbba96f",
|
||||
"version": "2.0.33",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "60ae9e5d7081930a0e736be1742db18b01a0114b",
|
||||
"version": "21.2.5",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "9318298d8532439ec65868f7b1997f2b8d49fec5",
|
||||
"version": "21.2.5",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "9fb136cdde824d2f306a1afbd99830af76446158",
|
||||
"version-semver": "0.4.13",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "d0ab3adf0fe8f521553af8345c6c11e6e883f065",
|
||||
"version-semver": "0.4.13",
|
||||
|
Loading…
x
Reference in New Issue
Block a user