Add cmake support for mp4v2

pull/1/head
Slávek Banko 12 years ago
parent 8bad2664cb
commit 5fc2ad73cc

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

@ -222,3 +222,23 @@ if( WITH_KONQSIDEBAR )
tde_message_fatal( "konqsidebarplugin.h are requested, but not found on your system" ) tde_message_fatal( "konqsidebarplugin.h are requested, but not found on your system" )
endif( ) endif( )
endif( ) endif( )
##### check for mp4v2 ###########################
if( WITH_MP4V2 )
check_include_file( "mp4v2/mp4v2.h" MP4V2_H_FOUND )
if( MP4V2_H_FOUND )
set( HAVE_MP4V2_H 1)
else( MP4V2_H_FOUND )
check_include_file( "mp4.h" MP4_H_FOUND )
if( MP4_H_FOUND )
set( HAVE_MP4_H 1)
endif( MP4_H_FOUND )
endif( MP4V2_H_FOUND )
if( HAVE_MP4V2_H OR HAVE_MP4_H )
set( HAVE_MP4V2 1 )
else( )
tde_message_fatal( "MP4V2 support was requested, but not found on your system" )
endif( )
endif( )

@ -10,15 +10,16 @@
################################################# #################################################
include_directories( include_directories(
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR} ${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
${TAGLIB_INCLUDE_DIRS} ${TAGLIB_INCLUDE_DIRS}
) )
##### tagmp4 (static) ########################### ##### tagm4a (static) ###########################
tde_add_library( tagmp4 STATIC_PIC tde_add_library( tagm4a STATIC_PIC
SOURCES SOURCES
taglib_mp4filetyperesolver.cpp mp4file.cpp mp4itunestag.cpp mp4isobox.cpp taglib_mp4filetyperesolver.cpp mp4file.cpp mp4itunestag.cpp mp4isobox.cpp
mp4isofullbox.cpp mp4skipbox.cpp mp4moovbox.cpp mp4mvhdbox.cpp mp4isofullbox.cpp mp4skipbox.cpp mp4moovbox.cpp mp4mvhdbox.cpp

@ -0,0 +1,33 @@
#################################################
#
# (C) 2010-2013 Darrell Anderson
# humanreadable (AT) yahoo.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${TAGLIB_INCLUDE_DIRS}
${MP4V2_INCLUDE_DIRS}
)
link_directories(
${MP4V2_LIBRARY_DIRS}
)
##### tagmp4 (static) ###########################
tde_add_library( tagmp4 STATIC_PIC
SOURCES
mp4file.cpp mp4file.h mp4properties.cpp mp4properties.h mp4tag.cpp mp4tag.h
taglib_mp4filetyperesolver.cpp taglib_mp4filetyperesolver.h
LINK
mp4v2
)

@ -12,8 +12,10 @@
#cmakedefine HAVE_ITDB_MEDIATYPE 1 #cmakedefine HAVE_ITDB_MEDIATYPE 1
#cmakedefine HAVE_LIBGPOD_060 1 #cmakedefine HAVE_LIBGPOD_060 1
#cmakedefine HAVE_MP4V2 1 #cmakedefine HAVE_MP4V2 1
#cmakedefine HAVE_MP4V2_H 1
#cmakedefine HAVE_MP4_H 1
#cmakedefine HAVE_TUNEPIMP 1 #cmakedefine HAVE_TUNEPIMP 1
#cmakedefine TAGLIB_15 1 #cmakedefine TAGLIB_15 1
#cmakedefine HAVE_QGLWIDGET 1 #cmakedefine HAVE_QGLWIDGET 1
#cmakedefine HAVE_OLD_RUBY @HAVE_OLD_RUBY@ #cmakedefine HAVE_OLD_RUBY @HAVE_OLD_RUBY@

Loading…
Cancel
Save