diff options
author | say <say@yandex-team.com> | 2023-12-04 16:16:31 +0300 |
---|---|---|
committer | say <say@yandex-team.com> | 2023-12-05 03:06:48 +0300 |
commit | 3f8b89a2f9ee6a209520c520ddb36d5be5e9a991 (patch) | |
tree | d07fd2f1363b81b4523c79a89135c5635aba8e6b /build/internal | |
parent | 1ff2a79206cf2fd76d1725a55d800a8366d2ba46 (diff) | |
download | ydb-3f8b89a2f9ee6a209520c520ddb36d5be5e9a991.tar.gz |
Move macos and msvc platforms to internal
Diffstat (limited to 'build/internal')
-rw-r--r-- | build/internal/platform/macos_sdk/ya.make | 18 | ||||
-rw-r--r-- | build/internal/platform/macos_system_stl/ya.make | 13 | ||||
-rw-r--r-- | build/internal/platform/msvc/ya.make | 17 |
3 files changed, 48 insertions, 0 deletions
diff --git a/build/internal/platform/macos_sdk/ya.make b/build/internal/platform/macos_sdk/ya.make new file mode 100644 index 0000000000..283c95430a --- /dev/null +++ b/build/internal/platform/macos_sdk/ya.make @@ -0,0 +1,18 @@ +RESOURCES_LIBRARY() + +# macOS 11.1 Big Sur SDK / Xcode 12.4 (12D4e) +DECLARE_EXTERNAL_RESOURCE(MACOS_SDK sbr:2088833948) + +IF (USE_STL_SYSTEM) + SET(__XCODE_RESOURCE_NAME CPP_XCODE_TOOLCHAIN_ROOT) + SET(__XCODE_TOOLCHAIN_VERSION ${CPP_XCODE_TOOLCHAIN_VERSION}) + INCLUDE(${ARCADIA_ROOT}/build/platform/xcode/ya.make.inc) + CFLAGS( + GLOBAL -F$MACOS_SDK_RESOURCE_GLOBAL/System/Library/Frameworks + ) + LDFLAGS( + -F$MACOS_SDK_RESOURCE_GLOBAL/System/Library/Frameworks + ) +ENDIF() + +END() diff --git a/build/internal/platform/macos_system_stl/ya.make b/build/internal/platform/macos_system_stl/ya.make new file mode 100644 index 0000000000..1659a184ba --- /dev/null +++ b/build/internal/platform/macos_system_stl/ya.make @@ -0,0 +1,13 @@ +RESOURCES_LIBRARY() + +# Taken from the default toolchain of the Xcode 12.5.1 +DECLARE_EXTERNAL_RESOURCE(MACOS_SYSTEM_STL sbr:2561940097) + +# xcode toolchain allready contains system headers +IF (USE_STL_SYSTEM AND NOT XCODE) + CFLAGS( + GLOBAL -I${MACOS_SYSTEM_STL_RESOURCE_GLOBAL}/include + ) +ENDIF() + +END() diff --git a/build/internal/platform/msvc/ya.make b/build/internal/platform/msvc/ya.make new file mode 100644 index 0000000000..7472be4a00 --- /dev/null +++ b/build/internal/platform/msvc/ya.make @@ -0,0 +1,17 @@ +RESOURCES_LIBRARY() + +IF (WINDOWS_KITS_VERSION == "10.0.10586.0") + DECLARE_EXTERNAL_RESOURCE(WINDOWS_KITS sbr:544779014) +ELSEIF (WINDOWS_KITS_VERSION == "10.0.16299.0") + DECLARE_EXTERNAL_RESOURCE(WINDOWS_KITS sbr:1379398385) +ELSEIF (WINDOWS_KITS_VERSION == "10.0.18362.0") + DECLARE_EXTERNAL_RESOURCE(WINDOWS_KITS sbr:1939557911) +ELSE() + MESSAGE(FATAL_ERROR "We have no Windows Kits version ${WINDOWS_KITS_VERSION}") +ENDIF() + +IF (CLANG_CL) + DECLARE_EXTERNAL_RESOURCE(MSVC_FOR_CLANG sbr:1383387533) # Microsoft Visual C++ 2017 14.16.27023 (15.9.5) +ENDIF() + +END() |