Re: Re: Re: Re: git modules and cmake/admin submodules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michele Calgaro via trinity-devel wrote:

> ok, in that case you probably need to make changes to the cmake files in
> kplayer, not to the common module. So those chagnes would go in the same
> PR as kplayer. Not sure I had misunderstood your original statement "I
> made changes to cmake" :-) Cheers
> Michele

Hi Michele,
I changed the CMakeLists.txt to include FindLibDvd. I was thinking that
FindLibDvd can be added somehow to kplayers cmake modules.



#################################################
#
#  (C) 2020 xxxxxxxxxxxxxxxxxxxxxx
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

macro( tqt_message )
    message( STATUS "${ARGN}" )
endmacro( )

set(_dvdlibs dvdread dvdnav)
set(_handlevars LIBDVD_INCLUDE_DIRS DVDREAD_LIBRARY DVDNAV_LIBRARY)

if(WITH_ALL_OPTIONS)
    set(WITH_DVDCSS "ON")
endif()

if(WITH_DVDCSS)
	list(APPEND _dvdlibs libdvdcss)
	list(APPEND _handlevars DVDCSS_LIBRARY LIBDVDCSS_INCLUDE_DIRS )
endif()

if(PKG_CONFIG_FOUND)
	pkg_check_modules(PC_DVD ${_dvdlibs} QUIET)
endif()

find_path(LIBDVD_INCLUDE_DIRS dvdnav/dvdnav.h PATHS ${PC_DVD_INCLUDE_DIRS})
find_library(DVDREAD_LIBRARY NAMES dvdread libdvdread PATHS ${PC_DVD_dvdread_LIBDIR})
find_library(DVDNAV_LIBRARY NAMES dvdnav libdvdnav PATHS ${PC_DVD_dvdnav_LIBDIR})

if(WITH_DVDCSS)
    find_path(LIBDVDCSS_INCLUDE_DIRS dvdcss/dvdcss.h PATHS ${PC_DVD_INCLUDE_DIRS})
    find_library(DVDCSS_LIBRARY NAMES dvdcss libdvdcss PATHS ${PC_DVD_libdvdcss_LIBDIR})
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibDvd REQUIRED_VARS ${_handlevars})
if(LIBDVD_FOUND)
    list(APPEND LIBDVD_LIBRARIES ${DVDREAD_LIBRARY})
    list(APPEND LIBDVD_LIBRARIES ${DVDNAV_LIBRARY})
    if(WITH_DVDCSS)
        list(APPEND LIBDVD_LIBRARIES ${DVDCSS_LIBRARY})
    endif()
    foreach(_dvd_lib ${LIBDVD_LIBRARIES})
        tqt_message( "       ${_dvd_lib}" )
    endforeach()
else()
    tde_message_fatal( "  DVD libraries not found" )
endif()

    

---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting

[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux