Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
25e117fb
Commit
25e117fb
authored
Aug 21, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_version.h: build-time version macros
(cherry picked from commit
20703d1e
)
parent
5ceaa5d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
2 deletions
+64
-2
include/vlc/libvlc_version.h.in
include/vlc/libvlc_version.h.in
+55
-0
src/Makefile.am
src/Makefile.am
+9
-2
No files found.
include/vlc/libvlc_version.h.in
0 → 100644
View file @
25e117fb
/*****************************************************************************
* libvlc_version.h
*****************************************************************************
* Copyright (C) 2010 Rémi Denis-Courmont
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/**
* \file
* This file defines version macros for LibVLC.
* Those macros are primilarly intended for conditional (pre)compilation.
* To get the run-time LibVLC version, use libvlc_get_version() instead
* (the run-time version may be more recent than build-time one, thanks to
* backward binary compatibility).
*
* \version This header file is available in LibVLC 1.1.4 and higher.
*/
#ifndef LIBVLC_VERSION_H
# define LIBVLC_VERSION_H 1
/** LibVLC major version number */
# define LIBVLC_VERSION_MAJOR (@VERSION_MAJOR@)
/** LibVLC minor version number */
# define LIBVLC_VERSION_MINOR (@VERSION_MINOR@)
/** LibVLC revision */
# define LIBVLC_VERSION_REVISION (@VERSION_REVISION@)
# define LIBVLC_VERSION_EXTRA (0)
/** Makes a single integer from a LibVLC version numbers */
# define LIBVLC_VERSION(maj,min,rev,extra) \
((maj << 24) | (min << 16) | (rev << 8) | (extra))
/** LibVLC full version as a single integer (for comparison) */
# define LIBVLC_VERSION_INT \
LIBVLC_VERSION(LIBVLC_VERSION_MAJOR, LIBVLC_VERSION_MINOR, \
LIBVLC_VERSION_EXTRA, LIBVLC_VERSION_EXTRA)
#endif
src/Makefile.am
View file @
25e117fb
...
...
@@ -11,9 +11,12 @@ EXTRA_DIST = extras/COPYING \
libvlc.pc.in
\
vlc-plugin.pc.in
\
libvlc.sym
\
libvlccore.sym
libvlccore.sym
\
../include/vlc/libvlc_version.h.in
BUILT_SOURCES
=
../include/vlc_about.h
BUILT_SOURCES
=
\
$(nodist_pkginclude_HEADERS)
\
../include/vlc_about.h
CLEANFILES
=
$(BUILT_SOURCES)
SUFFIXES
=
.pc.in .pc .rc.in .rc
...
...
@@ -38,6 +41,7 @@ pkginclude_HEADERS = \
../include/vlc/libvlc_structures.h
\
../include/vlc/libvlc_vlm.h
\
$(NULL)
nodist_pkginclude_HEADERS
=
../include/vlc/libvlc_version.h
pluginsinclude_HEADERS
=
\
../include/vlc_access.h
\
...
...
@@ -127,6 +131,9 @@ noinst_HEADERS = \
../include/vlc_windows_interfaces.h
\
$(NULL)
../include/vlc/libvlc_version.h
:
../include/vlc/libvlc_version.h.in $(top_builddir)/config.status
$(SHELL)
$(top_builddir)
/config.status
--file
=
$@
../include/vlc_about.h
:
Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
$(AM_V_at)
rm
-f
--
"
$@
.tmp"
$(AM_V_at)
mkdir
-p
--
../include
...
...
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