@@ -8,3 +8,88 @@ set(TGCALLS_DIR "${THIRDPARTY_DIR}/tgcalls")
8
8
# Source files list:
9
9
# https://github.com/TelegramMessenger/Telegram-iOS/blob/cb79afd6e87deb03582a0af7bc6a5b3e1479cf51/submodules/TgVoipWebrtc/BUILD
10
10
11
+ add_library (tgcalls STATIC
12
+ "${TGCALLS_DIR} /tgcalls/utils/gzip.cpp"
13
+ "${TGCALLS_DIR} /tgcalls/third-party/json11.cpp"
14
+
15
+ "${TGCALLS_DIR} /tgcalls/FieldTrialsConfig.cpp"
16
+
17
+ "${TGCALLS_DIR} /tgcalls/ChannelManager.cpp"
18
+ "${TGCALLS_DIR} /tgcalls/CodecSelectHelper.cpp"
19
+ "${TGCALLS_DIR} /tgcalls/CryptoHelper.cpp"
20
+ "${TGCALLS_DIR} /tgcalls/EncryptedConnection.cpp"
21
+ "${TGCALLS_DIR} /tgcalls/Instance.cpp"
22
+ "${TGCALLS_DIR} /tgcalls/InstanceImpl.cpp"
23
+ "${TGCALLS_DIR} /tgcalls/LogSinkImpl.cpp"
24
+ "${TGCALLS_DIR} /tgcalls/Manager.cpp"
25
+ "${TGCALLS_DIR} /tgcalls/MediaManager.cpp"
26
+ "${TGCALLS_DIR} /tgcalls/Message.cpp"
27
+ "${TGCALLS_DIR} /tgcalls/NetworkManager.cpp"
28
+ "${TGCALLS_DIR} /tgcalls/StaticThreads.cpp"
29
+ "${TGCALLS_DIR} /tgcalls/ThreadLocalObject.cpp"
30
+ "${TGCALLS_DIR} /tgcalls/VideoCaptureInterface.cpp"
31
+ "${TGCALLS_DIR} /tgcalls/VideoCaptureInterfaceImpl.cpp"
32
+ "${TGCALLS_DIR} /tgcalls/AudioDeviceHelper.cpp"
33
+ "${TGCALLS_DIR} /tgcalls/SctpDataChannelProviderInterfaceImpl.cpp"
34
+ "${TGCALLS_DIR} /tgcalls/TurnCustomizerImpl.cpp"
35
+
36
+ "${TGCALLS_DIR} /tgcalls/legacy/InstanceImplLegacy.cpp"
37
+
38
+ "${TGCALLS_DIR} /tgcalls/FakeVideoTrackSource.cpp"
39
+ "${TGCALLS_DIR} /tgcalls/FakeAudioDeviceModule.cpp"
40
+
41
+ "${TGCALLS_DIR} /tgcalls/group/VideoStreamingPart.cpp"
42
+ "${TGCALLS_DIR} /tgcalls/group/StreamingMediaContext.cpp"
43
+ "${TGCALLS_DIR} /tgcalls/group/GroupNetworkManager.cpp"
44
+ "${TGCALLS_DIR} /tgcalls/group/GroupJoinPayloadInternal.cpp"
45
+ "${TGCALLS_DIR} /tgcalls/group/GroupInstanceCustomImpl.cpp"
46
+ "${TGCALLS_DIR} /tgcalls/group/AVIOContextImpl.cpp"
47
+ "${TGCALLS_DIR} /tgcalls/group/AudioStreamingPartPersistentDecoder.cpp"
48
+ "${TGCALLS_DIR} /tgcalls/group/AudioStreamingPartInternal.cpp"
49
+ "${TGCALLS_DIR} /tgcalls/group/AudioStreamingPart.cpp"
50
+
51
+ "${TGCALLS_DIR} /tgcalls/v2/InstanceV2Impl.cpp"
52
+ "${TGCALLS_DIR} /tgcalls/v2/NativeNetworkingImpl.cpp"
53
+ "${TGCALLS_DIR} /tgcalls/v2/Signaling.cpp"
54
+ "${TGCALLS_DIR} /tgcalls/v2/SignalingEncryption.cpp"
55
+ "${TGCALLS_DIR} /tgcalls/v2/ContentNegotiation.cpp"
56
+ "${TGCALLS_DIR} /tgcalls/v2/InstanceV2ReferenceImpl.cpp"
57
+ "${TGCALLS_DIR} /tgcalls/v2/ExternalSignalingConnection.cpp"
58
+ "${TGCALLS_DIR} /tgcalls/v2/ReflectorPort.cpp"
59
+ "${TGCALLS_DIR} /tgcalls/v2/ReflectorRelayPortFactory.cpp"
60
+ "${TGCALLS_DIR} /tgcalls/v2/SignalingConnection.cpp"
61
+ "${TGCALLS_DIR} /tgcalls/v2/SignalingSctpConnection.cpp"
62
+
63
+ "${TGCALLS_DIR} /tgcalls/v2_4_0_0/InstanceV2_4_0_0Impl.cpp"
64
+ "${TGCALLS_DIR} /tgcalls/v2_4_0_0/Signaling_4_0_0.cpp"
65
+
66
+ "${TGCALLS_DIR} /tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp"
67
+ "${TGCALLS_DIR} /tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp"
68
+ "${TGCALLS_DIR} /tgcalls/desktop_capturer/DesktopCaptureSource.cpp"
69
+
70
+ "${TGCALLS_DIR} /tgcalls/platform/android/AndroidContext.cpp"
71
+ "${TGCALLS_DIR} /tgcalls/platform/android/AndroidInterface.cpp"
72
+ "${TGCALLS_DIR} /tgcalls/platform/android/VideoCameraCapturer.cpp"
73
+ "${TGCALLS_DIR} /tgcalls/platform/android/VideoCapturerInterfaceImpl.cpp"
74
+ )
75
+
76
+ target_include_directories (tgcalls PRIVATE
77
+ "${TGCALLS_DIR} /tgcalls"
78
+ "${CMAKE_HOME_DIRECTORY} "
79
+ )
80
+ target_include_directories (tgcalls PUBLIC
81
+ "${TGCALLS_DIR} "
82
+ )
83
+
84
+ target_compile_options (tgcalls PUBLIC
85
+ -Wall -finline-functions -ffast-math -fno-strict-aliasing -O3 -frtti -Wno-unknown-pragmas -funroll-loops -fexceptions -fno-math-errno
86
+ )
87
+
88
+ target_link_libraries (tgcalls PRIVATE
89
+ rnnoise
90
+ )
91
+
92
+ target_link_libraries (tgcalls PUBLIC
93
+ webrtc
94
+ tgvoip
95
+ )
0 commit comments