Commit 645e8671 authored by Damien Fouilleul's avatar Damien Fouilleul

- configure.ac: removed dependency on XPCOM support libs as they bloat the...

- configure.ac: removed dependency on XPCOM support libs as they bloat the mozilla plugin, which does not use them.
- mozilla/Makefile.am: removed dependency on PPC only flags and libs, the plugin builds for MacIntel (doesn't mean it works, though)

parent d64ddb67
...@@ -5075,6 +5075,8 @@ AC_ARG_WITH(mozilla-sdk-path, ...@@ -5075,6 +5075,8 @@ AC_ARG_WITH(mozilla-sdk-path,
if test "${enable_mozilla}" = "yes" if test "${enable_mozilla}" = "yes"
then then
dnl currently vlc plugin only needs headers, no xpcom support apis are actually used
need_xpcom_libs=false
if test "${with_mozilla_sdk_path}" = "" if test "${with_mozilla_sdk_path}" = ""
then then
AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no) AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no)
...@@ -5097,7 +5099,11 @@ then ...@@ -5097,7 +5099,11 @@ then
mozilla=: mozilla=:
dnl Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=150490 dnl Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=150490
VLC_ADD_CPPFLAGS([mozilla],[[`${MOZILLA_CONFIG} --cflags plugin xpcom java | sed 's,-I\([^ ]*\)/mozilla/\([^ ]*\),-I\1/\2 -I\1/mozilla/\2,g' | xargs`]]) VLC_ADD_CPPFLAGS([mozilla],[[`${MOZILLA_CONFIG} --cflags plugin xpcom java | sed 's,-I\([^ ]*\)/mozilla/\([^ ]*\),-I\1/\2 -I\1/mozilla/\2,g' | xargs`]])
VLC_ADD_LDFLAGS([mozilla],[`${MOZILLA_CONFIG} --libs plugin xpcom`]) if ${need_xpcom_libs}; then
VLC_ADD_LDFLAGS([mozilla],[`${MOZILLA_CONFIG} --libs plugin xpcom`])
else
VLC_ADD_LDFLAGS([mozilla],[`${MOZILLA_CONFIG} --libs plugin`])
fi
CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_mozilla}" CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_mozilla}"
AC_CHECK_HEADERS(mozilla-config.h) AC_CHECK_HEADERS(mozilla-config.h)
CPPFLAGS="${CPPFLAGS_save}" CPPFLAGS="${CPPFLAGS_save}"
...@@ -5122,14 +5128,15 @@ then ...@@ -5122,14 +5128,15 @@ then
AC_CHECK_HEADERS(mozilla-config.h, [ AC_CHECK_HEADERS(mozilla-config.h, [
mozilla=: mozilla=:
VLC_ADD_CPPFLAGS([mozilla],[-DXPCOM_GLUE -DHAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX -I${real_mozilla_sdk} -I${real_mozilla_sdk}/include -I${real_mozilla_sdk}/embedstring/include -I${real_mozilla_sdk}/xpcom/include -I${real_mozilla_sdk}/nspr/include -I${real_mozilla_sdk}/string/include -I${real_mozilla_sdk}/plugin/include -I${real_mozilla_sdk}/java/include]) VLC_ADD_CPPFLAGS([mozilla],[-DXPCOM_GLUE -DHAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX -I${real_mozilla_sdk} -I${real_mozilla_sdk}/include -I${real_mozilla_sdk}/embedstring/include -I${real_mozilla_sdk}/xpcom/include -I${real_mozilla_sdk}/nspr/include -I${real_mozilla_sdk}/string/include -I${real_mozilla_sdk}/plugin/include -I${real_mozilla_sdk}/java/include])
VLC_ADD_LDFLAGS([mozilla],[-L${real_mozilla_sdk}/embedstring/bin -L${real_mozilla_sdk}/xpcom/bin -L${real_mozilla_sdk}/nspr/bin -L${real_mozilla_sdk}/string/bin -L${real_mozilla_sdk}/lib -lnspr4 -lplds4 -lplc4 -lxpcomglue]) if ${need_xpcom_libs}; then
if test "${SYS}" = "mingw32"; then VLC_ADD_LDFLAGS([mozilla],[-L${real_mozilla_sdk}/embedstring/bin -L${real_mozilla_sdk}/xpcom/bin -L${real_mozilla_sdk}/nspr/bin -L${real_mozilla_sdk}/string/bin -L${real_mozilla_sdk}/lib -lnspr4 -lplds4 -lplc4 -lxpcomglue])
LDFLAGS="${LDFLAGS_save}" if test "${SYS}" = "mingw32"; then
dnl latest gecko sdk does not have embedstring dnl latest gecko sdk does not have embedstring
if test -d "${real_mozilla_sdk}/embedstring/bin" if test -d "${real_mozilla_sdk}/embedstring/bin"
then then
VLC_ADD_LDFLAGS([mozilla],[-lembedstring -Wl,--kill-at]) VLC_ADD_LDFLAGS([mozilla],[-lembedstring -Wl,--kill-at])
fi fi
fi
fi fi
MOZILLA_SDK_PATH="${real_mozilla_sdk}" MOZILLA_SDK_PATH="${real_mozilla_sdk}"
......
...@@ -67,11 +67,11 @@ CLEANFILES += VLC\ Plugin.plugin ...@@ -67,11 +67,11 @@ CLEANFILES += VLC\ Plugin.plugin
SOURCES_support = support/npmac.cpp SOURCES_support = support/npmac.cpp
CPPFLAGS_mozilla_EXTRA = -I. -I$(top_builddir) -I$(srcdir)/../include -c \ CPPFLAGS_mozilla_EXTRA = -I. -I$(top_builddir) -I$(srcdir)/../include -c \
-F/System/Library/Frameworks/CoreFoundation.framework $(moz_CFLAGS) \ -F/System/Library/Frameworks/CoreFoundation.framework $(moz_CFLAGS) \
-I/Developer/Headers/FlatCarbon -arch ppc -fno-common -fpascal-strings \ -I/Developer/Headers/FlatCarbon -fno-common -fpascal-strings \
-O0 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -DXP_MACOSX=1 \ -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -DXP_MACOSX=1 \
-DNO_X11=1 -DUSE_SYSTEM_CONSOLE=1 -pipe -fmessage-length=0 -g \ -DNO_X11=1 -DUSE_SYSTEM_CONSOLE=1 -pipe -fmessage-length=0 \
-include mozilla-config.h -include mozilla-config.h
LDFLAGS_npvlc = -arch ppc -bundle -read_only_relocs suppress \ LDFLAGS_npvlc = -bundle -read_only_relocs suppress \
$(LIBRARIES_libvlc) -dylib -headerpad_max_install_names $(LIBRARIES_libvlc) -dylib -headerpad_max_install_names
npvlc.rsrc: $(srcdir)/vlc.r npvlc.rsrc: $(srcdir)/vlc.r
...@@ -118,13 +118,14 @@ VLC\ Plugin.plugin: npvlc.rsrc npvlc.dylib ...@@ -118,13 +118,14 @@ VLC\ Plugin.plugin: npvlc.rsrc npvlc.dylib
$(FIXEXECPATH); \ $(FIXEXECPATH); \
done ; \ done ; \
fi fi
if test -d "$(MOZILLA_SDK_PATH)/lib"; then \ # uncomment if dependencies on XPCOM libs is sought
for i in "$(MOZILLA_SDK_PATH)"/lib/*.dylib ; do \ # if test -d "$(MOZILLA_SDK_PATH)/lib"; then \
dylib="./$@/Contents/MacOS/`basename $${i}`" ; \ # for i in "$(MOZILLA_SDK_PATH)"/lib/*.dylib ; do \
$(INSTALL) -m 644 "$${i}" "$$dylib" ; \ # dylib="./$@/Contents/MacOS/`basename $${i}`" ; \
$(FIXEXECPATH); \ # $(INSTALL) -m 644 "$${i}" "$$dylib" ; \
done ; \ # $(FIXEXECPATH); \
fi # done ; \
# fi
else else
......
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