Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libdvdcss
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
libdvdcss
Commits
a7e814e3
Commit
a7e814e3
authored
9 years ago
by
Petri Hintukainen
Browse files
Options
Downloads
Patches
Plain Diff
generate version.h
parent
417a9cb2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile.am
+4
-1
4 additions, 1 deletion
Makefile.am
configure.ac
+16
-1
16 additions, 1 deletion
configure.ac
src/dvdcss/dvdcss.h
+2
-0
2 additions, 0 deletions
src/dvdcss/dvdcss.h
src/dvdcss/version.h.in
+37
-0
37 additions, 0 deletions
src/dvdcss/version.h.in
with
59 additions
and
2 deletions
Makefile.am
+
4
−
1
View file @
a7e814e3
ACLOCAL_AMFLAGS
=
-I
m4
AM_CPPFLAGS
=
-I
$(
top_srcdir
)
/src
-I
$(
top_builddir
)
/src/dvdcss
EXTRA_DIST
=
msvc libdvdcss.spec INSTALL
...
...
@@ -46,7 +47,9 @@ test_dvd_region_LDADD = libdvdcss.la
test_dvd_region_CFLAGS
=
-I
$(
top_srcdir
)
/src
pkgincludedir
=
$(
includedir
)
/dvdcss
pkginclude_HEADERS
=
src/dvdcss/dvdcss.h
pkginclude_HEADERS
=
\
src/dvdcss/dvdcss.h
\
src/dvdcss/version.h
pkgconfigdir
=
$(
libdir
)
/pkgconfig
pkgconfig_DATA
=
src/libdvdcss.pc
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
16
−
1
View file @
a7e814e3
AC_INIT(libdvdcss, 1.3.99, , , https://www.videolan.org/developers/libdvdcss.html)
dnl library version number
m4_define([dvdcss_major], 1)
m4_define([dvdcss_minor], 3)
m4_define([dvdcss_micro], 99)
m4_define([dvdcss_version],[dvdcss_major.dvdcss_minor.dvdcss_micro])
AC_INIT(libdvdcss, dvdcss_version, , , https://www.videolan.org/developers/libdvdcss.html)
AC_CONFIG_SRCDIR([src/libdvdcss.c])
AC_PREREQ(2.50)
...
...
@@ -231,10 +237,19 @@ AM_CONDITIONAL([APIDOC], [test "x$DOXYGEN" != "x"])
AC_PATH_PROG([GIT], [git])
AM_CONDITIONAL([GIT], [test "x$GIT" != "x"])
dnl export library version number
DVDCSS_VERSION_MAJOR=dvdcss_major()
DVDCSS_VERSION_MINOR=dvdcss_minor()
DVDCSS_VERSION_MICRO=dvdcss_micro()
AC_SUBST(DVDCSS_VERSION_MAJOR)
AC_SUBST(DVDCSS_VERSION_MINOR)
AC_SUBST(DVDCSS_VERSION_MICRO)
AC_SUBST(DVDCSS_LDFLAGS)
AC_OUTPUT([
Makefile
libdvdcss.spec
doc/doxygen.cfg
src/libdvdcss.pc
src/dvdcss/version.h
])
This diff is collapsed.
Click to expand it.
src/dvdcss/dvdcss.h
+
2
−
0
View file @
a7e814e3
...
...
@@ -33,6 +33,8 @@
#include
<stdint.h>
#include
"version.h"
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
This diff is collapsed.
Click to expand it.
src/dvdcss/version.h.in
0 → 100644
+
37
−
0
View file @
a7e814e3
/*
* This file is part of libdvdcss
* Copyright (C) 2015 VideoLAN
*
* This file is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This file 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef DVDCSS_VERSION_H_
#define DVDCSS_VERSION_H_
#define DVDCSS_VERSION_CODE(major, minor, micro) \
(((major) * 10000) + \
((minor) * 100) + \
((micro) * 1))
#define DVDCSS_VERSION_MAJOR @DVDCSS_VERSION_MAJOR@
#define DVDCSS_VERSION_MINOR @DVDCSS_VERSION_MINOR@
#define DVDCSS_VERSION_MICRO @DVDCSS_VERSION_MICRO@
#define DVDCSS_VERSION_STRING "@DVDCSS_VERSION_MAJOR@.@DVDCSS_VERSION_MINOR@.@DVDCSS_VERSION_MICRO@"
#define DVDCSS_VERSION \
DVDCSS_VERSION_CODE(DVDCSS_VERSION_MAJOR, DVDCSS_VERSION_MINOR, DVDCSS_VERSION_MICRO)
#endif /* DVDCSS_VERSION_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment