$(if $(ENABLE_GTK),vclplug_gtk) \
$(if $(ENABLE_GTK3),vclplug_gtk3) \
$(if $(ENABLE_SYSTRAY_GTK),qstart_gtk) \
- $(if $(ENABLE_GIO),losessioninstall) \
+ $(if $(ENABLE_PACKAGEKIT),losessioninstall) \
$(if $(ENABLE_GIO),ucpgio1) \
))
$(DBUS_CFLAGS) \
)
+ifeq ($(ENABLE_PACKAGEKIT),TRUE)
+$(call gb_LinkTarget_add_defs,$(1),\
+ -DENABLE_PACKAGEKIT \
+)
+endif # ENABLE_PACKAGEKIT
+
$(call gb_LinkTarget_add_libs,$(1),\
$(DBUS_LIBS) \
)
export ENABLE_OOENV=@ENABLE_OOENV@
export ENABLE_OPENGL_TRANSITIONS=@ENABLE_OPENGL_TRANSITIONS@
export ENABLE_OPENGL_CANVAS=@ENABLE_OPENGL_CANVAS@
+export ENABLE_PACKAGEKIT=@ENABLE_PACKAGEKIT@
export ENABLE_PCH=@ENABLE_PCH@
export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
export ENABLE_PDFIUM=@ENABLE_PDFIUM@
canvas/source/opengl/oglcanvas \
) \
$(if $(ENABLE_GIO), \
- shell/source/sessioninstall/losessioninstall \
ucb/source/ucp/gio/ucpgio \
) \
+ $(if $(ENABLE_PACKAGEKIT), \
+ shell/source/sessioninstall/losessioninstall \
+ ) \
$(if $(ENABLE_GSTREAMER_1_0), \
avmedia/source/gstreamer/avmediagstreamer \
) \
// make sure we actually can instanciate services from base first
if(!lcl_isBaseAvailable())
{
+#if defined (ENABLE_PACKAGEKIT)
try
{
using namespace org::freedesktop::PackageKit;
SAL_INFO(
"sfx.appl",
"trying to install LibreOffice Base, caught " << e.Message);
+#else
+ SAL_INFO(
+ "sfx.appl",
+ "missing LibreOffice Base");
+
+#endif
+#if defined (ENABLE_PACKAGEKIT)
}
return;
+#endif
}
try // fdo#48775
ifneq ($(filter DRAGONFLY FREEBSD LINUX NETBSD OPENBSD,$(OS)),)
ifeq ($(ENABLE_GIO),TRUE)
+ifeq ($(ENABLE_PACKAGEKIT),TRUE)
$(eval $(call gb_Module_add_targets,shell,\
Library_losessioninstall \
))
endif
endif
+endif
ifeq ($(OS),SOLARIS)
ifeq ($(ENABLE_GIO),TRUE)
{
if(!lcl_hasAllComponentsAvailable())
{
+#if defined (ENABLE_PACKAGEKIT)
try
{
using namespace org::freedesktop::PackageKit;
SAL_INFO(
"sw.core",
"trying to install LibreOffice Base, caught " << e.Message);
+#else
+ SAL_INFO(
+ "sw.core",
+ "missing LibreOffice Base");
+#endif
+#if defined (ENABLE_PACKAGEKIT)
}
return;
+#endif
}
if ( m_pView )
{
static void addFontconfigDir(const OString& rDirectory);
std::set<OString> m_aPreviousLangSupportRequests;
-#if ENABLE_DBUS
+#if ENABLE_DBUS && defined(ENABLE_PACKAGEKIT)
std::vector<OString> m_aCurrentRequests;
#endif
Timer m_aFontInstallerTimer;
-#if ENABLE_DBUS
+#if ENABLE_DBUS && defined(ENABLE_PACKAGEKIT)
DECL_LINK( autoInstallFontLangSupport, Timer*, void );
#endif
PrintFontManager();
#include <ft2build.h>
#include <fontconfig/fcfreetype.h>
-#if ENABLE_DBUS
+#if ENABLE_DBUS && defined(ENABLE_PACKAGEKIT)
#include <dbus/dbus-glib.h>
#endif
return OStringToOUString(aBuf.makeStringAndClear(), RTL_TEXTENCODING_UTF8);
}
-#if ENABLE_DBUS
+#if ENABLE_DBUS && defined(ENABLE_PACKAGEKIT)
guint get_xid_for_dbus()
{
const vcl::Window *pTopWindow = Application::IsHeadlessModeEnabled() ? nullptr : Application::GetActiveTopWindow();
#endif
}
-#if ENABLE_DBUS
+#if ENABLE_DBUS && defined(ENABLE_PACKAGEKIT)
IMPL_LINK_NOARG(PrintFontManager, autoInstallFontLangSupport, Timer *, void)
{
if (!officecfg::Office::Common::PackageKit::EnableFontInstallation::get())
}
}
OUString sStillMissing(pRemainingCodes.get(), nRemainingLen);
-#if ENABLE_DBUS
+#if ENABLE_DBUS && defined(ENABLE_PACKAGEKIT)
if (get_xid_for_dbus())
{
if (sStillMissing == rMissingCodes) //replaced nothing
: m_nNextFontID( 1 )
, m_nNextDirAtom( 1 )
{
-#if ENABLE_DBUS
+#if ENABLE_DBUS && defined(ENABLE_PACKAGEKIT)
m_aFontInstallerTimer.SetInvokeHandler(LINK(this, PrintFontManager, autoInstallFontLangSupport));
m_aFontInstallerTimer.SetTimeout(5000);
#endif