mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-06-02 03:53:42 +02:00
Add libprisma from Fela for syntax highlighting.
This commit is contained in:
@@ -100,3 +100,6 @@
|
||||
[submodule "Telegram/ThirdParty/wayland"]
|
||||
path = Telegram/ThirdParty/wayland
|
||||
url = https://github.com/gitlab-freedesktop-mirrors/wayland.git
|
||||
[submodule "Telegram/ThirdParty/libprisma"]
|
||||
path = Telegram/ThirdParty/libprisma
|
||||
url = https://github.com/desktop-app/libprisma.git
|
||||
|
||||
@@ -28,6 +28,7 @@ include(cmake/lib_ffmpeg.cmake)
|
||||
include(cmake/lib_stripe.cmake)
|
||||
include(cmake/lib_tgvoip.cmake)
|
||||
include(cmake/lib_tgcalls.cmake)
|
||||
include(cmake/lib_prisma.cmake)
|
||||
include(cmake/td_export.cmake)
|
||||
include(cmake/td_mtproto.cmake)
|
||||
include(cmake/td_lang.cmake)
|
||||
|
||||
+1
Submodule Telegram/ThirdParty/libprisma added at 4521ec4dac
@@ -947,6 +947,10 @@ win:
|
||||
git checkout n11.1.5.1
|
||||
""")
|
||||
|
||||
stage('regex', """
|
||||
git clone -b boost-1.83.0 https://github.com/boostorg/regex.git
|
||||
""")
|
||||
|
||||
stage('ffmpeg', """
|
||||
git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
|
||||
cd ffmpeg
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# This file is part of Telegram Desktop,
|
||||
# the official desktop application for the Telegram messaging service.
|
||||
#
|
||||
# For license and copyright information please follow this link:
|
||||
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
add_library(lib_prisma STATIC)
|
||||
init_target(lib_prisma)
|
||||
|
||||
add_library(desktop-app::lib_prisma ALIAS lib_prisma)
|
||||
|
||||
set(prisma_loc ${third_party_loc}/libprisma/libprisma)
|
||||
|
||||
nice_target_sources(lib_prisma ${prisma_loc}
|
||||
PRIVATE
|
||||
Highlight.cpp
|
||||
Highlight.h
|
||||
LanguageTree.cpp
|
||||
LanguageTree.h
|
||||
SyntaxHighlighter.cpp
|
||||
SyntaxHighlighter.h
|
||||
TokenList.cpp
|
||||
TokenList.h
|
||||
)
|
||||
|
||||
target_compile_definitions(lib_prisma
|
||||
PRIVATE
|
||||
BOOST_NO_INTRINSIC_WCHAR_T
|
||||
BOOST_REGEX_NO_W32
|
||||
)
|
||||
|
||||
target_include_directories(lib_prisma
|
||||
PRIVATE
|
||||
${libs_loc}/regex/include
|
||||
PUBLIC
|
||||
${prisma_loc}
|
||||
)
|
||||
|
||||
target_link_libraries(lib_prisma
|
||||
PRIVATE
|
||||
desktop-app::external_boost_regex
|
||||
)
|
||||
+1
-1
Submodule cmake updated: b1b0e95b09...813aacf791
Reference in New Issue
Block a user