⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.am

📁 VLC Player Source Code
💻 AM
字号:
################################################################################ Building the Mozilla plugin###############################################################################MOSTLYCLEANFILES = CLEANFILES = $(BUILT_SOURCES)EXTRA_DIST = $(DIST_sources) install.js npvlc_rc.rc.in vlc.rSOURCES_mozilla_common = \	vlcshell.cpp \	vlcplugin.cpp \	vlcplugin.h \	control/npolibvlc.cpp \	control/npolibvlc.h \	control/nporuntime.cpp \	control/nporuntime.h \	support/classinfo.hDIST_sources = $(SOURCES_mozilla_common) \	support/npwin.cpp support/npmac.cpp support/npunix.cif BUILD_MOZILLALIBRARIES_libvlc = $(top_builddir)/src/libvlc.la \				   $(top_builddir)/src/libvlccore.laif HAVE_WIN32# Under Win32, Mozilla plugins need to be named NP******.DLL, but under Unix# the common naming scheme is lib******plugin.so. Also, we need npwin.cpp# under Win32 and npunix.c under Unix.#lib_LTLIBRARIES = npvlc.laSOURCES_support = support/npwin.cppCPPFLAGS_mozilla_EXTRA = -DXP_WIN -DXP_WIN32LDFLAGS_mozilla_EXTRA = -no-undefined -Wl,--kill-at -Wl,$(DATA_npvlc_rc)npvlc_la_SOURCES = $(SOURCES_mozilla_common) $(SOURCES_support)npvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags mozilla` $(CPPFLAGS_mozilla_extra)npvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla` $(CPPFLAGS_mozilla_extra)npvlc_la_DEPENDENCIES = $(DATA_npvlc_rc) $(LIBRARIES_libvlc)npvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags mozilla` -module -avoid-version \				   $(LDFLAGS_mozilla_EXTRA)npvlc_la_LIBADD = `$(VLC_CONFIG) -libs mozilla` $(LIBRARIES_libvlc)DATA_npvlc_rc = $(noinst_npvlc_rc_DATA)noinst_npvlc_rc_DATA = npvlc_rc.$(OBJEXT)noinst_npvlc_rcdir =npvlc_rc.$(OBJEXT): npvlc_rc.rc	$(WINDRES) --include-dir $(srcdir) -i $< -o $@elseif HAVE_DARWIN## MacOS X#lib_LTLIBRARIES = npvlc.laSOURCES_support = support/npmac.cppCPPFLAGS_mozilla_EXTRA = -I. -I$(top_builddir) -I$(srcdir)/../include -c \	-F/System/Library/Frameworks/CoreFoundation.framework $(moz_CFLAGS) \	-I/Developer/Headers/FlatCarbon -fno-common -fpascal-strings \	-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -DXP_MACOSX=1 \	-DNO_X11=1 -DUSE_SYSTEM_CONSOLE=1 -pipe -fmessage-length=0 \	-include mozilla-config.hLDFLAGS_mozilla_EXTRA = -no-undefined -bundle -Wl,-read_only_relocs -Wl,suppress \	-Wl,-headerpad_max_install_names -shrext $(LIBEXT) -Wl,-framework,Carbon -Wl,-framework,Systemnpvlc_la_SOURCES = $(SOURCES_mozilla_common) $(SOURCES_support)npvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags mozilla` $(CPPFLAGS_mozilla_EXTRA)npvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla` $(CPPFLAGS_mozilla_EXTRA) npvlc_la_DEPENDENCIES = $(LIBRARIES_libvlc)npvlc_la_LDFLAGS = `$(VLC_CONFIG) --ldflags mozilla` -module -avoid-version \				   $(LDFLAGS_mozilla_EXTRA)npvlc_la_LIBADD = `$(VLC_CONFIG) -libs mozilla` $(LIBRARIES_libvlc)noinst_DATA = npvlc.rsrc VLC\ Plugin.pluginMOSTLYCLEANFILES += npvlc.rsrcCLEANFILES += VLC\ Plugin.pluginnpvlc.rsrc: $(srcdir)/vlc.r	/Developer/Tools/Rez -useDF /Developer/Headers/FlatCarbon/Types.r $< -o $@## Plugin uses shared libraries that are located relatively through @executable_path,# which unfortunately references the path of the App using the Plugin, rather than the# Plugin itself. Since this Plugin should always be installed in '/Library/Internet Plug-Ins',# it is safer to force dylibs to locate dependents through a fixed path#define FIXEXECPATH	otool -L "$$dylib" | \	awk -v libdylib="$$dylib" ' \	/@executable_path/ { \	    newpath=$$1 ; \	    sub("@executable_path","/Library/Internet Plug-Ins/VLC Plugin.plugin/Contents/MacOS",newpath) ; \	    print "install_name_tool -change \""$$1"\" \""newpath"\" \""libdylib"\"" ; \	}' | sh -xendefVLC\ Plugin.plugin: npvlc.rsrc $(lib_LTLIBRARIES)	rm -Rf "$@"	$(INSTALL) -d "$@/Contents/MacOS/lib"	$(INSTALL) -d "$@/Contents/Resources"	$(INSTALL) npvlc.rsrc "$@/Contents/Resources/VLC Plugin.rsrc"	cp -r "$(top_srcdir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/"	cp -r "$(top_builddir)/extras/package/macosx/plugin/English.lproj" "$@/Contents/Resources/"	$(INSTALL) "$(top_builddir)/extras/package/macosx/plugin/Info.plist" "$@/Contents/Info.plist"   ACTION="release-makefile" PRODUCT="VLC Plugin.plugin" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh# uncomment if dependencies on XPCOM libs is sought#	if test -d "$(MOZILLA_SDK_PATH)/lib"; then \#	  for i in "$(MOZILLA_SDK_PATH)"/lib/*.dylib ; do \#	    dylib="$(srcdir)/$@/Contents/MacOS/`basename $${i}`" ; \#	    $(INSTALL) -m 644 "$${i}" "$$dylib" ; \#	    $(FIXEXECPATH); \#	  done ; \#	fielse## UNIX/Others platforms#CPPFLAGS_mozilla_EXTRA = -DDATA_PATH=\"$(pkgdatadir)\"npvlc_LTLIBRARIES = libvlcplugin.lanpvlc = libvlcplugin$(LIBEXT)npvlcdir = $(libdir)/mozilla/pluginsSOURCES_support = support/npunix.clibvlcplugin_la_SOURCES = $(SOURCES_mozilla_common) $(SOURCES_support)libvlcplugin_la_CFLAGS = `$(VLC_CONFIG) --cflags mozilla` $(CPPFLAGS_mozilla_EXTRA)libvlcplugin_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla` $(CPPFLAGS_mozilla_EXTRA)libvlcplugin_la_LDFLAGS = `$(VLC_CONFIG) --ldflags mozilla` -module -avoid-version -shrext $(LIBEXT)libvlcplugin_la_LIBADD = $(LIBRARIES_libvlc) `$(VLC_CONFIG) -libs mozilla`# automake gets confused by the ../..libvlcplugin_la_DEPENDENCIES = $(AM_LIBADD) endifendifendif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -