Changeset 16c69ade84edabaf8c861f1e4f478ae815f94970

Show
Ignore:
Timestamp:
03/19/08 14:25:34 (2 months ago)
Author:
Sam Hocevar <sam@zoy.org>
git-committer:
Sam Hocevar <sam@zoy.org> 1205933134 +0000
git-parent:

[8b06bdb4caf5b78af5be9e02f59fa4bc4ba0c61a]

git-author:
Sam Hocevar <sam@zoy.org> 1205932689 +0000
Message:

Add a --disable-vlc configure flag to not build VLC.

In some cases (eg. when building binary packages) one only needs libvlc
and libvlc-control and does not wish to build or install VLC binaries.
This --disable-vlc flag saves us from manually removing the unwanted
binaries after "make install".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    r0b446e7 r16c69ad  
    290290bin_SCRIPTS += $(ALIASES) 
    291291CLEANFILES += $(ALIASES) 
     292if BUILD_VLC 
    292293EXTRA_SCRIPTS = $(ALL_ALIASES) 
     294endif 
    293295 
    294296dist_noinst_SCRIPTS += make-alias 
     
    314316    $(MKALIAS) ncurses 
    315317 
     318if BUILD_VLC 
    316319noinst_SCRIPTS = vlc$(EXEEXT) 
     320endif 
    317321 
    318322vlc$(EXEEXT): core 
     
    327331if HAVE_DARWIN 
    328332# Create the MacOS X app 
     333if BUILD_VLC 
    329334noinst_DATA = VLC.app 
     335endif 
    330336# VLC-release.app is the old VLC.app target 
    331337VLC-release.app: vlc 
  • configure.ac

    r97a9d4e r16c69ad  
    57215721    VLC_ADD_LIBS([realaudio],[../../libs/loader/libloader.la]) 
    57225722  ]) 
     5723 
     5724AC_ARG_WITH(,[Components:]) 
     5725 
     5726dnl 
     5727dnl  the VLC binary 
     5728dnl 
     5729AC_ARG_ENABLE(vlc, 
     5730  [  --enable-vlc            build the VLC media player (default enabled)]) 
     5731AM_CONDITIONAL(BUILD_VLC, [test "${enable_vlc}" != "no"]) 
    57235732 
    57245733dnl 
     
    63016310 
    63026311printf " 
    6303 vlc configuration 
     6312libvlc configuration 
    63046313-------------------- 
    6305 vlc version           : ${VERSION} 
     6314version               : ${VERSION} 
    63066315system                : ${SYS} 
    63076316architecture          : ${ARCH} 
     
    63126321test "${enable_optimizations}" = "yes" && printf "optim " 
    63136322test "${enable_release}" = "yes" && printf "release " || printf "devel " 
    6314 echo " 
    6315 vlc aliases           :${ALIASES} 
    6316 plugins/bindings      :${PLUGINS_BINDINGS} 
     6323echo "" 
     6324if test "${enable_vlc}" != "no"; then 
     6325echo "vlc aliases           :${ALIASES}" 
     6326else 
     6327echo "build vlc executable  : no" 
     6328fi 
     6329echo "plugins/bindings      :${PLUGINS_BINDINGS} 
    63176330 
    63186331You can check which modules have been enabled  
  • src/Makefile.am

    r55f3a9f r16c69ad  
    389389############################################################################### 
    390390 
     391if BUILD_VLC 
    391392bin_PROGRAMS = vlc 
    392 #  
     393endif 
     394 
    393395vlc_SOURCES = vlc.c 
    394396vlc_DEPENDENCIES = $(DATA_win32_rc) libvlc.la 
     
    398400vlc_LDADD = $(DATA_win32_rc) libvlc.la $(LTLIBINTL) `$(VLC_CONFIG) -libs vlc` 
    399401 
     402if BUILD_VLC 
    400403vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES) 
    401404    @rm -f vlc$(EXEEXT) 
     
    416419    $(WINDRES) -DVERSION=$(VERSION) -DVERSION_NUMBER=`echo $(VERSION).0.0.0 | sed 's/\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\)[^.]*\.*\([0-9]*\).*/\1,\2,\3,\4/'` --include-dir $(top_srcdir)/share -i $< -o $@ 
    417420endif 
     421endif 
    418422 
    419423###############################################################################