Browse Source

Add cmake support for mp4v2

tags/r14.0.0
Slávek Banko 6 years ago
parent
commit
5fc2ad73cc

+ 1
- 0
CMakeLists.txt View File

@@ -54,6 +54,7 @@ option( WITH_NJB "Enable njb support" OFF )
54 54
 option( WITH_MTP "Enable mtp support" OFF )
55 55
 option( WITH_RIOKARMA "Enable riokarma support" OFF )
56 56
 option( WITH_DAAP "Enable daap support" OFF )
57
+option( WITH_MP4V2 "Enable mp4v2 support" OFF )
57 58
 option( WITH_INOTIFY "Enable inotify support" OFF )
58 59
 
59 60
 

+ 20
- 0
ConfigureChecks.cmake View File

@@ -222,3 +222,23 @@ if( WITH_KONQSIDEBAR )
222 222
     tde_message_fatal( "konqsidebarplugin.h are requested, but not found on your system" )
223 223
   endif( )
224 224
 endif( )
225
+
226
+##### check for mp4v2 ###########################
227
+
228
+if( WITH_MP4V2 )
229
+  check_include_file( "mp4v2/mp4v2.h" MP4V2_H_FOUND )
230
+  if( MP4V2_H_FOUND )
231
+    set( HAVE_MP4V2_H 1)
232
+  else( MP4V2_H_FOUND )
233
+    check_include_file( "mp4.h" MP4_H_FOUND )
234
+    if( MP4_H_FOUND )
235
+      set( HAVE_MP4_H 1)
236
+    endif( MP4_H_FOUND )
237
+  endif( MP4V2_H_FOUND )
238
+
239
+  if( HAVE_MP4V2_H OR HAVE_MP4_H )
240
+    set( HAVE_MP4V2 1 )
241
+  else( )
242
+    tde_message_fatal( "MP4V2 support was requested, but not found on your system" )
243
+  endif( )
244
+endif( )

+ 3
- 2
amarok/src/metadata/m4a/CMakeLists.txt View File

@@ -10,15 +10,16 @@
10 10
 #################################################
11 11
 
12 12
 include_directories(
13
+  ${CMAKE_BINARY_DIR}
13 14
   ${TDE_INCLUDE_DIR}
14 15
   ${TQT_INCLUDE_DIRS}
15 16
   ${TAGLIB_INCLUDE_DIRS}
16 17
 )
17 18
 
18 19
 
19
-##### tagmp4 (static) ###########################
20
+##### tagm4a (static) ###########################
20 21
 
21
-tde_add_library( tagmp4 STATIC_PIC
22
+tde_add_library( tagm4a STATIC_PIC
22 23
   SOURCES
23 24
     taglib_mp4filetyperesolver.cpp mp4file.cpp mp4itunestag.cpp mp4isobox.cpp
24 25
     mp4isofullbox.cpp mp4skipbox.cpp mp4moovbox.cpp mp4mvhdbox.cpp

+ 33
- 0
amarok/src/metadata/mp4/CMakeLists.txt View File

@@ -0,0 +1,33 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2013 Darrell Anderson
4
+#  humanreadable (AT) yahoo.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${CMAKE_BINARY_DIR}
14
+  ${TDE_INCLUDE_DIR}
15
+  ${TQT_INCLUDE_DIRS}
16
+  ${TAGLIB_INCLUDE_DIRS}
17
+  ${MP4V2_INCLUDE_DIRS}
18
+)
19
+
20
+link_directories(
21
+  ${MP4V2_LIBRARY_DIRS}
22
+)
23
+
24
+
25
+##### tagmp4 (static) ###########################
26
+
27
+tde_add_library( tagmp4 STATIC_PIC
28
+  SOURCES
29
+    mp4file.cpp mp4file.h mp4properties.cpp mp4properties.h mp4tag.cpp mp4tag.h
30
+    taglib_mp4filetyperesolver.cpp taglib_mp4filetyperesolver.h
31
+  LINK
32
+    mp4v2
33
+)

+ 3
- 1
config.h.cmake View File

@@ -12,8 +12,10 @@
12 12
 #cmakedefine HAVE_ITDB_MEDIATYPE 1
13 13
 #cmakedefine HAVE_LIBGPOD_060 1
14 14
 #cmakedefine HAVE_MP4V2 1
15
+#cmakedefine HAVE_MP4V2_H 1
16
+#cmakedefine HAVE_MP4_H 1
15 17
 #cmakedefine HAVE_TUNEPIMP 1
16 18
 
17 19
 #cmakedefine TAGLIB_15 1
18 20
 #cmakedefine HAVE_QGLWIDGET 1
19
-#cmakedefine HAVE_OLD_RUBY @HAVE_OLD_RUBY@
21
+#cmakedefine HAVE_OLD_RUBY @HAVE_OLD_RUBY@

Loading…
Cancel
Save