Kaydet (Commit) 903065dd authored tarafından David Ostrovsky's avatar David Ostrovsky Kaydeden (comit) Fridrich Strba

switch build system to mork driver implementation

On all non windows platforms no mozilla is used any more.
On windows it used for O and OE address book access.
Once alternative implementation for it exists,
mozilla can be stripped there too.

Change-Id: I54144005e6a284326b45a34eb958d170e872471e
Reviewed-on: https://gerrit.libreoffice.org/637Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst b8a331fe
...@@ -695,7 +695,7 @@ AC_ARG_ENABLE(pch, ...@@ -695,7 +695,7 @@ AC_ARG_ENABLE(pch,
AC_ARG_ENABLE(mozilla, AC_ARG_ENABLE(mozilla,
AS_HELP_STRING([--enable-mozilla], AS_HELP_STRING([--enable-mozilla],
[LibreOffice can include a strangely hacked up Mozilla binary for your [LibreOffice can include a strangely hacked up Mozilla binary on Windows
platform, to build with this version, use this option.]) platform, to build with this version, use this option.])
) )
...@@ -4501,6 +4501,18 @@ if test $_os = Darwin -a "$enable_mozilla" = no; then ...@@ -4501,6 +4501,18 @@ if test $_os = Darwin -a "$enable_mozilla" = no; then
fi fi
fi fi
dnl ===================================================================
dnl --enable-mozilla is supported only on Windows
dnl ===================================================================
if test "$_os" != "WINNT" ; then
if test "$enable_mozilla" = "yes"; then
AC_MSG_ERROR([--enable-mozilla is only available on Windows])
fi
fi
dnl =================================================================== dnl ===================================================================
dnl .NET needs special treatment dnl .NET needs special treatment
dnl (does the above comment really mean .NET, or is it misusing dnl (does the above comment really mean .NET, or is it misusing
...@@ -7865,12 +7877,19 @@ fi ...@@ -7865,12 +7877,19 @@ fi
AC_SUBST(SYSTEM_ODBC_HEADERS) AC_SUBST(SYSTEM_ODBC_HEADERS)
AC_MSG_CHECKING([whether to build Mozilla addressbook connectivity]) AC_MSG_CHECKING([whether to build Mozilla addressbook connectivity])
if test "$enable_mozilla" = "no"; then if test "$_os" = "WINNT"; then
AC_MSG_RESULT([no]) if test "$enable_mozilla" = "no"; then
elif test "$with_system_mozilla" = "yes"; then AC_MSG_RESULT([no])
AC_MSG_RESULT([no, not possible with system-mozilla]) elif test "$with_system_mozilla" = "yes"; then
AC_MSG_RESULT([no, not possible with system-mozilla])
else
AC_MSG_RESULT([yes])
fi
else else
AC_MSG_RESULT([yes]) # on all other platforms Mozilla addressbook connectivity
# is unconditionally built
# new and shiny mork driver
AC_MSG_RESULT([yes])
fi fi
dnl =================================================================== dnl ===================================================================
......
...@@ -38,14 +38,12 @@ $(eval $(call gb_Module_add_targets,connectivity,\ ...@@ -38,14 +38,12 @@ $(eval $(call gb_Module_add_targets,connectivity,\
Configuration_flat \ Configuration_flat \
Configuration_mysql \ Configuration_mysql \
Configuration_odbc \ Configuration_odbc \
Executable_mork_helper \
Library_calc \ Library_calc \
Library_dbase \ Library_dbase \
Library_dbpool2 \ Library_dbpool2 \
Library_dbtools \ Library_dbtools \
Library_file \ Library_file \
Library_flat \ Library_flat \
Library_mork \
Library_mysql \ Library_mysql \
Library_odbc \ Library_odbc \
Library_odbcbase \ Library_odbcbase \
...@@ -117,26 +115,31 @@ $(eval $(call gb_Module_add_targets,connectivity,\ ...@@ -117,26 +115,31 @@ $(eval $(call gb_Module_add_targets,connectivity,\
)) ))
endif endif
# mozab only on windows
ifeq ($(OS),WNT)
ifeq ($(if $(or $(filter-out YES,$(WITH_MOZILLA)),$(filter YES,$(SYSTEM_MOZILLA)),$(filter MACOSX,$(OS))),YES),YES) ifeq ($(if $(or $(filter-out YES,$(WITH_MOZILLA)),$(filter YES,$(SYSTEM_MOZILLA)),$(filter MACOSX,$(OS))),YES),YES)
$(eval $(call gb_Module_add_targets,connectivity,\ $(eval $(call gb_Module_add_targets,connectivity,\
Library_mozbootstrap \ Library_mozbootstrap \
)) ))
else else
$(eval $(call gb_Module_add_targets,connectivity,\ $(eval $(call gb_Module_add_targets,connectivity,\
Library_mozab \ Library_mozab \
Library_mozabdrv \ Library_mozabdrv \
)) ))
ifeq ($(OS),WNT)
$(eval $(call gb_Module_add_targets,connectivity,\ $(eval $(call gb_Module_add_targets,connectivity,\
Configuration_mozab \ Configuration_mozab \
)) ))
else endif
else # the new and shiny mork driver ;-)
$(eval $(call gb_Module_add_targets,connectivity,\ $(eval $(call gb_Module_add_targets,connectivity,\
Configuration_mozab2 \ Executable_mork_helper \
Configuration_mork \
Library_mork \
)) ))
endif
endif endif
......
...@@ -376,12 +376,23 @@ my_components += \ ...@@ -376,12 +376,23 @@ my_components += \
.END .END
.IF "$(OS)" != "IOS" && "$(OS)" != "ANDROID" .IF "$(OS)" != "IOS" && "$(OS)" != "ANDROID"
.IF "$(OS)" == "WNT"
.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \ .IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \
"$(WITH_MOZILLA)" != "NO" "$(WITH_MOZILLA)" != "NO"
my_components += component/connectivity/source/drivers/mozab/mozab my_components += component/connectivity/source/drivers/mozab/mozab
.ELSE .ELSE
my_components += component/connectivity/source/drivers/mozab/bootstrap/mozbootstrap my_components += component/connectivity/source/drivers/mozab/bootstrap/mozbootstrap
.END .END
.ELSE
# new and shiny mork driver
my_components += component/connectivity/source/drivers/mork/mork
.ENDIF
.ENDIF .ENDIF
.IF "$(OS)" != "WNT" && "$(OS)" != "ANDROID" && "$(OS)" != "IOS" && "$(OS)" != "headless" .IF "$(OS)" != "WNT" && "$(OS)" != "ANDROID" && "$(OS)" != "IOS" && "$(OS)" != "headless"
......
...@@ -351,6 +351,10 @@ MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-tdeab.xcu ...@@ -351,6 +351,10 @@ MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-tdeab.xcu
MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-kab.xcu MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-kab.xcu
MY_DRIVERS += kab MY_DRIVERS += kab
.END .END
# somebody would simplify that? ;-)
.IF "$(OS)" == "WNT"
.IF "$(SYSTEM_MOZILLA)" != "YES" && "$(WITH_MOZILLA)" != "NO" && \ .IF "$(SYSTEM_MOZILLA)" != "YES" && "$(WITH_MOZILLA)" != "NO" && \
"$(OS)" != "MACOSX" "$(OS)" != "MACOSX"
.IF "$(OS)" == "WNT" .IF "$(OS)" == "WNT"
...@@ -361,6 +365,15 @@ MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-mozab2.xcu ...@@ -361,6 +365,15 @@ MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-mozab2.xcu
MY_DRIVERS += mozab2 MY_DRIVERS += mozab2
.END .END
.END .END
.ELSE
# new and shiny mork driver
MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-mork.xcu
MY_DRIVERS += mork
.END
.IF "$(SYSTEM_LIBEXTTEXTCAT_DATA)" != "" .IF "$(SYSTEM_LIBEXTTEXTCAT_DATA)" != ""
MY_FILES_main += $(MY_MOD)/org/openoffice/Office/Paths-externallibexttextcatdata.xcu MY_FILES_main += $(MY_MOD)/org/openoffice/Office/Paths-externallibexttextcatdata.xcu
.ELSE .ELSE
......
...@@ -890,6 +890,8 @@ File gid_File_Lib_Mcnttype ...@@ -890,6 +890,8 @@ File gid_File_Lib_Mcnttype
#endif #endif
End End
#if defined(WNT)
#if !defined(SYSTEM_MOZILLA) && !defined(WITHOUT_MOZILLA) && !defined(MACOSX) #if !defined(SYSTEM_MOZILLA) && !defined(WITHOUT_MOZILLA) && !defined(MACOSX)
// #i91209# // #i91209#
STD_LIB_FILE(gid_File_Lib_Mozab,mozab2) STD_LIB_FILE(gid_File_Lib_Mozab,mozab2)
...@@ -910,6 +912,12 @@ End ...@@ -910,6 +912,12 @@ End
#endif #endif
#else
STD_LIB_FILE(gid_File_Lib_Mork,mork)
#endif
STD_LIB_FILE(gid_File_Lib_WpftWriter,wpftwriter) STD_LIB_FILE(gid_File_Lib_WpftWriter,wpftwriter)
STD_LIB_FILE(gid_File_Lib_T602Filter,t602filter) STD_LIB_FILE(gid_File_Lib_T602Filter,t602filter)
......
...@@ -379,9 +379,13 @@ Module gid_Module_Root_Files_5 ...@@ -379,9 +379,13 @@ Module gid_Module_Root_Files_5
gid_File_Lib_Hsqldb_2, gid_File_Lib_Hsqldb_2,
gid_File_Lib_Jdbc, gid_File_Lib_Jdbc,
gid_File_Lib_Mcnttype, gid_File_Lib_Mcnttype,
#if defined(WNT)
gid_File_Lib_Mozab_2, gid_File_Lib_Mozab_2,
gid_File_Lib_Mozabdrv, gid_File_Lib_Mozabdrv,
gid_File_Lib_Mozbootstrap, gid_File_Lib_Mozbootstrap,
#else
gid_File_Lib_Mork,
#endif
gid_File_Lib_Mysql, gid_File_Lib_Mysql,
gid_File_Lib_Odbc, gid_File_Lib_Odbc,
gid_File_Lib_Officebean, gid_File_Lib_Officebean,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment