build: fix xcode build (#5521)

This commit is contained in:
Cœur
2023-05-20 06:17:24 +02:00
committed by GitHub
parent e171cbae9c
commit 87472672a6
2 changed files with 23 additions and 10 deletions

View File

@@ -3725,6 +3725,19 @@
buildSettings = { buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LIBRARY = "libc++"; CLANG_CXX_LIBRARY = "libc++";
HEADER_SEARCH_PATHS = (
"$(inherited)",
"third-party/dht",
"third-party/fast_float/include",
"third-party/wide-integer",
"third-party/libb64/include",
"third-party/libdeflate",
"third-party/libpsl/include",
"third-party/libutp/include",
"third-party/utfcpp/source",
"third-party/jsonsl",
"third-party/wildmat",
);
OTHER_CFLAGS = ( OTHER_CFLAGS = (
"$(inherited)", "$(inherited)",
"-DWITH_UTP", "-DWITH_UTP",
@@ -3744,17 +3757,17 @@
"third-party/libb64/include", "third-party/libb64/include",
"third-party/libdeflate", "third-party/libdeflate",
"third-party/libevent/include", "third-party/libevent/include",
"third-party/libnatpmp", "third-party/libnatpmp/*.h",
"third-party/libpsl/include", "third-party/libpsl/include",
"third-party/libutp/include", "third-party/libutp/include",
"third-party/miniupnpc", "third-party/miniupnpc/*.h",
"third-party/utfcpp/source", "third-party/utfcpp/source",
"third-party/wide-integer", "third-party/wide-integer",
"third-party/wildmat", "third-party/wildmat",
); );
USER_HEADER_SEARCH_PATHS = ( USER_HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
"." .,
); );
}; };
name = Debug; name = Debug;
@@ -3998,17 +4011,17 @@
"third-party/libb64/include", "third-party/libb64/include",
"third-party/libdeflate", "third-party/libdeflate",
"third-party/libevent/include", "third-party/libevent/include",
"third-party/libnatpmp", "third-party/libnatpmp/*.h",
"third-party/libpsl/include", "third-party/libpsl/include",
"third-party/libutp/include", "third-party/libutp/include",
"third-party/miniupnpc", "third-party/miniupnpc/*.h",
"third-party/utfcpp/source", "third-party/utfcpp/source",
"third-party/wide-integer", "third-party/wide-integer",
"third-party/wildmat", "third-party/wildmat",
); );
USER_HEADER_SEARCH_PATHS = ( USER_HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
".", .,
); );
}; };
name = Release; name = Release;
@@ -4324,17 +4337,17 @@
"third-party/libb64/include", "third-party/libb64/include",
"third-party/libdeflate", "third-party/libdeflate",
"third-party/libevent/include", "third-party/libevent/include",
"third-party/libnatpmp", "third-party/libnatpmp/*.h",
"third-party/libpsl/include", "third-party/libpsl/include",
"third-party/libutp/include", "third-party/libutp/include",
"third-party/miniupnpc", "third-party/miniupnpc/*.h",
"third-party/utfcpp/source", "third-party/utfcpp/source",
"third-party/wide-integer", "third-party/wide-integer",
"third-party/wildmat", "third-party/wildmat",
); );
USER_HEADER_SEARCH_PATHS = ( USER_HEADER_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
".", .,
); );
}; };
name = "Release - Debug"; name = "Release - Debug";

View File

@@ -13,7 +13,7 @@
#include <fmt/core.h> #include <fmt/core.h>
#define ENABLE_STRNATPMPERR #define ENABLE_STRNATPMPERR
#include <natpmp.h> #include "natpmp.h"
#define LIBTRANSMISSION_PORT_FORWARDING_MODULE #define LIBTRANSMISSION_PORT_FORWARDING_MODULE