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:
Volker Krause 2019-02-15 15:00:56 +01:00
parent aaa176041d
commit bc4c19eb92
3 changed files with 12 additions and 1 deletions

View 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

View File

@ -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")

View File

@ -0,0 +1 @@
#include "settings_mobile.h"