6 noinst_PROGRAMS = vlc-osx-static
9 noinst_PROGRAMS = vlc-static
12 EXTRA_DIST = vlc_win32_rc.rc.in
13 CLEANFILES = vlc_win32_rc.rc
17 AM_CPPFLAGS = $(CPPFLAGS_vlc)
18 AM_CFLAGS = $(CFLAGS_vlc)
20 AM_CPPFLAGS += -DHAVE_DBUS
26 vlc_LDADD = ../lib/libvlc.la
27 vlc_CPPFLAGS = $(AM_CPPFLAGS)
29 vlc_SOURCES = vlc.c override.c
32 vlc_SOURCES = winvlc.c
33 vlc_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
34 vlc_LDFLAGS = -mwindows
35 vlc_LDADD += vlc_win32_rc.$(OBJEXT)
36 libbreakpad_wrapper_la_SOURCES = breakpad.cpp
37 libbreakpad_wrapper_la_LIBADD = $(BREAKPAD_LIBS)
38 libbreakpad_wrapper_la_LDFLAGS = -static
39 libbreakpad_wrapper_la_CXXFLAGS = $(AM_CXXFLAGS) $(BREAKPAD_CFLAGS) -DBREAKPAD_URL=\"@BREAKPAD_URL@\"
41 noinst_LTLIBRARIES = libbreakpad_wrapper.la
42 vlc_LDADD += libbreakpad_wrapper.la -lstdc++ -lwininet
43 vlc_DEPENDENCIES += libbreakpad_wrapper.la
44 vlc_CPPFLAGS += -DHAVE_BREAKPAD
48 vlc_osx_SOURCES = darwinvlc.m
49 vlc_osx_LDFLAGS = $(LDFLAGS_vlc) -Wl,-framework,CoreFoundation,-framework,Cocoa
50 vlc_osx_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/lib/"
51 vlc_osx_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/plugins/"
53 vlc_osx_LDFLAGS += -Wl,-framework,Breakpad
54 vlc_osx_OBJCFLAGS = -F$(CONTRIB_DIR)/Frameworks
55 vlc_osx_CPPFLAGS = -DHAVE_BREAKPAD
57 vlc_osx_LDADD = ../lib/libvlc.la
59 vlc_osx_static_SOURCES = $(vlc_osx_SOURCES)
60 vlc_osx_static_OBJCFLAGS = $(AM_OBJCFLAGS) \
61 -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
62 -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
64 vlc_osx_static_LDFLAGS = $(vlc_osx_LDFLAGS) -static
65 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../lib/.libs/"
66 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../src/.libs/"
67 vlc_osx_static_LDADD = $(vlc_osx_LDADD)
69 vlc_osx_static_LDFLAGS += -Wl,-framework,Breakpad
70 vlc_osx_static_OBJCFLAGS += -F$(CONTRIB_DIR)/Frameworks
71 vlc_osx_static_CPPFLAGS = -DHAVE_BREAKPAD
76 # Static (debug) VLC executable
78 vlc_static_SOURCES = $(vlc_SOURCES)
79 vlc_static_CFLAGS = $(AM_CFLAGS) \
80 -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
81 -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
83 vlc_static_CPPFLAGS = $(vlc_CPPFLAGS)
84 vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
85 vlc_static_LDADD = $(vlc_LDADD)
86 vlc_static_LDFLAGS = $(vlc_LDFLAGS) -no-install -static
94 bin_PROGRAMS += vlc-wrapper
98 vlc_wrapper_SOURCES = rootwrap.c
99 vlc_wrapper_LDADD = $(SOCKET_LIBS)
101 vlc_win32_rc.rc: $(top_builddir)/config.status vlc_win32_rc.rc.in
102 cd "$(top_builddir)" && \
103 $(SHELL) ./config.status --file="bin/$@"
105 vlc_win32_rc.$(OBJEXT): vlc_win32_rc.rc $(top_srcdir)/extras/package/win32/vlc.exe.manifest
106 $(WINDRES) --include-dir $(top_srcdir)/share/icons --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
109 # Plug-ins cache generator
111 if HAVE_DYNAMIC_PLUGINS
112 pkglibexec_PROGRAMS = vlc-cache-gen
114 vlc_cache_gen_SOURCES = cachegen.c
115 vlc_cache_gen_LDADD = \
117 ../compat/libcompat.la \
120 vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
121 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
127 if HAVE_DYNAMIC_PLUGINS
128 noinst_DATA = ../modules/plugins.dat
130 MOSTLYCLEANFILES = $(noinst_DATA)
135 cd $(bindir); mv vlc-osx vlc
140 .PHONY: ../modules/plugins.dat
142 ../modules/plugins.dat: vlc-cache-gen$(EXEEXT)
143 $(AM_V_at)rm -f ../modules/plugins.dat
144 $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
145 ./vlc-cache-gen$(EXEEXT) `realpath ../modules` ; \
147 echo "Cross-compilation: cache generation skipped!" ; \