mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 11:15:13 +00:00
Remove old CMake modules
This commit is contained in:
parent
c5c86b729b
commit
6d5a20ee0a
3 changed files with 0 additions and 134 deletions
|
|
@ -1,60 +0,0 @@
|
||||||
# - Try to find LibWebRTC
|
|
||||||
# Once done this will define
|
|
||||||
# LIBWEBRTC_FOUND - System has LibWebRTC
|
|
||||||
# LIBWEBRTC_INCLUDE_DIRS - The LibWebRTC include directories
|
|
||||||
# LIBWEBRTC_LIBRARIES - The libraries needed to use LibWebRTC
|
|
||||||
# LIBWEBRTC_DEFINITIONS - Compiler switches required for using LibWebRTC
|
|
||||||
|
|
||||||
if (LibWebRTC_FIND_QUIETLY)
|
|
||||||
set(_FIND_FLAGS QUIET)
|
|
||||||
endif (LibWebRTC_FIND_QUIETLY)
|
|
||||||
|
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
||||||
find_package(Threads REQUIRED ${_FIND_FLAGS})
|
|
||||||
|
|
||||||
if (APPLE)
|
|
||||||
find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
|
|
||||||
find_library(COREAUDIO_LIBRARY CoreAudio)
|
|
||||||
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
|
|
||||||
find_library(COREGRAPHICS_LIBRARY CoreGraphics)
|
|
||||||
find_library(FOUNDATION_LIBRARY Foundation)
|
|
||||||
elseif (UNIX)
|
|
||||||
find_package(X11 REQUIRED ${_FIND_FLAGS})
|
|
||||||
endif (APPLE)
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
set(LIBWEBRTC_DEFINITIONS -DWEBRTC_WIN -DNOMINMAX)
|
|
||||||
elseif (UNIX)
|
|
||||||
set(LIBWEBRTC_DEFINITIONS -DWEBRTC_POSIX -std=gnu++0x -D_GLIBCXX_USE_CXX11_ABI=0)
|
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
find_path(LIBWEBRTC_INCLUDE_DIR libwebrtc.h
|
|
||||||
HINTS ${PC_LIBXML_INCLUDEDIR} ${PC_LIBXML_INCLUDE_DIRS}
|
|
||||||
PATH_SUFFIXES libwebrtc)
|
|
||||||
|
|
||||||
find_library(LIBWEBRTC_LIBRARY NAMES webrtc
|
|
||||||
HINTS ${PC_LIBXML_LIBDIR} ${PC_LIBXML_LIBRARY_DIRS})
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(LibWebRTC DEFAULT_MSG
|
|
||||||
LIBWEBRTC_LIBRARY LIBWEBRTC_INCLUDE_DIR)
|
|
||||||
|
|
||||||
if (LIBWEBRTC_FOUND)
|
|
||||||
set(LIBWEBRTC_LIBRARIES ${LIBWEBRTC_LIBRARY} Threads::Threads)
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
set(LIBWEBRTC_LIBRARIES ${LIBWEBRTC_LIBRARIES} msdmo.lib wmcodecdspuuid.lib
|
|
||||||
dmoguids.lib ole32.lib secur32.lib)
|
|
||||||
elseif (APPLE)
|
|
||||||
set(LIBWEBRTC_LIBRARIES ${LIBWEBRTC_LIBRARIES}
|
|
||||||
${AUDIOTOOLBOX_LIBRARY} ${COREAUDIO_LIBRARY} ${COREFOUNDATION_LIBRARY}
|
|
||||||
${COREGRAPHICS_LIBRARY} ${FOUNDATION_LIBRARY})
|
|
||||||
elseif (UNIX)
|
|
||||||
set(LIBWEBRTC_LIBRARIES ${LIBWEBRTC_LIBRARIES} ${X11_LIBRARIES}
|
|
||||||
${CMAKE_DL_LIBS})
|
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
set(LIBWEBRTC_INCLUDE_DIRS ${LIBWEBRTC_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced(LIBWEBRTC_INCLUDE_DIR LIBWEBRTC_LIBRARY)
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
#
|
|
||||||
# Retrieve WebRTC source code
|
|
||||||
#
|
|
||||||
file(WRITE ${CMAKE_BINARY_DIR}/.gclient "solutions = [
|
|
||||||
{
|
|
||||||
\"url\": \"https://chromium.googlesource.com/external/webrtc.git\",
|
|
||||||
\"managed\": False,
|
|
||||||
\"name\": \"src\",
|
|
||||||
\"deps_file\": \"DEPS\",
|
|
||||||
\"custom_deps\": {},
|
|
||||||
},
|
|
||||||
]
|
|
||||||
")
|
|
||||||
|
|
||||||
if (TARGET_OS STREQUAL "android")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"android\", \"unix\"]")
|
|
||||||
elseif (TARGET_OS STREQUAL "ios")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"ios\", \"mac\"]")
|
|
||||||
elseif (TARGET_OS STREQUAL "linux")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"unix\"]")
|
|
||||||
elseif (TARGET_OS STREQUAL "mac")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"mac\"]")
|
|
||||||
elseif (TARGET_OS STREQUAL "win")
|
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"win\"]")
|
|
||||||
endif (TARGET_OS STREQUAL "android")
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
#
|
|
||||||
# Generate environment variables
|
|
||||||
#
|
|
||||||
set(WEBRTC_PATH ${CMAKE_SOURCE_DIR}/depot_tools)
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
get_filename_component(DEPOT_TOOLS_PYTHON_PATH
|
|
||||||
"${WEBRTC_PATH}/python276_bin"
|
|
||||||
REALPATH)
|
|
||||||
list(APPEND WEBRTC_PATH ${DEPOT_TOOLS_PYTHON_PATH})
|
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
list(APPEND WEBRTC_PATH $ENV{PATH})
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
string(REGEX REPLACE "/" "\\\\" WEBRTC_PATH "${WEBRTC_PATH}")
|
|
||||||
string(REGEX REPLACE ";" "\\\;" WEBRTC_PATH "${WEBRTC_PATH}")
|
|
||||||
else (WIN32)
|
|
||||||
string(REGEX REPLACE ";" ":" WEBRTC_PATH "${WEBRTC_PATH}")
|
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
get_filename_component(CHROMIUM_PYTHONPATH
|
|
||||||
"${CMAKE_BINARY_DIR}/src/build"
|
|
||||||
REALPATH)
|
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
set(PREFIX_FILENAME ${CMAKE_BINARY_DIR}/prefix.bat)
|
|
||||||
set(PREFIX_COMMAND set)
|
|
||||||
set(PREFIX_HEADER "@ECHO OFF")
|
|
||||||
set(PREFIX_EVAL "%*")
|
|
||||||
set(PREFIX_EXECUTE cmd /c ${PREFIX_FILENAME})
|
|
||||||
set(PREFIX_NEWLINE \r\n)
|
|
||||||
else (WIN32)
|
|
||||||
set(PREFIX_FILENAME ${CMAKE_BINARY_DIR}/prefix.sh)
|
|
||||||
set(PREFIX_COMMAND export)
|
|
||||||
set(PREFIX_HEADER "")
|
|
||||||
set(PREFIX_EVAL eval\ $@)
|
|
||||||
set(PREFIX_EXECUTE /bin/sh ${PREFIX_FILENAME})
|
|
||||||
set(PREFIX_NEWLINE \n)
|
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
file(WRITE ${PREFIX_FILENAME} "${PREFIX_HEADER}
|
|
||||||
${PREFIX_COMMAND} PATH=${WEBRTC_PATH}
|
|
||||||
${PREFIX_COMMAND} PYTHONPATH=${CHROMIUM_PYTHONPATH}
|
|
||||||
${PREFIX_COMMAND} DEPOT_TOOLS_WIN_TOOLCHAIN=0
|
|
||||||
${PREFIX_COMMAND} DEPOT_TOOLS_UPDATE=0
|
|
||||||
${PREFIX_COMMAND} CHROME_HEADLESS=1
|
|
||||||
${PREFIX_EVAL}
|
|
||||||
")
|
|
||||||
Loading…
Add table
Reference in a new issue