-
+###############################################################################
# Automake targets and declarations
###############################################################################
EXTRA_DIST = extras/COPYING modules/builtin.h.in libvlc.sym
BUILT_SOURCES = $(CLEANFILES)
-CLEANFILES = modules/builtin.h
+CLEANFILES = modules/builtin.h misc/revision.c
MOSTLYCLEANFILES = $(DATA_noinst_libvlc)
TOOLBOX = srcdir=$(top_srcdir) builddir=$(top_builddir) $(top_srcdir)/toolbox
###############################################################################
libvlc_a_SOURCES = $(SOURCES_libvlc) $(SOURCES_libvlc_control)
+nodist_libvlc_a_SOURCES = misc/revision.c
libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags libvlc pic` -DUSE_BUILTINS
libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc pic`
libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc pic`
libvlc_la_SOURCES = $(SOURCES_libvlc)
+nodist_libvlc_la_SOURCES = misc/revision.c
libvlc_la_LIBADD = $(INCLUDED_LIBINTL)
libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
lib_LIBRARIES = libvlc.a
endif
-if HAVE_WIN32
-pic =
-else
-pic = pic
-endif
-
if HAVE_WIN32
DATA_noinst_libvlc = libvlc$(LIBEXT) libvlc$(LIBEXT).a
if !USE_LIBTOOL
if !HAVE_WIN32
-nodist_libvlc_a_SOURCES = misc/version.c
-CLEANFILES += misc/version.c
-
-misc/version.c: FORCE
- $(TOOLBOX) --update-version
endif
# Install shared libvlc
endif
endif
+misc/revision.c:
+ rm -f $@ $@.tmp
+ echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp
+ REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \
+ echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp
+ mv -f $@.tmp $@
+
###############################################################################
# Unit/regression test
###############################################################################
test_utf8_CFLAGS = $(CFLAGS_tests)
FORCE:
+ @echo "Generated source cannot be phony. Go away." >&2
+ @exit 1
+
+.PHONY: FORCE
utf8_fprintf( stdout, _("Compiled by %s@%s.%s\n"),
VLC_CompileBy(), VLC_CompileHost(), VLC_CompileDomain() );
utf8_fprintf( stdout, _("Compiler: %s\n"), VLC_Compiler() );
-#ifndef HAVE_SHARED_LIBVLC
if( strcmp( VLC_Changeset(), "exported" ) )
utf8_fprintf( stdout, _("Based upon svn changeset [%s]\n"),
VLC_Changeset() );
-#endif
utf8_fprintf( stdout, LICENSE_MSG );
#ifdef WIN32 /* Pause the console because it's destroyed when we exit */
DECLARE_VLC_VERSION( CompileDomain, COMPILE_DOMAIN );
DECLARE_VLC_VERSION( Compiler, COMPILER );
-#ifndef HAVE_SHARED_LIBVLC
extern const char psz_vlc_changeset[];
-char const * VLC_Changeset( void )
+const char* VLC_Changeset( void )
{
return psz_vlc_changeset;
}
-#endif
/*****************************************************************************
* VLC_Error: strerror() equivalent
vlc_custom_create (vlc_object_t *p_this, size_t i_size, int i_type,
const char *psz_type);
-#if 0
+#if 1
/*****************************************************************************
* libvlc_global_data_t (global variable)
*****************************************************************************