[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - svx/Library_svx.mk svx/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 24 08:17:08 UTC 2019
svx/Library_svx.mk | 2 +-
svx/source/sidebar/PanelFactory.cxx | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 293df527fc50cc11314be2adc190bec8159bc397
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Mon Jun 24 14:27:19 2019 +0900
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Mon Jun 24 10:16:26 2019 +0200
don't compile MediaPlaybackPanel if we don't have avmedia
This sidebar panel causes missing symbols when compiling for ios,
where we disable avmedia support.
Change-Id: Ib79a6debc27e5d5be4b4c388077ac1a3bf8c97b4
Reviewed-on: https://gerrit.libreoffice.org/74617
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk
index ad1b1dc3a423..2fd92c3d6896 100644
--- a/svx/Library_svx.mk
+++ b/svx/Library_svx.mk
@@ -204,7 +204,7 @@ $(eval $(call gb_Library_add_exception_objects,svx,\
svx/source/sidebar/line/LinePropertyPanelBase \
svx/source/sidebar/line/LineWidthValueSet \
svx/source/sidebar/line/LineWidthPopup \
- svx/source/sidebar/media/MediaPlaybackPanel \
+ $(call gb_Helper_optional,AVMEDIA,svx/source/sidebar/media/MediaPlaybackPanel) \
svx/source/sidebar/possize/PosSizePropertyPanel \
svx/source/sidebar/possize/SidebarDialControl \
svx/source/sidebar/shapes/DefaultShapesPanel \
diff --git a/svx/source/sidebar/PanelFactory.cxx b/svx/source/sidebar/PanelFactory.cxx
index d834a7bd4b7b..a0f6c846a7db 100644
--- a/svx/source/sidebar/PanelFactory.cxx
+++ b/svx/source/sidebar/PanelFactory.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include "text/TextPropertyPanel.hxx"
#include "styles/StylesPropertyPanel.hxx"
#include "paragraph/ParaPropertyPanel.hxx"
@@ -26,7 +28,9 @@
#include "line/LinePropertyPanel.hxx"
#include "possize/PosSizePropertyPanel.hxx"
#include <DefaultShapesPanel.hxx>
+#if HAVE_FEATURE_AVMEDIA
#include "media/MediaPlaybackPanel.hxx"
+#endif
#include <GalleryControl.hxx>
#include "EmptyPanel.hxx"
#include <sfx2/sidebar/SidebarPanelBase.hxx>
@@ -155,10 +159,12 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement (
{
pControl = DefaultShapesPanel::Create(pParentWindow, xFrame);
}
+#if HAVE_FEATURE_AVMEDIA
else if (rsResourceURL.endsWith("/MediaPlaybackPanel"))
{
pControl = MediaPlaybackPanel::Create(pParentWindow, xFrame, pBindings);
}
+#endif
else if (rsResourceURL.endsWith("/GalleryPanel"))
{
pControl.reset(VclPtr<GalleryControl>::Create(pParentWindow));
More information about the Libreoffice-commits
mailing list