mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-01 05:33:33 +00:00
Remove dependency on okularpart from the mobile components
Summary: This only depended on okularpart due to the export header used in the kcfgc file, so use a dedicated one for the mobile components that doesn't export anything. This enables disabling the part build for mobile-only builds such as Android, and thus removing the need for some difficult dependencies like KParts. Reviewers: aacid Reviewed By: aacid Subscribers: aacid, okular-devel Tags: #okular Differential Revision: https://phabricator.kde.org/D19037
This commit is contained in:
parent
aaa176041d
commit
bc4c19eb92
10
conf/settings_mobile.kcfgc
Normal file
10
conf/settings_mobile.kcfgc
Normal file
|
@ -0,0 +1,10 @@
|
|||
ClassName=Settings
|
||||
NameSpace=Okular
|
||||
File=okular.kcfg
|
||||
Inherits=SettingsCore
|
||||
Mutators=true
|
||||
Singleton=true
|
||||
Visibility=
|
||||
IncludeFiles=settings_core.h
|
||||
SourceIncludeFiles=qdom.h,QStandardPaths
|
||||
MemberVariables=dpointer
|
|
@ -20,7 +20,7 @@ set(okular_SRCS
|
|||
okularsingleton.cpp
|
||||
)
|
||||
|
||||
kconfig_add_kcfg_files(okular_SRCS ${CMAKE_SOURCE_DIR}/conf/settings.kcfgc )
|
||||
kconfig_add_kcfg_files(okular_SRCS ${CMAKE_SOURCE_DIR}/conf/settings_mobile.kcfgc)
|
||||
|
||||
add_library(okularplugin SHARED ${okular_SRCS})
|
||||
set_target_properties(okularplugin PROPERTIES COMPILE_DEFINITIONS "okularpart_EXPORTS")
|
||||
|
|
1
mobile/components/settings.h
Normal file
1
mobile/components/settings.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include "settings_mobile.h"
|
Loading…
Reference in a new issue