Skip to content

Commit

Permalink
Check for AlbumArtist support in libvlc_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Nov 24, 2014
1 parent e3e5a74 commit e06c0cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeModules/FindLIBVLC.cmake
Expand Up @@ -22,6 +22,15 @@ find_library(LIBVLCCORE_LIBRARY NAMES vlccore libvlccore

set(LIBVLC_VERSION ${PC_LIBVLC_VERSION})

include(CheckCXXSourceCompiles)
check_cxx_source_compiles("
#include <vlc/libvlc.h>
#include <vlc/libvlc_media.h>
int main(int argc, char *argv[]) {
libvlc_meta_t meta = libvlc_meta_AlbumArtist;
}"
HAVE_VLC_ALBUMARTIST)

find_package_handle_standard_args(LibVLC
REQUIRED_VARS LIBVLC_LIBRARY LIBVLCCORE_LIBRARY LIBVLC_INCLUDE_DIR
VERSION_VAR LIBVLC_VERSION
Expand Down
1 change: 1 addition & 0 deletions src/tomahawk/Config.h.in
Expand Up @@ -24,5 +24,6 @@

#cmakedefine TOMAHAWK_FINEGRAINED_MESSAGES
#cmakedefine COMPLEX_TAGLIB_FILENAME
#cmakedefine HAVE_VLC_ALBUMARTIST

#endif // CONFIG_H_IN

0 comments on commit e06c0cb

Please sign in to comment.