1
0
Fork 0

Updated cmake sources to TDesktop version 2.7.1+c08a148

This commit is contained in:
Eric Kotato 2021-03-28 13:39:58 +03:00
commit 5e05a1337d
8 changed files with 55 additions and 1 deletions

View file

@ -26,6 +26,7 @@ endif()
add_checked_subdirectory(ffmpeg)
if (LINUX)
add_checked_subdirectory(glib)
add_checked_subdirectory(glibmm)
endif()
add_checked_subdirectory(gsl)
if (LINUX AND NOT DESKTOP_APP_DISABLE_DBUS_INTEGRATION)

View file

@ -24,6 +24,12 @@ else()
PRIVATE
qfcitxplatforminputcontext.cpp
qfcitxplatforminputcontext.h
fcitxcandidatewindow.cpp
fcitxcandidatewindow.h
fcitxtheme.cpp
fcitxtheme.h
font.cpp
font.h
qtkey.cpp
main.cpp
main.h

View file

@ -11,10 +11,12 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIB2 REQUIRED IMPORTED_TARGET glib-2.0)
pkg_check_modules(GOBJECT REQUIRED IMPORTED_TARGET gobject-2.0)
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
pkg_check_modules(GIO_UNIX REQUIRED IMPORTED_TARGET gio-unix-2.0)
if (DESKTOP_APP_USE_PACKAGED)
target_link_libraries(external_glib
INTERFACE
PkgConfig::GIO_UNIX
PkgConfig::GIO
PkgConfig::GOBJECT
PkgConfig::GLIB2
@ -22,6 +24,7 @@ if (DESKTOP_APP_USE_PACKAGED)
else()
target_include_directories(external_glib
INTERFACE
${GIO_UNIX_INCLUDE_DIRS}
${GIO_INCLUDE_DIRS}
${GOBJECT_INCLUDE_DIRS}
${GLIB2_INCLUDE_DIRS}

40
external/glibmm/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,40 @@
# 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
add_library(external_glibmm INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_glibmm ALIAS external_glibmm)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIBMM REQUIRED IMPORTED_TARGET glibmm-2.4)
pkg_check_modules(GIOMM REQUIRED IMPORTED_TARGET giomm-2.4)
if (DESKTOP_APP_USE_PACKAGED)
target_link_libraries(external_glibmm
INTERFACE
PkgConfig::GIOMM
PkgConfig::GLIBMM
)
else()
target_include_directories(external_glibmm
INTERFACE
${GIOMM_INCLUDE_DIRS}
${GLIBMM_INCLUDE_DIRS}
)
target_link_static_libraries(external_glibmm
INTERFACE
giomm-2.4
glibmm-2.4
sigc-2.0
)
target_link_libraries(external_glibmm
INTERFACE
gio-2.0
gobject-2.0
glib-2.0
)
endif()

View file

@ -9,7 +9,8 @@ add_library(desktop-app::common_options ALIAS common_options)
target_compile_definitions(common_options
INTERFACE
$<IF:$<CONFIG:Debug>,_DEBUG,NDEBUG>
$<$<CONFIG:Debug>:_DEBUG>
QT_NO_KEYWORDS
QT_NO_CAST_FROM_BYTEARRAY
)

View file

@ -74,6 +74,7 @@ INTERFACE
QuartzCore
AppKit
CoreWLAN
WebKit
IOKit
GSS
)

View file

@ -36,6 +36,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_link_options(common_options
INTERFACE
$<IF:$<CONFIG:Debug>,/NODEFAULTLIB:LIBCMT,/DEBUG;/OPT:REF>
$<$<BOOL:${DESKTOP_APP_NO_PDB}>:/DEBUG:NONE>
)
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")

View file

@ -42,6 +42,7 @@ option(DESKTOP_APP_DISABLE_CRASH_REPORTS "Disable crash report generation." ${no
option(DESKTOP_APP_DISABLE_AUTOUPDATE "Disable autoupdate." ${disable_autoupdate})
option(DESKTOP_APP_USE_HUNSPELL_ONLY "Disable system spellchecker and use bundled Hunspell only. (For debugging purposes)" OFF)
option(DESKTOP_APP_USE_ENCHANT "Use Enchant instead of bundled Hunspell. (Linux only)" OFF)
option(DESKTOP_APP_NO_PDB "Disable PDB file generation. (Windows only)" OFF)
set(DESKTOP_APP_QTWAYLANDCLIENT_PRIVATE_HEADERS "" CACHE STRING "QtWaylandClient headers location.")
set(dont_bundle_fonts 0)