Changeset 230297 in webkit


Ignore:
Timestamp:
Apr 5, 2018 1:00:49 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Add CMake package search for vpx and libevent libraries
https://bugs.webkit.org/show_bug.cgi?id=184257

Patch by Alejandro G. Castro <alex@igalia.com> on 2018-04-05
Reviewed by Michael Catanzaro.

Add new cmake search files for libevent, vpx and alsa-lib, this
makes a cleaner detection of the libraries.

  • CMakeLists.txt: Use the new cmake find files to detect the

package and add a better error message when the library is not
there.

  • Source/cmake/FindAlsaLib.cmake: Added.
  • Source/cmake/FindLibEvent.cmake: Added.
  • Source/cmake/FindVpx.cmake: Added.
Location:
trunk/Source/ThirdParty/libwebrtc
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/libwebrtc/CMakeLists.txt

    r230157 r230297  
    11
    2 find_library(VPX_LIBRARY vpx)
    3 find_library(EVENT_LIBRARY event)
     2set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
     3
     4find_package(Vpx 1.7.0)
     5if (NOT LIBVPX_FOUND)
     6    message(FATAL_ERROR "libvpx is needed for USE_LIBWEBRTC.")
     7endif ()
     8
     9find_package(LibEvent)
     10if (NOT LIBEVENT_FOUND)
     11    message(FATAL_ERROR "libevent is needed for USE_LIBWEBRTC.")
     12endif ()
     13
     14find_package(AlsaLib)
     15if (NOT ALSALIB_FOUND)
     16    message(FATAL_ERROR "alsa-lib is needed for USE_LIBWEBRTC.")
     17endif ()
    418
    519set(webrtc_SOURCES
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r230227 r230297  
     12018-04-05  Alejandro G. Castro  <alex@igalia.com>
     2
     3        [GTK] Add CMake package search for vpx and libevent libraries
     4        https://bugs.webkit.org/show_bug.cgi?id=184257
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Add new cmake search files for libevent, vpx and alsa-lib, this
     9        makes a cleaner detection of the libraries.
     10
     11        * CMakeLists.txt: Use the new cmake find files to detect the
     12        package and add a better error message when the library is not
     13        there.
     14        * Source/cmake/FindAlsaLib.cmake: Added.
     15        * Source/cmake/FindLibEvent.cmake: Added.
     16        * Source/cmake/FindVpx.cmake: Added.
     17
    1182018-04-03  Youenn Fablet  <youenn@apple.com>
    219
Note: See TracChangeset for help on using the changeset viewer.