From b7525f1f1d123084b60269f420300afdd405b0d1 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 4 Apr 2013 22:46:53 +0200 Subject: Drop jvmaccess and jvmfwk when no SOLAR_JAVA Just sprinkle #ifdef SOLAR_JAVA into the code instead. In the source for jvmaccess and jvmfwk such ifdefs can be removed as it isn't compiled unless SOLAR_JAVA. Change-Id: Ia8614f8bd6d833582d3b79b5fb75f9153fa79606 --- cui/Library_cui.mk | 6 ++++-- cui/source/options/treeopt.cxx | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'cui') diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk index 1966b7fc1f33..c5e8609cbec5 100644 --- a/cui/Library_cui.mk +++ b/cui/Library_cui.mk @@ -53,7 +53,8 @@ $(eval $(call gb_Library_use_libraries,cui,\ drawinglayer \ editeng \ i18nisolang1 \ - jvmfwk \ + $(if $(filter TRUE,$(SOLAR_JAVA)), \ + jvmfwk) \ lng \ sal \ salhelper \ @@ -159,7 +160,8 @@ $(eval $(call gb_Library_add_exception_objects,cui,\ cui/source/options/optHeaderTabListbox \ cui/source/options/opthtml \ cui/source/options/optinet2 \ - cui/source/options/optjava \ + $(if $(filter TRUE,$(SOLAR_JAVA)), \ + cui/source/options/optjava) \ cui/source/options/optjsearch \ cui/source/options/optlingu \ cui/source/options/optmemory \ diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index eb382088837c..b7bc0b868476 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -312,7 +312,9 @@ SfxTabPage* CreateGeneralTabPage( sal_uInt16 nId, Window* pParent, const SfxItem case RID_SVXPAGE_ACCESSIBILITYCONFIG: fnCreate = &SvxAccessibilityOptionsTabPage::Create; break; case RID_SVXPAGE_OPTIONS_CTL: fnCreate = &SvxCTLOptionsPage::Create ; break; case RID_SVXPAGE_INET_MOZPLUGIN: fnCreate = &MozPluginTabPage::Create; break; +#ifdef SOLAR_JAVA case RID_SVXPAGE_OPTIONS_JAVA: fnCreate = &SvxJavaOptionsPage::Create ; break; +#endif case RID_SVXPAGE_ONLINEUPDATE: fnCreate = &SvxOnlineUpdateTabPage::Create; break; case RID_OPTPAGE_CHART_DEFCOLORS: fnCreate = &SvxDefaultColorOptPage::Create; break; } -- cgit