mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 11:15:13 +00:00
Find all libraries first, set HAS_OWN_DEPOT_TOOLS variable
This commit is contained in:
parent
7ad84637f4
commit
e60dbd57f6
3 changed files with 12 additions and 13 deletions
|
|
@ -10,18 +10,18 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
|
||||||
|
|
||||||
find_package(Git REQUIRED)
|
find_package(Git REQUIRED)
|
||||||
|
|
||||||
if (DEPOT_TOOLS_PATH)
|
|
||||||
find_package(DepotTools REQUIRED)
|
|
||||||
endif (DEPOT_TOOLS_PATH)
|
|
||||||
|
|
||||||
if (NOT WIN32)
|
|
||||||
find_package(PythonInterp 2.7 REQUIRED)
|
|
||||||
endif (NOT WIN32)
|
|
||||||
|
|
||||||
include(FindLibraries)
|
include(FindLibraries)
|
||||||
include(Version)
|
include(Version)
|
||||||
include(Options)
|
include(Options)
|
||||||
include(TargetOsAndCpu)
|
include(TargetOsAndCpu)
|
||||||
|
|
||||||
|
if (HAS_OWN_DEPOT_TOOLS)
|
||||||
|
find_package(DepotTools REQUIRED)
|
||||||
|
endif (HAS_OWN_DEPOT_TOOLS)
|
||||||
|
|
||||||
|
if (NOT WIN32)
|
||||||
|
find_package(PythonInterp 2.7 REQUIRED)
|
||||||
|
endif (NOT WIN32)
|
||||||
|
|
||||||
add_subdirectory(Targets)
|
add_subdirectory(Targets)
|
||||||
export(PACKAGE LibWebRTC)
|
export(PACKAGE LibWebRTC)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
if(FIND_DEPOT_TOOLS_INCLUDED)
|
|
||||||
return()
|
|
||||||
endif(FIND_DEPOT_TOOLS_INCLUDED)
|
|
||||||
set(FIND_DEPOT_TOOLS_INCLUDED true)
|
|
||||||
|
|
||||||
find_program(GCLIENT_EXECUTABLE
|
find_program(GCLIENT_EXECUTABLE
|
||||||
NAMES gclient gclient.bat
|
NAMES gclient gclient.bat
|
||||||
DOC "Path to gclient executable"
|
DOC "Path to gclient executable"
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ option(BUILD_SHARED_LIB "Build WebRTC as a shared library" OFF)
|
||||||
set(WEBRTC_REVISION "" CACHE STRING "WebRTC commit hash to checkout")
|
set(WEBRTC_REVISION "" CACHE STRING "WebRTC commit hash to checkout")
|
||||||
set(WEBRTC_BRANCH_HEAD "${LIBWEBRTC_WEBRTC_HEAD}" CACHE STRING "WebRTC branch head to checkout")
|
set(WEBRTC_BRANCH_HEAD "${LIBWEBRTC_WEBRTC_HEAD}" CACHE STRING "WebRTC branch head to checkout")
|
||||||
|
|
||||||
|
if (DEPOT_TOOLS_PATH)
|
||||||
|
set(HAS_OWN_DEPOT_TOOLS 1)
|
||||||
|
endif (DEPOT_TOOLS_PATH)
|
||||||
|
|
||||||
if(BUILD_SHARED_LIB)
|
if(BUILD_SHARED_LIB)
|
||||||
set(LIBRARY_TYPE SHARED)
|
set(LIBRARY_TYPE SHARED)
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue