Changeset b5390911cbc2a5f1f791f386d459d7dc5a55fc4b
- Timestamp:
- 20/05/07 10:38:20
(1 year ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1179650300 +0000
- git-parent:
[8dc109b26259669a7a76a25c7ca2a12827de5d07]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1179650300 +0000
- Message:
Fix SVN revision handling.
It is by design flawed to have phony built source.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8dc109b |
rb539091 |
|
| 1 | | |
|---|
| | 1 | ############################################################################### |
|---|
| 2 | 2 | # Automake targets and declarations |
|---|
| 3 | 3 | ############################################################################### |
|---|
| … | … | |
| 11 | 11 | |
|---|
| 12 | 12 | BUILT_SOURCES = $(CLEANFILES) |
|---|
| 13 | | CLEANFILES = modules/builtin.h |
|---|
| | 13 | CLEANFILES = modules/builtin.h misc/revision.c |
|---|
| 14 | 14 | MOSTLYCLEANFILES = $(DATA_noinst_libvlc) |
|---|
| 15 | 15 | |
|---|
| … | … | |
| 103 | 103 | |
|---|
| 104 | 104 | libvlc_a_SOURCES = $(SOURCES_libvlc) $(SOURCES_libvlc_control) |
|---|
| | 105 | nodist_libvlc_a_SOURCES = misc/revision.c |
|---|
| 105 | 106 | libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags libvlc pic` -DUSE_BUILTINS |
|---|
| 106 | 107 | libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc pic` |
|---|
| … | … | |
| 108 | 109 | |
|---|
| 109 | 110 | libvlc_la_SOURCES = $(SOURCES_libvlc) |
|---|
| | 111 | nodist_libvlc_la_SOURCES = misc/revision.c |
|---|
| 110 | 112 | libvlc_la_LIBADD = $(INCLUDED_LIBINTL) |
|---|
| 111 | 113 | libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` |
|---|
| … | … | |
| 147 | 149 | else |
|---|
| 148 | 150 | lib_LIBRARIES = libvlc.a |
|---|
| 149 | | endif |
|---|
| 150 | | |
|---|
| 151 | | if HAVE_WIN32 |
|---|
| 152 | | pic = |
|---|
| 153 | | else |
|---|
| 154 | | pic = pic |
|---|
| 155 | 151 | endif |
|---|
| 156 | 152 | |
|---|
| … | … | |
| 335 | 331 | if !USE_LIBTOOL |
|---|
| 336 | 332 | if !HAVE_WIN32 |
|---|
| 337 | | nodist_libvlc_a_SOURCES = misc/version.c |
|---|
| 338 | | CLEANFILES += misc/version.c |
|---|
| 339 | | |
|---|
| 340 | | misc/version.c: FORCE |
|---|
| 341 | | $(TOOLBOX) --update-version |
|---|
| 342 | 333 | endif |
|---|
| 343 | 334 | |
|---|
| … | … | |
| 366 | 357 | endif |
|---|
| 367 | 358 | |
|---|
| | 359 | misc/revision.c: |
|---|
| | 360 | rm -f $@ $@.tmp |
|---|
| | 361 | echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > $@.tmp |
|---|
| | 362 | REVISION="$$(LANG=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)" ; \ |
|---|
| | 363 | echo "const char psz_vlc_changeset[] = \"$$REVISION\";" >> $@.tmp |
|---|
| | 364 | mv -f $@.tmp $@ |
|---|
| | 365 | |
|---|
| 368 | 366 | ############################################################################### |
|---|
| 369 | 367 | # Unit/regression test |
|---|
| … | … | |
| 388 | 386 | |
|---|
| 389 | 387 | FORCE: |
|---|
| | 388 | @echo "Generated source cannot be phony. Go away." >&2 |
|---|
| | 389 | @exit 1 |
|---|
| | 390 | |
|---|
| | 391 | .PHONY: FORCE |
|---|
| r7b0773e |
rb539091 |
|
| 1831 | 1831 | VLC_CompileBy(), VLC_CompileHost(), VLC_CompileDomain() ); |
|---|
| 1832 | 1832 | utf8_fprintf( stdout, _("Compiler: %s\n"), VLC_Compiler() ); |
|---|
| 1833 | | #ifndef HAVE_SHARED_LIBVLC |
|---|
| 1834 | 1833 | if( strcmp( VLC_Changeset(), "exported" ) ) |
|---|
| 1835 | 1834 | utf8_fprintf( stdout, _("Based upon svn changeset [%s]\n"), |
|---|
| 1836 | 1835 | VLC_Changeset() ); |
|---|
| 1837 | | #endif |
|---|
| 1838 | 1836 | utf8_fprintf( stdout, LICENSE_MSG ); |
|---|
| 1839 | 1837 | |
|---|
| r9025fab |
rb539091 |
|
| 70 | 70 | DECLARE_VLC_VERSION( Compiler, COMPILER ); |
|---|
| 71 | 71 | |
|---|
| 72 | | #ifndef HAVE_SHARED_LIBVLC |
|---|
| 73 | 72 | extern const char psz_vlc_changeset[]; |
|---|
| 74 | | char const * VLC_Changeset( void ) |
|---|
| | 73 | const char* VLC_Changeset( void ) |
|---|
| 75 | 74 | { |
|---|
| 76 | 75 | return psz_vlc_changeset; |
|---|
| 77 | 76 | } |
|---|
| 78 | | #endif |
|---|
| 79 | 77 | |
|---|
| 80 | 78 | /***************************************************************************** |
|---|
| rc8fc905 |
rb539091 |
|
| 35 | 35 | const char *psz_type); |
|---|
| 36 | 36 | |
|---|
| 37 | | #if 0 |
|---|
| | 37 | #if 1 |
|---|
| 38 | 38 | /***************************************************************************** |
|---|
| 39 | 39 | * libvlc_global_data_t (global variable) |
|---|