summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xRepository.mk9
-rw-r--r--config_host.mk.in3
-rw-r--r--configure.ac51
-rw-r--r--extensions/Module_extensions.mk19
-rw-r--r--np_sdk/Module_np_sdk.mk9
-rw-r--r--postprocess/packcomponents/makefile.mk2
-rw-r--r--scp2/InstallModule_ooo.mk3
-rw-r--r--scp2/source/ooo/common_brand.scp2
-rw-r--r--scp2/source/ooo/file_library_ooo.scp2
-rw-r--r--scp2/source/ooo/file_ooo.scp24
10 files changed, 75 insertions, 49 deletions
diff --git a/Repository.mk b/Repository.mk
index 82aac94f6c00..8dd9e272980d 100755
--- a/Repository.mk
+++ b/Repository.mk
@@ -187,14 +187,19 @@ $(eval $(call gb_Helper_register_executables,UREBIN,\
endif
-ifeq ($(ENABLE_NSPLUGIN),YES)
+ifeq ($(ENABLE_NPAPI_FROM_BROWSER),YES)
$(eval $(call gb_Helper_register_executables,OOO,\
- nsplugin \
pluginapp.bin \
))
$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
pl \
))
+endif
+
+ifeq ($(ENABLE_NPAPI_INTO_BROWSER),YES)
+$(eval $(call gb_Helper_register_executables,OOO,\
+ nsplugin \
+))
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
npsoplugin \
))
diff --git a/config_host.mk.in b/config_host.mk.in
index a5f8f40f70a0..727bdc7f04b2 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -161,7 +161,8 @@ export ENABLE_LTO=@ENABLE_LTO@
export ENABLE_MEDIAWIKI=@ENABLE_MEDIAWIKI@
export ENABLE_MINIMIZER=@ENABLE_MINIMIZER@
export ENABLE_MYSQLC=@ENABLE_MYSQLC@
-export ENABLE_NSPLUGIN=@ENABLE_NSPLUGIN@
+export ENABLE_NPAPI_FROM_BROWSER=@ENABLE_NPAPI_FROM_BROWSER@
+export ENABLE_NPAPI_INTO_BROWSER=@ENABLE_NPAPI_INTO_BROWSER@
export ENABLE_ONLINE_UPDATE=@ENABLE_ONLINE_UPDATE@
export ENABLE_OPENGL=@ENABLE_OPENGL@
export ENABLE_OXYGENOFFICE=@ENABLE_OXYGENOFFICE@
diff --git a/configure.ac b/configure.ac
index 18d427713e3a..5adc27e95744 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1014,13 +1014,6 @@ AC_ARG_ENABLE(zenity,
[Do not display a build icon in the notification area (on unix) during build.]),
,enable_zenity=yes)
-AC_ARG_ENABLE(nsplugin,
- AS_HELP_STRING([--disable-nsplugin],
- [Do not build NPAPI-based plugin features (allowing to plug LibreOffice
- into browser windows, and to plug browser plugins into LibreOffice
- documents.])
-)
-
AC_ARG_ENABLE(cups,
AS_HELP_STRING([--disable-cups],
[Do not build cups support.])
@@ -1682,7 +1675,8 @@ WITH_SYSTEM_MOZILLA=no)
AC_ARG_WITH(system-npapi-headers,
AS_HELP_STRING([--with-system-npapi-headers],
[Use NPAPI headers provided by system instead of bundled ones. Used in
- extensions/source/nsplugin and extensions/source/plugin]),,
+ extensions/source/nsplugin (ENABLE_NPAPI_INTO_BROWSER=YES) and
+ extensions/source/plugin (ENABLE_NPAPI_FROM_BROWSER=YES)]),,
[with_system_npapi_headers="$with_system_headers"]
)
@@ -8390,7 +8384,8 @@ if test "$with_system_npapi_headers" = "yes"; then
AC_LANG_POP([C])
else
AC_MSG_RESULT([internal])
- dnl ...but will not be built/used unless ENABLE_NSPLUGIN is YES
+ dnl ...but will not be built/used unless ENABLE_NPAPI_FROM_BROWSER or
+ dnl ENABLE_NPAPI_INTO_BROWSER is YES
SYSTEM_NPAPI_HEADERS=NO
fi
AC_SUBST(NPAPI_HEADERS_CFLAGS)
@@ -8556,24 +8551,33 @@ AC_SUBST(GRAPHITE_TARBALL)
AC_SUBST([MINGW_GRAPHITE2_DLL])
dnl ===================================================================
-dnl Check for nsplugin
+dnl Check for NPAPI interface to plug browser plugins into LibreOffice documents
dnl ===================================================================
-AC_MSG_CHECKING([whether to build nsplugin extension])
-ENABLE_NSPLUGIN=NO
-if test $_os = Darwin -o $_os = iOS -o $_os = Android -o "$enable_headless" = "yes"; then
- enable_gtk=no
+AC_MSG_CHECKING([whether to plug browser plugins into LibreOffice documents])
+if test "$_os" != Android -a "$_os" != iOS
+then
+ AC_MSG_RESULT([yes])
+ ENABLE_NPAPI_FROM_BROWSER=YES
+else
+ AC_MSG_RESULT([no])
+ ENABLE_NPAPI_FROM_BROWSER=NO
fi
-if test "$enable_nsplugin" != "no"; then
- if test "$enable_gtk" != "no"; then
- AC_MSG_RESULT([yes])
- ENABLE_NSPLUGIN=YES
- else
- AC_MSG_RESULT([no, disabled gtk2])
- fi
+AC_SUBST(ENABLE_NPAPI_FROM_BROWSER)
+
+dnl ===================================================================
+dnl Check for NPAPI interface to plug LibreOffice into browser windows
+dnl ===================================================================
+AC_MSG_CHECKING([whether to plug LibreOffice into browser windows])
+if test "$_os" != Android -a "$_os" != Darwin -a "$_os" != iOS -a \
+ "$enable_headless" != yes -a "$enable_gtk" != no
+then
+ AC_MSG_RESULT([yes])
+ ENABLE_NPAPI_INTO_BROWSER=YES
else
AC_MSG_RESULT([no])
+ ENABLE_NPAPI_INTO_BROWSER=NO
fi
-AC_SUBST(ENABLE_NSPLUGIN)
+AC_SUBST(ENABLE_NPAPI_INTO_BROWSER)
AC_MSG_CHECKING([whether to use X11])
dnl ***************************************
@@ -9416,6 +9420,9 @@ AC_SUBST(GTK3_CFLAGS)
AC_SUBST(ENABLE_GTK3)
AC_MSG_CHECKING([which VCLplugs shall be built])
+if test $_os = Darwin -o $_os = iOS -o $_os = Android -o "$enable_headless" = "yes"; then
+ enable_gtk=no
+fi
ENABLE_GTK=""
if test "x$enable_gtk" = "xyes"; then
ENABLE_GTK="TRUE"
diff --git a/extensions/Module_extensions.mk b/extensions/Module_extensions.mk
index 99ec13f0875f..7bd6348ce797 100644
--- a/extensions/Module_extensions.mk
+++ b/extensions/Module_extensions.mk
@@ -103,14 +103,10 @@ endif # DISABLE_ATL
endif # WNT
-ifeq ($(ENABLE_NSPLUGIN),YES)
+ifeq ($(ENABLE_NPAPI_FROM_BROWSER),YES)
$(eval $(call gb_Module_add_targets,extensions,\
- Executable_nsplugin \
- Library_npsoplugin \
Library_pl \
- StaticLibrary_npsoenv \
- WinResTarget_npsoplugin \
))
ifeq ($(GUI),UNX)
@@ -122,7 +118,18 @@ $(eval $(call gb_Module_add_targets,extensions,\
endif
endif
-endif # ENABLE_PLUGIN=YES
+endif # ENABLE_NPAPI_FROM_BROWSER=YES
+
+ifeq ($(ENABLE_NPAPI_INTO_BROWSER),YES)
+
+$(eval $(call gb_Module_add_targets,extensions,\
+ Executable_nsplugin \
+ Library_npsoplugin \
+ StaticLibrary_npsoenv \
+ WinResTarget_npsoplugin \
+))
+
+endif # ENABLE_NPAPI_INTO_BROWSER=YES
ifeq ($(OS),MACOSX)
$(eval $(call gb_Module_add_targets,extensions,\
diff --git a/np_sdk/Module_np_sdk.mk b/np_sdk/Module_np_sdk.mk
index 81c374263a26..673ee5f38999 100644
--- a/np_sdk/Module_np_sdk.mk
+++ b/np_sdk/Module_np_sdk.mk
@@ -27,11 +27,10 @@
$(eval $(call gb_Module_Module,np_sdk))
-ifeq ($(ENABLE_NSPLUGIN),YES)
+ifneq (,$(filter YES,$(ENABLE_NPAPI_FROM_BROWSER) $(ENABLE_NPAPI_INTO_BROWSER)))
$(eval $(call gb_Module_add_targets,np_sdk,\
Package_inc \
- StaticLibrary_nputils \
))
ifeq ($(SYSTEM_NPAPI_HEADERS),NO)
@@ -40,6 +39,12 @@ $(eval $(call gb_Module_add_targets,np_sdk,\
))
endif
+ifeq ($(ENABLE_NPAPI_INTO_BROWSER),YES)
+$(eval $(call gb_Module_add_targets,np_sdk,\
+ StaticLibrary_nputils \
+))
+endif
+
endif
# vim: set noet sw=4 ts=4:
diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk
index d8d6eddfb1ee..25c55e4a0c4f 100644
--- a/postprocess/packcomponents/makefile.mk
+++ b/postprocess/packcomponents/makefile.mk
@@ -298,7 +298,7 @@ my_components += \
component/wizards/com/sun/star/wizards/web/web
.END
-.IF "$(ENABLE_NSPLUGIN)" == "YES"
+.IF "$(ENABLE_NPAPI_FROM_BROWSER)" == "YES"
my_components += component/extensions/source/plugin/pl
.END
diff --git a/scp2/InstallModule_ooo.mk b/scp2/InstallModule_ooo.mk
index d9c6f571313d..58168619b436 100644
--- a/scp2/InstallModule_ooo.mk
+++ b/scp2/InstallModule_ooo.mk
@@ -39,7 +39,8 @@ $(eval $(call gb_InstallModule_define_if_set,scp2/ooo,\
ENABLE_KDE \
ENABLE_KDE4 \
ENABLE_LIBLANGTAG \
- ENABLE_NSPLUGIN \
+ ENABLE_NPAPI_FROM_BROWSER \
+ ENABLE_NPAPI_INTO_BROWSER \
ENABLE_ONLINE_UPDATE \
ENABLE_OPENGL \
ENABLE_TDE \
diff --git a/scp2/source/ooo/common_brand.scp b/scp2/source/ooo/common_brand.scp
index 6617e4ad9570..53299c9b4409 100644
--- a/scp2/source/ooo/common_brand.scp
+++ b/scp2/source/ooo/common_brand.scp
@@ -624,7 +624,7 @@ File gid_Brand_File_Bin_Libxml2
End
#endif
-#if defined ENABLE_NSPLUGIN
+#if defined ENABLE_NPAPI_INTO_BROWSER
File gid_Brand_File_Lib_Npsoplugin
BIN_FILE_BODY;
Name = SPECIAL_NAME(npsoplugin);
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index 1e038f8c284b..deeca822de2e 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -934,7 +934,7 @@ SPECIAL_LIB_FILE(gid_File_Lib_DeploymentGui,deploymentgui)
STD_LIB_FILE(gid_File_Lib_DeploymentMisc, deploymentmisc)
-#if defined ENABLE_NSPLUGIN
+#if defined ENABLE_NPAPI_FROM_BROWSER
STD_LIB_FILE( gid_File_Lib_Pl , pl)
#endif
diff --git a/scp2/source/ooo/file_ooo.scp b/scp2/source/ooo/file_ooo.scp
index b73224858ae2..c3e3a834c982 100644
--- a/scp2/source/ooo/file_ooo.scp
+++ b/scp2/source/ooo/file_ooo.scp
@@ -102,8 +102,7 @@ File gid_File_Basic_Tutorials
Name = "basicsrvtutorials.zip";
End
-#ifdef ENABLE_NSPLUGIN
-
+#if defined ENABLE_NPAPI_INTO_BROWSER
File gid_File_Exe_Nsplugin
BIN_FILE_BODY;
Styles = (PACKED);
@@ -114,18 +113,8 @@ File gid_File_Exe_Nsplugin
Name = "nsplugin.exe";
#endif
End
-
-#if defined(UNX) && !defined(QUARTZ)
-File gid_File_Bin_Pluginapp
- BIN_FILE_BODY;
- Dir = gid_Brand_Dir_Program;
- Name = "pluginapp.bin";
- Styles = (PACKED);
-End
#endif
-#endif // ENABLE_NSPLUGIN
-
File gid_File_Bin_Gengal
BIN_FILE_BODY;
Dir = gid_Brand_Dir_Program;
@@ -159,6 +148,17 @@ End
#endif
+#if defined ENABLE_NPAPI_FROM_BROWSER && defined UNX && !defined QUARTZ
+
+File gid_File_Bin_Pluginapp
+ BIN_FILE_BODY;
+ Dir = gid_Brand_Dir_Program;
+ Name = "pluginapp.bin";
+ Styles = (PACKED);
+End
+
+#endif
+
#ifdef UNX
File gid_File_Bin_Open_Url