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,
AC_ARG_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.])
)
......@@ -4501,6 +4501,18 @@ if test $_os = Darwin -a "$enable_mozilla" = no; then
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 .NET needs special treatment
dnl (does the above comment really mean .NET, or is it misusing
......@@ -7865,11 +7877,18 @@ fi
AC_SUBST(SYSTEM_ODBC_HEADERS)
AC_MSG_CHECKING([whether to build Mozilla addressbook connectivity])
if test "$enable_mozilla" = "no"; then
if test "$_os" = "WINNT"; then
if test "$enable_mozilla" = "no"; then
AC_MSG_RESULT([no])
elif test "$with_system_mozilla" = "yes"; then
elif test "$with_system_mozilla" = "yes"; then
AC_MSG_RESULT([no, not possible with system-mozilla])
else
AC_MSG_RESULT([yes])
fi
else
# on all other platforms Mozilla addressbook connectivity
# is unconditionally built
# new and shiny mork driver
AC_MSG_RESULT([yes])
fi
......
......@@ -38,14 +38,12 @@ $(eval $(call gb_Module_add_targets,connectivity,\
Configuration_flat \
Configuration_mysql \
Configuration_odbc \
Executable_mork_helper \
Library_calc \
Library_dbase \
Library_dbpool2 \
Library_dbtools \
Library_file \
Library_flat \
Library_mork \
Library_mysql \
Library_odbc \
Library_odbcbase \
......@@ -117,26 +115,31 @@ $(eval $(call gb_Module_add_targets,connectivity,\
))
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)
$(eval $(call gb_Module_add_targets,connectivity,\
Library_mozbootstrap \
))
else
$(eval $(call gb_Module_add_targets,connectivity,\
Library_mozab \
Library_mozabdrv \
))
ifeq ($(OS),WNT)
$(eval $(call gb_Module_add_targets,connectivity,\
Configuration_mozab \
))
else
endif
else # the new and shiny mork driver ;-)
$(eval $(call gb_Module_add_targets,connectivity,\
Configuration_mozab2 \
Executable_mork_helper \
Configuration_mork \
Library_mork \
))
endif
endif
......
......@@ -376,12 +376,23 @@ my_components += \
.END
.IF "$(OS)" != "IOS" && "$(OS)" != "ANDROID"
.IF "$(OS)" == "WNT"
.IF "$(OS)" != "MACOSX" && "$(SYSTEM_MOZILLA)" != "YES" && \
"$(WITH_MOZILLA)" != "NO"
my_components += component/connectivity/source/drivers/mozab/mozab
.ELSE
my_components += component/connectivity/source/drivers/mozab/bootstrap/mozbootstrap
.END
.ELSE
# new and shiny mork driver
my_components += component/connectivity/source/drivers/mork/mork
.ENDIF
.ENDIF
.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
MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-kab.xcu
MY_DRIVERS += kab
.END
# somebody would simplify that? ;-)
.IF "$(OS)" == "WNT"
.IF "$(SYSTEM_MOZILLA)" != "YES" && "$(WITH_MOZILLA)" != "NO" && \
"$(OS)" != "MACOSX"
.IF "$(OS)" == "WNT"
......@@ -361,6 +365,15 @@ MY_FILES_main += $(MY_MOD)/org/openoffice/Office/DataAccess/Drivers-mozab2.xcu
MY_DRIVERS += mozab2
.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)" != ""
MY_FILES_main += $(MY_MOD)/org/openoffice/Office/Paths-externallibexttextcatdata.xcu
.ELSE
......
......@@ -890,6 +890,8 @@ File gid_File_Lib_Mcnttype
#endif
End
#if defined(WNT)
#if !defined(SYSTEM_MOZILLA) && !defined(WITHOUT_MOZILLA) && !defined(MACOSX)
// #i91209#
STD_LIB_FILE(gid_File_Lib_Mozab,mozab2)
......@@ -910,6 +912,12 @@ End
#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_T602Filter,t602filter)
......
......@@ -379,9 +379,13 @@ Module gid_Module_Root_Files_5
gid_File_Lib_Hsqldb_2,
gid_File_Lib_Jdbc,
gid_File_Lib_Mcnttype,
#if defined(WNT)
gid_File_Lib_Mozab_2,
gid_File_Lib_Mozabdrv,
gid_File_Lib_Mozbootstrap,
#else
gid_File_Lib_Mork,
#endif
gid_File_Lib_Mysql,
gid_File_Lib_Odbc,
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