mirror of
https://github.com/videolan/vlc.git
synced 2024-11-28 04:14:07 +08:00
Build a separate non-installable VLC for easier debugging
This commit is contained in:
parent
138c463bc9
commit
fae0cf510d
@ -392,7 +392,7 @@ endif
|
||||
vlc$(EXEEXT): Makefile.am
|
||||
rm -f -- vlc vlc.tmp
|
||||
echo '#! /bin/sh' > vlc.tmp
|
||||
echo 'exec "$$(dirname "$$0")/bin/vlc$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
|
||||
echo 'exec "$$(dirname "$$0")/bin/vlc-static$(EXEEXT)" "--plugin-path=$$(dirname "$$0")/modules" "$$@"' >> vlc.tmp
|
||||
chmod +x vlc.tmp
|
||||
mv -f -- vlc.tmp vlc
|
||||
|
||||
|
@ -1,8 +1,12 @@
|
||||
# Building vlc
|
||||
#
|
||||
bin_PROGRAMS = vlc
|
||||
noinst_PROGRAMS = vlc-static
|
||||
EXTRA_PROGRAMS = vlc-wrapper
|
||||
|
||||
AM_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
|
||||
|
||||
|
||||
if !HAVE_WIN32
|
||||
bin_PROGRAMS += vlc-wrapper
|
||||
endif
|
||||
@ -17,14 +21,15 @@ vlc_wrapper_SOURCES = rootwrap.c
|
||||
|
||||
vlc_DEPENDENCIES = ../src/libvlc.la
|
||||
|
||||
vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
|
||||
vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc`
|
||||
# vlc needs libvlccore for locale conversion
|
||||
vlc_LDADD = ../src/libvlc.la ../src/libvlccore.la $(LTLIBINTL) \
|
||||
`$(VLC_CONFIG) -libs vlc`
|
||||
|
||||
#vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_DEPENDENCIES)
|
||||
# $(LINK) $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS)
|
||||
vlc_static_SOURCES = $(vlc_SOURCES)
|
||||
vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
|
||||
vlc_static_LDADD = $(vlc_LDADD)
|
||||
vlc_static_LDFLAGS = $(vlc_LDFLAGS) -no-install -static
|
||||
|
||||
if HAVE_WIN32
|
||||
vlc_LDADD += vlc_win32_rc.$(OBJEXT)
|
||||
|
Loading…
Reference in New Issue
Block a user