Add webrtc build parameters
parent
d2108e1787
commit
79e5872eea
|
@ -67,7 +67,6 @@ elseif (WIN32)
|
|||
endif()
|
||||
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
add_definitions(${WEBRTC_DEFINES})
|
||||
|
||||
|
||||
# ============================================================================
|
||||
|
@ -85,6 +84,7 @@ find_package(ZLIB)
|
|||
# libwebsockets
|
||||
find_package(Libwebsockets)
|
||||
|
||||
add_definitions(${WEBRTC_DEFINES})
|
||||
|
||||
# ============================================================================
|
||||
# Generate the config.h that includes all the compilation settings.
|
||||
|
@ -100,10 +100,19 @@ configure_file(
|
|||
set(HEADERS
|
||||
"${PROJECT_BINARY_DIR}/config.h"
|
||||
"src/throughnet.h"
|
||||
"src/control.h"
|
||||
"src/defaults.h"
|
||||
"src/flagdefs.h"
|
||||
"src/connection.h"
|
||||
"src/dummy_wnd.h"
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
"src/throughnet.cc"
|
||||
"src/control.cc"
|
||||
"src/defaults.cc"
|
||||
"src/connection.cc"
|
||||
"src/dummy_wnd.cc"
|
||||
)
|
||||
|
||||
# ============================================================================
|
||||
|
@ -115,6 +124,11 @@ include_directories(
|
|||
"${PROJECT_SOURCE_DIR}/src"
|
||||
"${WEBRTC_INCLUDE_DIR}"
|
||||
"${WEBRTC_INCLUDE_DIR}/webrtc"
|
||||
"${WEBRTC_INCLUDE_DIR}/third_party"
|
||||
"${WEBRTC_INCLUDE_DIR}/third_party/webrtc"
|
||||
"${WEBRTC_INCLUDE_DIR}/third_party/wtl/include"
|
||||
"${WEBRTC_INCLUDE_DIR}/third_party/jsoncpp/overrides/include"
|
||||
"${WEBRTC_INCLUDE_DIR}/third_party/jsoncpp/source/include"
|
||||
)
|
||||
|
||||
set(TN_LIBRARIES)
|
||||
|
|
|
@ -145,7 +145,70 @@ find_path(WEBRTC_BORING_SSL_INCLUDE
|
|||
# Definitions
|
||||
# ============================================================================
|
||||
|
||||
set(WEBRTC_DEFINES)
|
||||
set(WEBRTC_DEFINES
|
||||
-DWIN32_LEAN_AND_MEAN
|
||||
-DNOMINMAX
|
||||
-DV8_DEPRECATION_WARNINGS
|
||||
-DEXPAT_RELATIVE_PATH
|
||||
-DFEATURE_ENABLE_VOICEMAIL
|
||||
-DGTEST_RELATIVE_PATH
|
||||
-DJSONCPP_RELATIVE_PATH
|
||||
-DLOGGING=1
|
||||
-DSRTP_RELATIVE_PATH
|
||||
-DFEATURE_ENABLE_SSL
|
||||
-DFEATURE_ENABLE_PSTN
|
||||
-DHAVE_SCTP
|
||||
-DHAVE_SRTP
|
||||
-DHAVE_WEBRTC_VIDEO
|
||||
-DHAVE_WEBRTC_VOICE
|
||||
-DUSE_WEBRTC_DEV_BRANCH
|
||||
-DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS
|
||||
-DCHROMIUM_BUILD
|
||||
-DTOOLKIT_VIEWS=1
|
||||
-DUSE_AURA=1
|
||||
-DUSE_ASH=1
|
||||
-DUSE_DEFAULT_RENDER_THEME=1
|
||||
-DUSE_LIBJPEG_TURBO=1
|
||||
-DENABLE_ONE_CLICK_SIGNIN
|
||||
-DENABLE_PRE_SYNC_BACKUP
|
||||
-DENABLE_REMOTING=1
|
||||
-DENABLE_WEBRTC=1
|
||||
-DENABLE_PEPPER_CDMS
|
||||
-DENABLE_CONFIGURATION_POLICY
|
||||
-DENABLE_NOTIFICATIONS
|
||||
-DENABLE_HIDPI=1
|
||||
-DDONT_EMBED_BUILD_METADATA
|
||||
-DNO_TCMALLOC
|
||||
-DALLOCATOR_SHIM
|
||||
-DENABLE_TASK_MANAGER=1
|
||||
-DENABLE_EXTENSIONS=1
|
||||
-DENABLE_PLUGIN_INSTALLATION=1
|
||||
-DENABLE_PLUGINS=1
|
||||
-DENABLE_SESSION_SERVICE=1
|
||||
-DENABLE_THEMES=1
|
||||
-DENABLE_AUTOFILL_DIALOG=1
|
||||
-DENABLE_BACKGROUND=1
|
||||
-DENABLE_GOOGLE_NOW=1
|
||||
-DCLD_VERSION=2
|
||||
-DENABLE_PRINTING=1
|
||||
-DENABLE_BASIC_PRINTING=1
|
||||
-DENABLE_PRINT_PREVIEW=1
|
||||
-DENABLE_SPELLCHECK=1
|
||||
-DENABLE_CAPTIVE_PORTAL_DETECTION=1
|
||||
-DENABLE_APP_LIST=1
|
||||
-DENABLE_SETTINGS_APP=1
|
||||
-DENABLE_SUPERVISED_USERS=1
|
||||
-DENABLE_MDNS=1
|
||||
-DENABLE_SERVICE_DISCOVERY=1
|
||||
-DENABLE_WIFI_BOOTSTRAPPING=1
|
||||
-DV8_USE_EXTERNAL_STARTUP_DATA
|
||||
-DLIBPEERCONNECTION_LIB=1
|
||||
-DUSE_LIBPCI=1
|
||||
-DUSE_OPENSSL=1
|
||||
-DNVALGRIND
|
||||
-DDYNAMIC_ANNOTATIONS_ENABLED=0
|
||||
)
|
||||
|
||||
|
||||
if (MSVC)
|
||||
list(APPEND WEBRTC_DEFINES)
|
||||
|
|
Loading…
Reference in New Issue