add nimf_qt5 cmake module
This commit is contained in:
parent
9e8743a970
commit
b7f7db72a2
3 changed files with 62 additions and 1 deletions
3
external/CMakeLists.txt
vendored
3
external/CMakeLists.txt
vendored
|
|
@ -31,6 +31,9 @@ if (LINUX)
|
||||||
add_checked_subdirectory(materialdecoration)
|
add_checked_subdirectory(materialdecoration)
|
||||||
endif()
|
endif()
|
||||||
add_checked_subdirectory(minizip)
|
add_checked_subdirectory(minizip)
|
||||||
|
if (LINUX)
|
||||||
|
add_checked_subdirectory(nimf_qt5)
|
||||||
|
endif()
|
||||||
add_checked_subdirectory(openal)
|
add_checked_subdirectory(openal)
|
||||||
add_checked_subdirectory(openssl)
|
add_checked_subdirectory(openssl)
|
||||||
add_checked_subdirectory(opus)
|
add_checked_subdirectory(opus)
|
||||||
|
|
|
||||||
59
external/nimf_qt5/CMakeLists.txt
vendored
Normal file
59
external/nimf_qt5/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
# 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 AND NOT DESKTOP_APP_USE_PACKAGED_LAZY)
|
||||||
|
add_library(external_nimf_qt5 INTERFACE IMPORTED GLOBAL)
|
||||||
|
add_library(desktop-app::external_nimf_qt5 ALIAS external_nimf_qt5)
|
||||||
|
else()
|
||||||
|
add_library(external_nimf_qt5 STATIC)
|
||||||
|
add_library(desktop-app::external_nimf_qt5 ALIAS external_nimf_qt5)
|
||||||
|
init_target(external_nimf_qt5 "(external)")
|
||||||
|
|
||||||
|
set(nimf_loc ${third_party_loc}/nimf)
|
||||||
|
set(libnimf_src ${nimf_loc}/libnimf)
|
||||||
|
set(nimf_qt5_src ${nimf_loc}/modules/clients/qt5)
|
||||||
|
|
||||||
|
set_target_properties(external_nimf_qt5 PROPERTIES AUTOMOC ON)
|
||||||
|
|
||||||
|
nice_target_sources(external_nimf_qt5 ${nimf_qt5_src}
|
||||||
|
PRIVATE
|
||||||
|
im-nimf-qt5.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
pkg_check_modules(GLIB2 REQUIRED glib-2.0)
|
||||||
|
pkg_check_modules(GOBJECT REQUIRED gobject-2.0)
|
||||||
|
pkg_check_modules(GIO REQUIRED gio-2.0)
|
||||||
|
|
||||||
|
target_include_directories(external_nimf_qt5
|
||||||
|
PRIVATE
|
||||||
|
${nimf_qt5_src}
|
||||||
|
${libnimf_src}
|
||||||
|
${GLIB2_INCLUDE_DIRS}
|
||||||
|
${GOBJECT_INCLUDE_DIRS}
|
||||||
|
${GIO_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_compile_definitions(external_nimf_qt5
|
||||||
|
PRIVATE
|
||||||
|
QT_STATICPLUGIN
|
||||||
|
QT_NO_KEYWORDS
|
||||||
|
G_LOG_DOMAIN="nimf"
|
||||||
|
NIMF_COMPILATION
|
||||||
|
USE_DLFCN
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(external_nimf_qt5
|
||||||
|
PRIVATE
|
||||||
|
desktop-app::external_qt
|
||||||
|
${CMAKE_DL_LIBS}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_compile_options(external_nimf_qt5
|
||||||
|
PRIVATE
|
||||||
|
-Wno-error=register
|
||||||
|
)
|
||||||
|
endif()
|
||||||
1
external/qt/CMakeLists.txt
vendored
1
external/qt/CMakeLists.txt
vendored
|
|
@ -166,7 +166,6 @@ else()
|
||||||
set(qt_libs_dbus_plugins
|
set(qt_libs_dbus_plugins
|
||||||
plugins/platforminputcontexts/${qt_lib_prefix}ibusplatforminputcontextplugin
|
plugins/platforminputcontexts/${qt_lib_prefix}ibusplatforminputcontextplugin
|
||||||
plugins/platforminputcontexts/${qt_lib_prefix}himeplatforminputcontextplugin
|
plugins/platforminputcontexts/${qt_lib_prefix}himeplatforminputcontextplugin
|
||||||
plugins/platforminputcontexts/${qt_lib_prefix}nimfplatforminputcontextplugin
|
|
||||||
plugins/platformthemes/${qt_lib_prefix}qxdgdesktopportal
|
plugins/platformthemes/${qt_lib_prefix}qxdgdesktopportal
|
||||||
)
|
)
|
||||||
set(qt_libs_dbus_bearers
|
set(qt_libs_dbus_bearers
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue