Skip to content

Commit

Permalink
update tdlib to 1.8.30 from tdlib/td@fab354a
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Jun 4, 2024
1 parent dbc056e commit 2a5119f
Show file tree
Hide file tree
Showing 328 changed files with 38,014 additions and 25,570 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "4.85"
#define NCHAT_VERSION "4.86"
4 changes: 2 additions & 2 deletions lib/tgchat/ext/td/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1087,9 +1087,9 @@ Changes in 1.4.0 (1 May 2019):
the class `scopeNotificationSettings`.
- Added the class `PushMessageContent` describing the content of a notification, received through
a push notification.
- Added the class `NotificationType` describing a type of a notification.
- Added the class `NotificationType` describing a type of notification.
- Added the class `notification` containing information about a notification.
- Added the class `NotificationGroupType` describing a type of a notification group.
- Added the class `NotificationGroupType` describing a type of notification group.
- Added the class `notificationGroup` describing a state of a notification group.
- Added the methods `removeNotification` and `removeNotificationGroup` for handling notifications removal
by the user.
Expand Down
1 change: 1 addition & 0 deletions lib/tgchat/ext/td/CMake/GeneratePkgConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function(get_relative_link OUTPUT PATH)
set(${OUTPUT} "${LINK}" PARENT_SCOPE)
endfunction()

# TODO: support interface libraries in dependencies
function(generate_pkgconfig TARGET DESCRIPTION)
# message("Generating pkg-config for ${TARGET}")
get_filename_component(PREFIX "${CMAKE_INSTALL_PREFIX}" REALPATH)
Expand Down
2 changes: 2 additions & 0 deletions lib/tgchat/ext/td/CMake/TdSetUpCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ function(td_set_up_compiler)
set(TD_LINKER_FLAGS "-Wl,-z,ignore")
elseif (EMSCRIPTEN)
set(TD_LINKER_FLAGS "-Wl,--gc-sections")
elseif (ANDROID)
set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL -Wl,--icf=safe")
else()
set(TD_LINKER_FLAGS "-Wl,--gc-sections -Wl,--exclude-libs,ALL")
endif()
Expand Down
21 changes: 21 additions & 0 deletions lib/tgchat/ext/td/CMake/iOS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ elseif (IOS_PLATFORM STREQUAL "TVSIMULATOR")
set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-tvsimulator")

set (APPLE_TV True)
elseif (IOS_PLATFORM STREQUAL "VISIONOS")
set (IOS_PLATFORM_LOCATION "XROS.platform")
set (XCODE_IOS_PLATFORM xros)

# This causes the installers to properly locate the output libraries
set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-xros")

set (APPLE_VISION True)
elseif (IOS_PLATFORM STREQUAL "VISIONSIMULATOR")
set (SIMULATOR_FLAG true)
set (IOS_PLATFORM_LOCATION "XRSimulator.platform")
set (XCODE_IOS_PLATFORM xros-simulator)

# This causes the installers to properly locate the output libraries
set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-xrsimulator")

set (APPLE_VISION True)
else (IOS_PLATFORM STREQUAL "OS")
message (FATAL_ERROR "Unsupported IOS_PLATFORM value selected. Please choose OS, SIMULATOR, or WATCHOS.")
endif ()
Expand Down Expand Up @@ -212,6 +229,10 @@ if (NOT DEFINED IOS_ARCH)
set (IOS_ARCH "arm64")
elseif (IOS_PLATFORM STREQUAL "TVSIMULATOR")
set (IOS_ARCH "x86_64;arm64")
elseif (IOS_PLATFORM STREQUAL "VISIONOS")
set (IOS_ARCH "arm64")
elseif (IOS_PLATFORM STREQUAL "VISIONSIMULATOR")
set (IOS_ARCH "x86_64;arm64")
endif()
endif()
message (STATUS "The iOS architectures: ${IOS_ARCH}")
Expand Down
Loading

0 comments on commit 2a5119f

Please sign in to comment.