5 noinst_PROGRAMS = vlc-osx-static
8 noinst_PROGRAMS = vlc-static
11 vlclib_PROGRAMS = vlc-cache-gen
12 EXTRA_PROGRAMS = vlc-wrapper
13 EXTRA_DIST = vlc_win32_rc.rc.in
17 AM_CPPFLAGS = $(CPPFLAGS_vlc)
18 AM_CFLAGS = $(CFLAGS_vlc)
20 AM_CPPFLAGS += -DHAVE_DBUS
25 bin_PROGRAMS += vlc-wrapper
27 vlc_SOURCES = vlc.c override.c
30 EXTRA_vlc_SOURCES = vlc.c winvlc.c
32 vlc_SOURCES = winvlc.c
33 noinst_DATA += vlc_win32_rc.rc
37 vlc_osx_SOURCES = darwinvlc.m
38 vlc_osx_LDFLAGS = $(LDFLAGS_vlc) -Wl,-framework,CoreFoundation,-framework,Cocoa
39 vlc_osx_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/lib/"
40 vlc_osx_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/plugins/"
42 vlc_osx_LDFLAGS += -Wl,-framework,Breakpad
43 vlc_osx_OBJCFLAGS = -F$(CONTRIB_DIR)/Frameworks
45 vlc_osx_LDADD = ../lib/libvlc.la
47 vlc_osx_static_SOURCES = $(vlc_osx_SOURCES)
48 vlc_osx_static_OBJCFLAGS = $(AM_OBJCFLAGS) \
49 -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
50 -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
52 vlc_osx_static_LDFLAGS = $(vlc_osx_LDFLAGS) -static
53 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../lib/.libs/"
54 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../src/.libs/"
55 vlc_osx_static_LDADD = $(vlc_osx_LDADD)
57 vlc_osx_static_LDFLAGS += -Wl,-framework,Breakpad
58 vlc_osx_static_OBJCFLAGS += -F$(CONTRIB_DIR)/Frameworks
62 vlc_wrapper_SOURCES = rootwrap.c
63 vlc_wrapper_LDADD = $(SOCKET_LIBS)
65 vlc_LDFLAGS = $(LDFLAGS_vlc)
66 vlc_LDADD = ../lib/libvlc.la $(LIBPTHREAD)
68 vlc_static_SOURCES = $(vlc_SOURCES)
69 vlc_static_CFLAGS = $(AM_CFLAGS) \
70 -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
71 -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
73 vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
74 vlc_static_LDADD = $(vlc_LDADD)
75 vlc_static_LDFLAGS = $(vlc_LDFLAGS)
78 vlc_LDADD += -lpsapi vlc_win32_rc.$(OBJEXT)
79 vlc_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
82 vlc_static_LDFLAGS += -no-install -static
85 vlc_win32_rc.rc: $(top_builddir)/config.status vlc_win32_rc.rc.in
86 cd "$(top_builddir)" && \
87 $(SHELL) ./config.status --file="bin/$@"
89 vlc_win32_rc.$(OBJEXT): vlc_win32_rc.rc $(top_srcdir)/extras/package/win32/vlc.exe.manifest
90 $(WINDRES) --include-dir $(top_srcdir)/share/icons --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
92 vlc_cache_gen_SOURCES = cachegen.c
93 vlc_cache_gen_LDADD = \
95 ../compat/libcompat.la \
98 vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
99 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
105 noinst_DATA += ../modules/plugins.dat
106 MOSTLYCLEANFILES = $(noinst_DATA)
110 cd $(bindir); mv vlc-osx vlc
114 .PHONY: ../modules/plugins.dat
116 ../modules/plugins.dat: vlc-cache-gen$(EXEEXT)
117 $(AM_V_at)rm -f ../modules/plugins.dat
118 $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
119 ./vlc-cache-gen$(EXEEXT) `realpath ../modules` ; \
121 echo "Cross-compilation: cache generation skipped!" ; \