Skip to content

Commit

Permalink
bin: build a vlc-osx-static similar to vlc-static, to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fuhrmann committed Jun 21, 2015
1 parent 25f5b20 commit 383a209
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,11 @@ noinst_SCRIPTS = vlc$(EXEEXT)
endif

vlc$(EXEEXT):
if HAVE_DARWIN
$(AM_V_GEN)$(LN_S) -f bin/vlc-osx-static vlc
else
$(AM_V_GEN)$(LN_S) -f bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
endif

TESTS = test/run_vlc.sh
dist_noinst_SCRIPTS += test/run_vlc.sh
Expand Down
10 changes: 10 additions & 0 deletions bin/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
if HAVE_DARWIN
bin_PROGRAMS = vlc-osx
noinst_PROGRAMS = vlc-osx-static
else
bin_PROGRAMS = vlc
noinst_PROGRAMS = vlc-static
Expand Down Expand Up @@ -31,10 +32,19 @@ if HAVE_WIN32
vlc_SOURCES = winvlc.c
noinst_DATA += vlc_win32_rc.rc
endif

if HAVE_DARWIN
vlc_osx_SOURCES = darwinvlc.m
vlc_osx_LDFLAGS = $(LDFLAGS_vlc) -Wl,-framework,CoreFoundation,-framework,Cocoa
vlc_osx_LDADD = ../lib/libvlc.la

vlc_osx_static_SOURCES = $(vlc_osx_SOURCES)
vlc_osx_static_OBJCFLAGS = $(AM_OBJCFLAGS) \
-DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
-DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
$(NULL)
vlc_osx_static_LDFLAGS = $(vlc_osx_LDFLAGS) -static
vlc_osx_static_LDADD = $(vlc_osx_LDADD)
endif

vlc_wrapper_SOURCES = rootwrap.c
Expand Down

0 comments on commit 383a209

Please sign in to comment.