summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in11
-rw-r--r--libcmis/Module_libcmis.mk2
-rw-r--r--postprocess/packcomponents/makefile.mk4
-rw-r--r--scp2/source/ooo/file_library_ooo.scp6
-rw-r--r--scp2/source/ooo/module_hidden_ooo.scp4
-rwxr-xr-xset_soenv.in1
-rw-r--r--ucb/source/ucp/cmis/makefile.mk3
7 files changed, 27 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index f05a9bd42d28..2b58f7893bf7 100644
--- a/configure.in
+++ b/configure.in
@@ -519,6 +519,11 @@ AC_ARG_ENABLE(release-build,
See http://wiki.documentfoundation.org/DevBuild]),
,)
+AC_ARG_ENABLE(cmis,
+ AS_HELP_STRING([--disable-cmis],
+ [Disable CMIS experimental feature.]),
+,enable_cmis=yes)
+
dnl ===================================================================
dnl Optional Packages (--with/without-)
dnl ===================================================================
@@ -7026,6 +7031,12 @@ if test "$enable_cairo_canvas" = "yes" ; then
fi
AC_SUBST(ENABLE_CAIRO_CANVAS)
+ENABLE_CMIS="FALSE"
+if test "$enable_cmis" = "yes" ; then
+ ENABLE_CMIS="TRUE"
+fi
+AC_SUBST(ENABLE_CMIS)
+
dnl ===================================================================
dnl Check whether the GStreamer libraries are available.
dnl ===================================================================
diff --git a/libcmis/Module_libcmis.mk b/libcmis/Module_libcmis.mk
index 0cf0d040d05a..3c0beeb40a4c 100644
--- a/libcmis/Module_libcmis.mk
+++ b/libcmis/Module_libcmis.mk
@@ -27,9 +27,11 @@
$(eval $(call gb_Module_Module,libcmis))
+ifneq ($(ENABLE_CMIS),)
$(eval $(call gb_Module_add_targets,libcmis,\
ExternalLib_libcmis \
))
+endif
# vim: set noet sw=4 ts=4:
diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk
index 8b42349a37c6..8d6a36321946 100644
--- a/postprocess/packcomponents/makefile.mk
+++ b/postprocess/packcomponents/makefile.mk
@@ -221,6 +221,10 @@ my_components += gconfbe1
my_components += ucpgio
.END
+.IF "$(ENABLE_CMIS)" != ""
+my_components += ucpcmis
+.END
+
.IF "$(ENABLE_GNOMEVFS)" != ""
my_components += ucpgvfs
.END
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index 037794040915..d5b62bc34fc3 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -186,8 +186,7 @@ End
#endif
-#ifndef WNT
-
+#if ENABLE_CMIS
File gid_File_Lib_Cmis
TXT_FILE_BODY;
Styles = (PACKED);
@@ -206,6 +205,7 @@ File gid_File_Lib_Cmis
#endif
#endif
End
+#endif
#endif
@@ -1356,7 +1356,7 @@ SPECIAL_COMPONENT_LIB_FILE(gid_File_Ucpexpand1, ucpexpand1.uno)
SPECIAL_COMPONENT_LIB_FILE(gid_File_Ucpodma1, ucpodma1)
#endif
-#ifndef WNT
+#if ENABLE_CMIS
SPECIAL_COMPONENT_LIB_FILE(gid_File_Ucpcmis, ucpcmis1.uno)
#endif
diff --git a/scp2/source/ooo/module_hidden_ooo.scp b/scp2/source/ooo/module_hidden_ooo.scp
index 0865fb8094c2..826b6b46c7cb 100644
--- a/scp2/source/ooo/module_hidden_ooo.scp
+++ b/scp2/source/ooo/module_hidden_ooo.scp
@@ -327,6 +327,9 @@ Module gid_Module_Root_Files_5
#if ! defined SYSTEM_LIBGSF
gid_File_Lib_Libgsf,
#endif
+#if ENABLE_CMIS
+ gid_File_Lib_Cmis,
+#endif
gid_File_Lib_Dict_Ja,
gid_File_Lib_Dict_Zh,
gid_File_Lib_Collator_Data,
@@ -340,7 +343,6 @@ Module gid_Module_Root_Files_5
gid_File_Lib_Ldapbe2,
gid_File_Lib_Comphelper2,
gid_File_Lib_Cached1,
- gid_File_Lib_Cmis,
gid_File_Lib_Curl,
gid_Unixlink_File_Lib_Curl,
gid_File_Lib_Db,
diff --git a/set_soenv.in b/set_soenv.in
index cf0ef7f9deb1..09cefdc53891 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1496,6 +1496,7 @@ ToFile( "ENABLE_STATIC_GTK", "@ENABLE_STATIC_GTK@", "e" );
ToFile( "SPLIT_APP_MODULES", "@SPLIT_APP_MODULES@","e" );
ToFile( "SPLIT_OPT_FEATURES","@SPLIT_OPT_FEATURES@","e" );
ToFile( "ENABLE_CAIRO_CANVAS", "@ENABLE_CAIRO_CANVAS@", "e" );
+ToFile( "ENABLE_CMIS", "@ENABLE_CMIS@", "e" );
ToFile( "ENABLE_OPENGL", "@ENABLE_OPENGL@", "e" );
ToFile( "ENABLE_PDFIMPORT", "@ENABLE_PDFIMPORT@", "e" );
ToFile( "ENABLE_MINIMIZER", "@ENABLE_MINIMIZER@","e" );
diff --git a/ucb/source/ucp/cmis/makefile.mk b/ucb/source/ucp/cmis/makefile.mk
index 43b7c438ff30..4068486584de 100644
--- a/ucb/source/ucp/cmis/makefile.mk
+++ b/ucb/source/ucp/cmis/makefile.mk
@@ -37,6 +37,8 @@ NO_BSYMBOLIC=TRUE
.INCLUDE: settings.mk
.IF "$(L10N_framework)"==""
+.IF "$(ENABLE_CMIS)"!=""
+
# no "lib" prefix
DLLPRE =
@@ -59,6 +61,7 @@ SHL1STDLIBS=\
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
+.ENDIF # "$(ENABLE_CMIS)"!=""
.ENDIF # L10N_framework
.INCLUDE: target.mk