Changeset 8bbbcc31b7479f7ba33db7889b730cbb892e2744

Show
Ignore:
Timestamp:
07/17/03 14:06:10 (5 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1058443570 +0000
git-parent:

[e30fd2a9aff6319968af1c471c567a2dc9660665]

git-author:
Sam Hocevar <sam@videolan.org> 1058443570 +0000
Message:
  • mozilla/Makefile.am: Moved mozilla plugin generation directives here.
  • configure.ac: Propagate $(top_srcdir) to the vlc-config call.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    re952609 r8bbbcc3  
    88# something. DIST_SUBDIRS stores the directories where nothing is built but 
    99# which have makefiles with distribution information. 
    10 SUBDIRS = intl modules . share po m4 
     10SUBDIRS = intl modules mozilla . share po m4 
    1111DIST_SUBDIRS = $(SUBDIRS) src debian doc ipkg lib autotools 
    1212 
     
    567567 
    568568############################################################################### 
    569 # Building the Mozilla plugin 
    570 ############################################################################### 
    571  
    572 noinst_LIBRARIES = $(noinst_LIBRARIES_mozilla) 
    573  
    574 MOSTLYCLEANFILES = $(LIBRARIES_mozilla) 
    575  
    576 EXTRA_DIST += $(SOURCES_mozilla) mozilla/vlcintf.idl 
    577  
    578 BUILT_SOURCES += $(BUILT_SOURCES_mozilla) 
    579  
    580 SOURCES_mozilla = \ 
    581     mozilla/vlcshell.cpp \ 
    582     mozilla/vlcplugin.cpp \ 
    583     mozilla/vlcplugin.h \ 
    584     mozilla/vlcpeer.cpp \ 
    585     mozilla/vlcpeer.h \ 
    586     mozilla/support/classinfo.h \ 
    587     $(SOURCES_mozilla_win32) \ 
    588     $(SOURCES_mozilla_macosx) \ 
    589     $(SOURCES_mozilla_unix) \ 
    590     $(NULL) 
    591  
    592 # Under Win32, Mozilla plugins need to be named NP******.DLL, but under Unix 
    593 # the common naming scheme is lib******plugin.so. Also, we need npwin.cpp 
    594 # under Win32 and npunix.c under Unix. 
    595 if HAVE_WIN32 
    596 LIBRARIES_mozilla = mozilla/npvlc$(LIBEXT) 
    597 SOURCES_mozilla_win32 = mozilla/support/npwin.cpp 
    598 CPPFLAGS_mozilla_EXTRA = -DXP_WIN -DXP_WIN32 
    599 else 
    600 if HAVE_DARWIN 
    601 # We don't define LIBRARIES_mozilla because we'll be using project builder 
    602 SOURCES_mozilla_macosx = mozilla/support/npmac.cpp 
    603 else 
    604 LIBRARIES_mozilla = mozilla/libvlcplugin$(LIBEXT) 
    605 SOURCES_mozilla_unix = mozilla/support/npunix.c 
    606 endif 
    607 endif 
    608  
    609 if BUILD_MOZILLA 
    610 if UNTRUE 
    611 noinst_LIBRARIES_mozilla = mozilla/libplugin.a 
    612 endif 
    613  
    614 mozilla_libplugin_a_SOURCES = $(SOURCES_mozilla) 
    615 mozilla_libplugin_a_CFLAGS = `$(VLC_CONFIG) --cflags mozilla pic` \ 
    616                              $(CPPFLAGS_mozilla_EXTRA) -Imozilla 
    617 mozilla_libplugin_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags mozilla pic` \ 
    618                                $(CPPFLAGS_mozilla_EXTRA) -Imozilla 
    619 mozilla_libplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(DATA_npvlc_rc) 
    620  
    621 BUILT_SOURCES_mozilla = mozilla/vlcintf.h 
    622 $(SOURCES_mozilla): mozilla/vlcintf.h 
    623  
    624 mozilla_plugin_DATA = $(LIBRARIES_mozilla) 
    625 mozilla_plugindir = $(libdir)/mozilla/plugins 
    626 $(LIBRARIES_mozilla): $(mozilla_libplugin_a_OBJECTS) \ 
    627                       $(mozilla_libplugin_a_DEPENDENCIES) stamp-pic 
    628     $(CXXLINK) $(mozilla_libplugin_a_OBJECTS) $(DATA_npvlc_rc) \ 
    629       lib/libvlc_pic.a -shared \ 
    630       `$(VLC_CONFIG) --libs vlc mozilla builtin pic` 
    631  
    632 mozilla_vlcintf_xpt_DATA = mozilla/vlcintf.xpt 
    633 mozilla_vlcintf_xptdir = $(libdir)/mozilla/components 
    634 mozilla/vlcintf.xpt: mozilla/vlcintf.idl 
    635     $(XPIDL) -I/usr/share/idl/mozilla -I/usr/lib/mozilla/include/idl \ 
    636       -m typelib -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl 
    637  
    638 mozilla/vlcintf.h: mozilla/vlcintf.idl 
    639     $(XPIDL) -I/usr/share/idl/mozilla -I/usr/lib/mozilla/include/idl \ 
    640       -m header -o mozilla/vlcintf $(srcdir)/mozilla/vlcintf.idl 
    641  
    642 if HAVE_WIN32 
    643 DATA_npvlc_rc = $(noinst_mozilla_npvlc_rc_DATA) 
    644 noinst_mozilla_npvlc_rc_DATA = mozilla/npvlc_rc.$(OBJEXT) 
    645 noinst_mozilla_npvlc_rcdir = $(libdir) 
    646 mozilla/npvlc_rc.$(OBJEXT): mozilla/npvlc_rc.rc 
    647     $(WINDRES) --include-dir $(srcdir)/mozilla -i $< -o $@ 
    648 endif 
    649 endif 
    650  
    651 ############################################################################### 
    652569# Stamp rules 
    653570############################################################################### 
  • configure.ac

    re5d0b8e r8bbbcc3  
    11dnl Autoconf settings for vlc 
    2 dnl $Id: configure.ac,v 1.31 2003/07/16 16:06:56 sam Exp $ 
     2dnl $Id: configure.ac,v 1.32 2003/07/17 12:06:10 sam Exp $ 
    33 
    44AC_INIT(vlc,0.6.0) 
     
    31943194dnl  Handle substvars that use $(top_srcdir) 
    31953195dnl 
    3196 VLC_CONFIG="\$(top_builddir)/vlc-config" 
     3196VLC_CONFIG="top_srcdir=\"\$(top_srcdir)\" \$(top_builddir)/vlc-config" 
    31973197AC_SUBST(VLC_CONFIG) 
    31983198CPPFLAGS_save="${CPPFLAGS_save} -I\$(top_srcdir)/include" 
     
    32403240  lib/Makefile 
    32413241  modules/Makefile 
     3242  mozilla/Makefile 
    32423243  m4/Makefile 
    32433244  po/Makefile.in 
  • mozilla/.cvsignore

    rc01dd5d r8bbbcc3  
     1.deps 
     2.dirstamp 
     3*.lo 
     4*.la 
    15*.dll 
     6*.dylib 
     7*.sl 
     8*.so 
     9Makefile.in 
     10Makefile 
    211vlcintf.h 
    312vlcintf.xpt 
    4 .deps 
    5 .dirstamp 
  • vlc-config.in.in

    rf53fe26 r8bbbcc3  
    7878#  automatically added when using $(COMPILE), $(CXXCOMPILE) or $(OBJCCOMPILE) 
    7979# 
    80 if test "@includedir@" != /usr/include ; then 
     80if test "@includedir@" != "/usr/include"; then 
    8181  includes="-I@includedir@" 
     82fi 
     83if test "${top_srcdir}" != ""; then 
     84  top_srcdir="${top_srcdir}/" 
    8285fi 
    8386cppflags="${includes}" 
     
    244247      register_targets "${module}" 
    245248    done 
    246     for target in `echo "${list}"`; do printf "modules/${target}_plugin "; done 
     249    for target in `echo "${list}"`; do printf "${top_srcdir}modules/${target}_plugin "; done 
    247250    printf '\n' 
    248251  fi 
     
    252255    done 
    253256    if test "${echo_pic}" = yes; then 
    254       for target in `echo "${list}"`; do printf "modules/${target}_pic.a "; done 
     257      for target in `echo "${list}"`; do printf "${top_srcdir}modules/${target}_pic.a "; done 
    255258    else 
    256       for target in `echo "${list}"`; do printf "modules/${target}.a "; done 
     259      for target in `echo "${list}"`; do printf "${top_srcdir}modules/${target}.a "; done 
    257260    fi 
    258261    printf '\n' 
     
    286289    done 
    287290    if test "${echo_pic}" = yes; then 
    288       for target in `echo "${list}"`; do printf "modules/${target}_pic.a "; done 
     291      for target in `echo "${list}"`; do printf "${top_srcdir}modules/${target}_pic.a "; done 
    289292    else 
    290       for target in `echo "${list}"`; do printf "modules/${target}.a "; done 
     293      for target in `echo "${list}"`; do printf "${top_srcdir}modules/${target}.a "; done 
    291294    fi 
    292295  fi