Browse code

postproc: Create version.h header

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

jamal authored on 2012/09/27 23:12:18
Showing 4 changed files
... ...
@@ -4236,7 +4236,7 @@ fi
4236 4236
     eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
4237 4237
 }
4238 4238
 
4239
-get_version_old LIBPOSTPROC libpostproc/postprocess.h
4239
+get_version_old LIBPOSTPROC libpostproc/version.h
4240 4240
 get_version_old LIBSWRESAMPLE libswresample/swresample.h
4241 4241
 
4242 4242
 get_version libavcodec
... ...
@@ -3,6 +3,7 @@ include $(SUBDIR)../config.mak
3 3
 NAME = postproc
4 4
 FFLIBS = avutil
5 5
 
6
-HEADERS = postprocess.h
6
+HEADERS = postprocess.h        \
7
+          version.h            \
7 8
 
8 9
 OBJS = postprocess.o
... ...
@@ -27,23 +27,7 @@
27 27
  *     external postprocessing API
28 28
  */
29 29
 
30
-#include "libavutil/avutil.h"
31
-
32
-#ifndef LIBPOSTPROC_VERSION_MAJOR
33
-#define LIBPOSTPROC_VERSION_MAJOR 52
34
-#define LIBPOSTPROC_VERSION_MINOR  0
35
-#define LIBPOSTPROC_VERSION_MICRO 100
36
-#endif
37
-
38
-#define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \
39
-                                               LIBPOSTPROC_VERSION_MINOR, \
40
-                                               LIBPOSTPROC_VERSION_MICRO)
41
-#define LIBPOSTPROC_VERSION     AV_VERSION(LIBPOSTPROC_VERSION_MAJOR, \
42
-                                           LIBPOSTPROC_VERSION_MINOR, \
43
-                                           LIBPOSTPROC_VERSION_MICRO)
44
-#define LIBPOSTPROC_BUILD       LIBPOSTPROC_VERSION_INT
45
-
46
-#define LIBPOSTPROC_IDENT       "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
30
+#include "libpostproc/version.h"
47 31
 
48 32
 /**
49 33
  * Return the LIBPOSTPROC_VERSION_INT constant.
50 34
new file mode 100644
... ...
@@ -0,0 +1,47 @@
0
+/*
1
+ * Version macros.
2
+ *
3
+ * This file is part of FFmpeg.
4
+ *
5
+ * FFmpeg is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * FFmpeg is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with FFmpeg; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ */
19
+
20
+#ifndef POSTPROC_POSTPROCESS_VERSION_H
21
+#define POSTPROC_POSTPROCESS_VERSION_H
22
+
23
+/**
24
+ * @file
25
+ * Libpostproc version macros
26
+ */
27
+
28
+#include "libavutil/avutil.h"
29
+
30
+#ifndef LIBPOSTPROC_VERSION_MAJOR
31
+#define LIBPOSTPROC_VERSION_MAJOR 52
32
+#define LIBPOSTPROC_VERSION_MINOR  1
33
+#define LIBPOSTPROC_VERSION_MICRO 100
34
+#endif
35
+
36
+#define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \
37
+                                               LIBPOSTPROC_VERSION_MINOR, \
38
+                                               LIBPOSTPROC_VERSION_MICRO)
39
+#define LIBPOSTPROC_VERSION     AV_VERSION(LIBPOSTPROC_VERSION_MAJOR, \
40
+                                           LIBPOSTPROC_VERSION_MINOR, \
41
+                                           LIBPOSTPROC_VERSION_MICRO)
42
+#define LIBPOSTPROC_BUILD       LIBPOSTPROC_VERSION_INT
43
+
44
+#define LIBPOSTPROC_IDENT       "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
45
+
46
+#endif /* POSTPROC_POSTPROCESS_VERSION_H */