mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Add include guards
This commit is contained in:
parent
a750ea484d
commit
7ad84637f4
10 changed files with 52 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
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"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(FIND_LIBRARIES_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(FIND_LIBRARIES_INCLUDED)
|
||||||
|
set(FIND_LIBRARIES_INCLUDED true)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Find required packages
|
# Find required packages
|
||||||
list(APPEND LIBWEBRTC_LIBRARIES webrtc)
|
list(APPEND LIBWEBRTC_LIBRARIES webrtc)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(GCLIENT_CONFIG_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(GCLIENT_CONFIG_INCLUDED)
|
||||||
|
set(GCLIENT_CONFIG_INCLUDED true)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Retrieve WebRTC source code
|
# Retrieve WebRTC source code
|
||||||
#
|
#
|
||||||
|
|
@ -22,4 +27,4 @@ elseif (TARGET_OS STREQUAL "mac")
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"mac\"]")
|
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"mac\"]")
|
||||||
elseif (TARGET_OS STREQUAL "win")
|
elseif (TARGET_OS STREQUAL "win")
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"win\"]")
|
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"win\"]")
|
||||||
endif (TARGET_OS STREQUAL "android")
|
endif (TARGET_OS STREQUAL "android")
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(INSTALL_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(INSTALL_INCLUDED)
|
||||||
|
set(INSTALL_INCLUDED true)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install library
|
# Install library
|
||||||
file(GLOB_RECURSE _LIBRARY_FILES
|
file(GLOB_RECURSE _LIBRARY_FILES
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(LIBWEBRTC_COMMAND_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(LIBWEBRTC_COMMAND_INCLUDED)
|
||||||
|
set(LIBWEBRTC_COMMAND_INCLUDED true)
|
||||||
|
|
||||||
include(CMakeParseArguments)
|
include(CMakeParseArguments)
|
||||||
include(Prefix)
|
include(Prefix)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(OPTIONS_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(OPTIONS_INCLUDED)
|
||||||
|
set(OPTIONS_INCLUDED true)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Options, flags
|
# Options, flags
|
||||||
option(BUILD_TESTS "Build test binaries" OFF)
|
option(BUILD_TESTS "Build test binaries" OFF)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(PACKAGE_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(PACKAGE_INCLUDED)
|
||||||
|
set(PACKAGE_INCLUDED true)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Create package
|
# Create package
|
||||||
set(CPACK_PACKAGE_FILE_NAME "libwebrtc-${LIBWEBRTC_VERSION}-${TARGET_OS}-${TARGET_CPU}")
|
set(CPACK_PACKAGE_FILE_NAME "libwebrtc-${LIBWEBRTC_VERSION}-${TARGET_OS}-${TARGET_CPU}")
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(PREFIX_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(PREFIX_INCLUDED)
|
||||||
|
set(PREFIX_INCLUDED true)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate environment variables
|
# Generate environment variables
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(TARGET_OS_AND_CPU_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(TARGET_OS_AND_CPU_INCLUDED)
|
||||||
|
set(TARGET_OS_AND_CPU_INCLUDED true)
|
||||||
|
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -82,4 +87,4 @@ elseif (WIN32)
|
||||||
set(LIBWEBRTC_REQUIRED_CXX_FLAGS_DEBUG "/MTd")
|
set(LIBWEBRTC_REQUIRED_CXX_FLAGS_DEBUG "/MTd")
|
||||||
set(LIBWEBRTC_REQUIRED_CXX_FLAGS_RELEASE "/MT")
|
set(LIBWEBRTC_REQUIRED_CXX_FLAGS_RELEASE "/MT")
|
||||||
list(APPEND LIBWEBRTC_DEFINITIONS WEBRTC_WIN NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
list(APPEND LIBWEBRTC_DEFINITIONS WEBRTC_WIN NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
||||||
endif(UNIX)
|
endif(UNIX)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
if(VERSION_INCLUDED)
|
||||||
|
return()
|
||||||
|
endif(VERSION_INCLUDED)
|
||||||
|
set(VERSION_INCLUDED true)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set the project's version
|
# Set the project's version
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue