Kaydet (Commit) f9059d4e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Key all browser plugin features to --enable-nsplugin

...instead of having them spread across --enable-nsplugin (plug LO into browser
windows) and --enable-mozilla (plug browser plugins into LO documents).  The
ultimate goal is to clean up the various configure options mentioning "mozilla"
and WITH_MOZILLA.

Change-Id: I6f4b1c3a5701424f586cc1e303af90c9d59a91b6
üst b479f7f7
...@@ -190,21 +190,15 @@ endif ...@@ -190,21 +190,15 @@ endif
ifeq ($(ENABLE_NSPLUGIN),YES) ifeq ($(ENABLE_NSPLUGIN),YES)
$(eval $(call gb_Helper_register_executables,OOO,\ $(eval $(call gb_Helper_register_executables,OOO,\
nsplugin \ nsplugin \
))
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
npsoplugin \
))
endif
ifeq ($(WITH_MOZILLA),YES)
$(eval $(call gb_Helper_register_executables,OOO,\
pluginapp.bin \ pluginapp.bin \
)) ))
$(eval $(call gb_Helper_register_libraries,OOOLIBS, \ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
pl \ pl \
)) ))
endif # WITH_MOZILLA $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
npsoplugin \
))
endif
ifeq ($(OS),MACOSX) ifeq ($(OS),MACOSX)
......
...@@ -1015,7 +1015,9 @@ AC_ARG_ENABLE(zenity, ...@@ -1015,7 +1015,9 @@ AC_ARG_ENABLE(zenity,
AC_ARG_ENABLE(nsplugin, AC_ARG_ENABLE(nsplugin,
AS_HELP_STRING([--disable-nsplugin], AS_HELP_STRING([--disable-nsplugin],
[Do not build nsplugin extension for browser embedding.]) [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, AC_ARG_ENABLE(cups,
...@@ -8387,8 +8389,7 @@ if test "$with_system_npapi_headers" = "yes"; then ...@@ -8387,8 +8389,7 @@ if test "$with_system_npapi_headers" = "yes"; then
AC_LANG_POP([C]) AC_LANG_POP([C])
else else
AC_MSG_RESULT([internal]) AC_MSG_RESULT([internal])
dnl ...but will not be built/used unless ENABLE_NSPLUGIN or WITH_MOZILLA dnl ...but will not be built/used unless ENABLE_NSPLUGIN is YES
dnl is YES
SYSTEM_NPAPI_HEADERS=NO SYSTEM_NPAPI_HEADERS=NO
fi fi
AC_SUBST(NPAPI_HEADERS_CFLAGS) AC_SUBST(NPAPI_HEADERS_CFLAGS)
......
...@@ -104,19 +104,14 @@ endif # DISABLE_ATL ...@@ -104,19 +104,14 @@ endif # DISABLE_ATL
endif # WNT endif # WNT
ifeq ($(ENABLE_NSPLUGIN),YES) ifeq ($(ENABLE_NSPLUGIN),YES)
$(eval $(call gb_Module_add_targets,extensions,\ $(eval $(call gb_Module_add_targets,extensions,\
Executable_nsplugin \ Executable_nsplugin \
Library_npsoplugin \ Library_npsoplugin \
Library_pl \
StaticLibrary_npsoenv \ StaticLibrary_npsoenv \
WinResTarget_npsoplugin \ WinResTarget_npsoplugin \
)) ))
endif
ifeq ($(WITH_MOZILLA),YES)
$(eval $(call gb_Module_add_targets,extensions,\
Library_pl \
))
ifeq ($(GUI),UNX) ifeq ($(GUI),UNX)
ifneq ($(GUIBASE),aqua) ifneq ($(GUIBASE),aqua)
...@@ -127,7 +122,7 @@ $(eval $(call gb_Module_add_targets,extensions,\ ...@@ -127,7 +122,7 @@ $(eval $(call gb_Module_add_targets,extensions,\
endif endif
endif endif
endif # WITH_MOZILLA=YES endif # ENABLE_PLUGIN=YES
ifeq ($(OS),MACOSX) ifeq ($(OS),MACOSX)
$(eval $(call gb_Module_add_targets,extensions,\ $(eval $(call gb_Module_add_targets,extensions,\
......
...@@ -27,10 +27,11 @@ ...@@ -27,10 +27,11 @@
$(eval $(call gb_Module_Module,np_sdk)) $(eval $(call gb_Module_Module,np_sdk))
ifneq (,$(filter YES,$(ENABLE_NSPLUGIN) $(WITH_MOZILLA))) ifeq ($(ENABLE_NSPLUGIN),YES)
$(eval $(call gb_Module_add_targets,np_sdk,\ $(eval $(call gb_Module_add_targets,np_sdk,\
Package_inc \ Package_inc \
StaticLibrary_nputils \
)) ))
ifeq ($(SYSTEM_NPAPI_HEADERS),NO) ifeq ($(SYSTEM_NPAPI_HEADERS),NO)
...@@ -39,12 +40,6 @@ $(eval $(call gb_Module_add_targets,np_sdk,\ ...@@ -39,12 +40,6 @@ $(eval $(call gb_Module_add_targets,np_sdk,\
)) ))
endif endif
ifeq ($(ENABLE_NSPLUGIN),YES)
$(eval $(call gb_Module_add_targets,np_sdk,\
StaticLibrary_nputils \
))
endif
endif endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -298,7 +298,7 @@ my_components += \ ...@@ -298,7 +298,7 @@ my_components += \
component/wizards/com/sun/star/wizards/web/web component/wizards/com/sun/star/wizards/web/web
.END .END
.IF "$(WITH_MOZILLA)" != "NO" .IF "$(ENABLE_NSPLUGIN)" == "YES"
my_components += component/extensions/source/plugin/pl my_components += component/extensions/source/plugin/pl
.END .END
......
...@@ -934,7 +934,7 @@ SPECIAL_LIB_FILE(gid_File_Lib_DeploymentGui,deploymentgui) ...@@ -934,7 +934,7 @@ SPECIAL_LIB_FILE(gid_File_Lib_DeploymentGui,deploymentgui)
STD_LIB_FILE(gid_File_Lib_DeploymentMisc, deploymentmisc) STD_LIB_FILE(gid_File_Lib_DeploymentMisc, deploymentmisc)
#ifndef WITHOUT_MOZILLA #if defined ENABLE_NSPLUGIN
STD_LIB_FILE( gid_File_Lib_Pl , pl) STD_LIB_FILE( gid_File_Lib_Pl , pl)
#endif #endif
......
...@@ -103,6 +103,7 @@ File gid_File_Basic_Tutorials ...@@ -103,6 +103,7 @@ File gid_File_Basic_Tutorials
End End
#ifdef ENABLE_NSPLUGIN #ifdef ENABLE_NSPLUGIN
File gid_File_Exe_Nsplugin File gid_File_Exe_Nsplugin
BIN_FILE_BODY; BIN_FILE_BODY;
Styles = (PACKED); Styles = (PACKED);
...@@ -113,8 +114,18 @@ File gid_File_Exe_Nsplugin ...@@ -113,8 +114,18 @@ File gid_File_Exe_Nsplugin
Name = "nsplugin.exe"; Name = "nsplugin.exe";
#endif #endif
End 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
#endif // ENABLE_NSPLUGIN
File gid_File_Bin_Gengal File gid_File_Bin_Gengal
BIN_FILE_BODY; BIN_FILE_BODY;
Dir = gid_Brand_Dir_Program; Dir = gid_Brand_Dir_Program;
...@@ -148,17 +159,6 @@ End ...@@ -148,17 +159,6 @@ End
#endif #endif
#if !defined(WITHOUT_MOZILLA) && 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 #ifdef UNX
File gid_File_Bin_Open_Url File gid_File_Bin_Open_Url
......
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