Skip to content
Open

Yyy #419

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 32 additions & 21 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,59 @@ macro(add_checked_subdirectory name)
endif()
endmacro()

add_checked_subdirectory(ada)
add_checked_subdirectory(angle)
add_checked_subdirectory(auto_updates)
add_checked_subdirectory(boost)
if (add_cld3_library)
add_checked_subdirectory(cld3)
endif()
add_checked_subdirectory(crash_reports)
if (LINUX)
add_checked_subdirectory(dispatch)
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
add_checked_subdirectory(dbusmenu_qt)
endif()
add_checked_subdirectory(expected)
add_checked_subdirectory(ffmpeg)
if (LINUX)
add_checked_subdirectory(glib)
add_checked_subdirectory(glibmm)
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
add_checked_subdirectory(fcitx_qt5)
endif()
add_checked_subdirectory(ffmpeg)
add_checked_subdirectory(gsl)
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
add_checked_subdirectory(hime_im_client)
add_checked_subdirectory(hime_qt)
endif()
if (add_hunspell_library)
add_checked_subdirectory(hunspell)
endif()
add_checked_subdirectory(iconv)
add_checked_subdirectory(jpeg)
add_checked_subdirectory(kcoreaddons)
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
add_checked_subdirectory(lxqt_qtplugin)
endif()
add_checked_subdirectory(lz4)
if (LINUX)
add_checked_subdirectory(materialdecoration)
endif()
add_checked_subdirectory(minizip)
if (LINUX)
add_checked_subdirectory(nimf_qt5)
endif()
add_checked_subdirectory(openal)
add_checked_subdirectory(openh264)
add_checked_subdirectory(openssl)
add_checked_subdirectory(opus)
add_checked_subdirectory(qt)
if (LINUX)
add_checked_subdirectory(qt5ct)
add_checked_subdirectory(qt5ct_qtplugin)
add_checked_subdirectory(qt5ct_style)
endif()
add_checked_subdirectory(qr_code_generator)
add_checked_subdirectory(ranges)
add_checked_subdirectory(rlottie)
add_checked_subdirectory(rnnoise)
add_checked_subdirectory(tde2e)
add_checked_subdirectory(skottie)
if (APPLE)
add_checked_subdirectory(sp_media_key_tap)
endif()
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)
add_checked_subdirectory(statusnotifieritem)
endif()
add_checked_subdirectory(ton)
add_checked_subdirectory(variant)
add_checked_subdirectory(vpx)
add_checked_subdirectory(webrtc)
if (LINUX AND NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
add_checked_subdirectory(xcb)
if (LINUX)
add_checked_subdirectory(xdgiconloader)
endif()
add_checked_subdirectory(xxhash)
add_checked_subdirectory(zlib)
50 changes: 50 additions & 0 deletions external/skottie/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL

if (DESKTOP_APP_USE_PACKAGED_SKOTTIE AND NOT DESKTOP_APP_USE_PACKAGED_LAZY)
add_library(external_skottie INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_skottie ALIAS external_skottie)

find_package(PkgConfig REQUIRED)
pkg_check_modules(RLOTTIE REQUIRED IMPORTED_TARGET skottie)
target_link_libraries(external_skottie INTERFACE PkgConfig::SKOTTIE)
else()
add_library(external_skottie INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_skottie ALIAS external_skottie)

target_compile_definitions(external_skottie
INTERFACE
SK_SUPPORT_GPU=0
)
target_include_directories(external_skottie SYSTEM
INTERFACE
${libs_loc}/skia
)

set(lib_part $<IF:$<CONFIG:Debug>,Debug,Release>/lib_)
set(lib_prefix ${libs_loc}/skia/out)

target_link_libraries(external_openal
INTERFACE
${lib_prefix}/src/codec/${lib_part}codec.lib
${lib_prefix}/src/images/${lib_part}images.lib
${lib_prefix}/src/image/${lib_part}image.lib
${lib_prefix}/src/opts/${lib_part}opts.lib
${lib_prefix}/src/shaders/${lib_part}shaders.lib
${lib_prefix}/third_party/skcms/${lib_part}skcms.lib
${lib_prefix}/src/sksl/${lib_part}sksl.lib
${lib_prefix}/src/utils/${lib_part}utils.lib
${lib_prefix}/src/core/${lib_part}core.lib
${lib_prefix}/src/effects/${lib_part}effects.lib
${lib_prefix}/src/fonts/${lib_part}fonts.lib
${lib_prefix}/src/pathops/${lib_part}pathops.lib
${lib_prefix}/src/sfnt/${lib_part}sfnt.lib
${lib_prefix}/src/ports/${lib_part}ports.lib
${lib_prefix}/modules/sksg/${lib_part}sksg.lib
${lib_prefix}/modules/skshaper/${lib_part}skshaper.lib
${lib_prefix}/lib/${lib_part}skottie.lib
)
endif()