mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix build for Xcode 10.
This commit is contained in:
parent
62ffd93cb7
commit
377689ae86
7 changed files with 10 additions and 4 deletions
|
@ -119,6 +119,8 @@ Call::ControllerPointer::~ControllerPointer() {
|
|||
reset();
|
||||
}
|
||||
|
||||
Call::Delegate::~Delegate() = default;
|
||||
|
||||
Call::Call(
|
||||
not_null<Delegate*> delegate,
|
||||
not_null<UserData*> user,
|
||||
|
|
|
@ -47,6 +47,8 @@ public:
|
|||
};
|
||||
virtual void playSound(Sound sound) = 0;
|
||||
|
||||
virtual ~Delegate();
|
||||
|
||||
};
|
||||
|
||||
static constexpr auto kSoundSampleMs = 100;
|
||||
|
|
|
@ -96,7 +96,7 @@ public:
|
|||
std::is_assignable_v<Type&, OtherType>>>
|
||||
variable(producer<OtherType, Error, Generator> &&stream) {
|
||||
std::move(stream)
|
||||
| start_with_next([this](auto &&data) {
|
||||
| start_with_next([=](auto &&data) {
|
||||
assign(std::forward<decltype(data)>(data));
|
||||
}, _lifetime);
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public:
|
|||
producer<OtherType, Error, Generator> &&stream) {
|
||||
_lifetime.destroy();
|
||||
std::move(stream)
|
||||
| start_with_next([this](auto &&data) {
|
||||
| start_with_next([=](auto &&data) {
|
||||
assign(std::forward<decltype(data)>(data));
|
||||
}, _lifetime);
|
||||
return *this;
|
||||
|
|
2
Telegram/ThirdParty/libtgvoip
vendored
2
Telegram/ThirdParty/libtgvoip
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 6053cf5dce58c12ef6ce2d2f6cbe77fd5b10c575
|
||||
Subproject commit 9b292fdbc84f148f736407176facc920e20592f9
|
|
@ -28,7 +28,7 @@ else
|
|||
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode-ninja
|
||||
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode
|
||||
# use patched gyp with Xcode project generator
|
||||
../../../Libraries/gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out -Gxcode_upgrade_check_project_version=940 -Dofficial_build_target=$BuildTarget Telegram.gyp --format=xcode
|
||||
../../../Libraries/gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out -Gxcode_upgrade_check_project_version=1000 -Dofficial_build_target=$BuildTarget Telegram.gyp --format=xcode
|
||||
fi
|
||||
|
||||
cd ../..
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
'CLANG_CXX_LANGUAGE_STANDARD': 'c++1z',
|
||||
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
|
||||
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
|
||||
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
||||
},
|
||||
'configurations': {
|
||||
'Debug': {
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
'xcode_settings': {
|
||||
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
|
||||
'OTHER_LDFLAGS': [
|
||||
'-isysroot', '/',
|
||||
'-lbase',
|
||||
'-lcrashpad_client',
|
||||
'-lcrashpad_util',
|
||||
|
|
Loading…
Add table
Reference in a new issue