Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b5390911
Commit
b5390911
authored
17 years ago
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SVN revision handling.
It is by design flawed to have phony built source.
parent
8dc109b2
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
19 deletions
+17
-19
src/Makefile.am
src/Makefile.am
+15
-13
src/libvlc-common.c
src/libvlc-common.c
+0
-2
src/libvlc.c
src/libvlc.c
+1
-3
src/libvlc.h
src/libvlc.h
+1
-1
No files found.
src/Makefile.am
View file @
b5390911
###############################################################################
# Automake targets and declarations
###############################################################################
...
...
@@ -10,7 +10,7 @@ SUBDIRS =
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
...
...
@@ -102,11 +102,13 @@ modules/modules.c: modules/builtin.h
###############################################################################
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
`
...
...
@@ -148,12 +150,6 @@ else
lib_LIBRARIES
=
libvlc.a
endif
if
HAVE_WIN32
pic
=
else
pic
=
pic
endif
if
HAVE_WIN32
DATA_noinst_libvlc
=
libvlc
$(LIBEXT)
libvlc
$(LIBEXT)
.a
...
...
@@ -334,11 +330,6 @@ SOURCES_libvlc_control = \
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
...
...
@@ -365,6 +356,13 @@ CLEANFILES += stamp-api
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
###############################################################################
...
...
@@ -387,3 +385,7 @@ test_utf8_LDADD = libvlc.la
test_utf8_CFLAGS
=
$(CFLAGS_tests)
FORCE
:
@
echo
"Generated source cannot be phony. Go away."
>
&2
@
exit
1
.PHONY
:
FORCE
This diff is collapsed.
Click to expand it.
src/libvlc-common.c
View file @
b5390911
...
...
@@ -1830,11 +1830,9 @@ static void Version( void )
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 */
...
...
This diff is collapsed.
Click to expand it.
src/libvlc.c
View file @
b5390911
...
...
@@ -69,13 +69,11 @@ DECLARE_VLC_VERSION( CompileHost, COMPILE_HOST );
DECLARE_VLC_VERSION
(
CompileDomain
,
COMPILE_DOMAIN
);
DECLARE_VLC_VERSION
(
Compiler
,
COMPILER
);
#ifndef HAVE_SHARED_LIBVLC
extern
const
char
psz_vlc_changeset
[];
c
har
const
*
VLC_Changeset
(
void
)
c
onst
char
*
VLC_Changeset
(
void
)
{
return
psz_vlc_changeset
;
}
#endif
/*****************************************************************************
* VLC_Error: strerror() equivalent
...
...
This diff is collapsed.
Click to expand it.
src/libvlc.h
View file @
b5390911
...
...
@@ -34,7 +34,7 @@ extern vlc_object_t *
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)
*****************************************************************************
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment