Enable GN check for webrtc/examples
BUG=webrtc:6828 NOTRY=True Review-Url: https://codereview.webrtc.org/2714343002 Cr-Commit-Position: refs/heads/master@{#16987}
This commit is contained in:
parent
cfa95aa995
commit
81db74a384
1
.gn
1
.gn
@ -27,6 +27,7 @@ check_targets = [
|
||||
"//webrtc/call/*",
|
||||
"//webrtc/common_video/*",
|
||||
"//webrtc/common_audio/*",
|
||||
"//webrtc/examples/*",
|
||||
"//webrtc/modules/audio_coding/*",
|
||||
"//webrtc/modules/audio_conference_mixer/*",
|
||||
"//webrtc/modules/audio_device/*",
|
||||
|
||||
@ -50,6 +50,7 @@ group("examples") {
|
||||
|
||||
if (is_android) {
|
||||
android_apk("AppRTCMobile") {
|
||||
testonly = true
|
||||
apk_name = "AppRTCMobile"
|
||||
android_manifest = "androidapp/AndroidManifest.xml"
|
||||
|
||||
@ -64,6 +65,7 @@ if (is_android) {
|
||||
}
|
||||
|
||||
android_library("AppRTCMobile_javalib") {
|
||||
testonly = true
|
||||
android_manifest = "androidapp/AndroidManifest.xml"
|
||||
|
||||
java_files = [
|
||||
@ -101,6 +103,7 @@ if (is_android) {
|
||||
}
|
||||
|
||||
android_resources("AppRTCMobile_resources") {
|
||||
testonly = true
|
||||
resource_dirs = [ "androidapp/res" ]
|
||||
custom_package = "org.appspot.apprtc"
|
||||
}
|
||||
@ -169,6 +172,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
}
|
||||
|
||||
rtc_static_library("apprtc_common") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"objc/AppRTCMobile/common/ARDUtilities.h",
|
||||
"objc/AppRTCMobile/common/ARDUtilities.m",
|
||||
@ -180,9 +184,9 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
public_configs = [ ":apprtc_common_config" ]
|
||||
|
||||
deps = [
|
||||
"../sdk:rtc_sdk_common_objc",
|
||||
"../system_wrappers:field_trial_default",
|
||||
"../system_wrappers:metrics_default",
|
||||
"//webrtc/sdk:rtc_sdk_common_objc",
|
||||
"//webrtc/system_wrappers:field_trial_default",
|
||||
"//webrtc/system_wrappers:metrics_default",
|
||||
]
|
||||
}
|
||||
|
||||
@ -199,6 +203,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
}
|
||||
|
||||
rtc_static_library("apprtc_signaling") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"objc/AppRTCMobile/ARDAppClient+Internal.h",
|
||||
"objc/AppRTCMobile/ARDAppClient.h",
|
||||
@ -245,13 +250,14 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
":socketrocket",
|
||||
]
|
||||
public_deps = [
|
||||
"../sdk:rtc_sdk_peerconnection_objc",
|
||||
"//webrtc/sdk:rtc_sdk_peerconnection_objc",
|
||||
]
|
||||
libs = [ "QuartzCore.framework" ]
|
||||
}
|
||||
|
||||
if (is_ios) {
|
||||
rtc_static_library("AppRTCMobile_lib") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"objc/AppRTCMobile/ios/ARDAppDelegate.m",
|
||||
"objc/AppRTCMobile/ios/ARDMainView.h",
|
||||
@ -283,10 +289,12 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
deps = [
|
||||
":apprtc_common",
|
||||
":apprtc_signaling",
|
||||
"//webrtc/modules/audio_device",
|
||||
]
|
||||
}
|
||||
|
||||
ios_app_bundle("AppRTCMobile") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"objc/AppRTCMobile/ios/main.m",
|
||||
]
|
||||
@ -346,6 +354,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
|
||||
if (is_mac) {
|
||||
rtc_static_library("AppRTCMobile_lib") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"objc/AppRTCMobile/mac/APPRTCAppDelegate.h",
|
||||
"objc/AppRTCMobile/mac/APPRTCAppDelegate.m",
|
||||
@ -353,7 +362,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
"objc/AppRTCMobile/mac/APPRTCViewController.m",
|
||||
]
|
||||
configs += [
|
||||
"..:common_objc",
|
||||
"//webrtc:common_objc",
|
||||
"//build/config/compiler:enable_arc",
|
||||
]
|
||||
deps = [
|
||||
@ -363,6 +372,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
}
|
||||
|
||||
mac_app_bundle("AppRTCMobile") {
|
||||
testonly = true
|
||||
output_name = "AppRTCMobile"
|
||||
|
||||
sources = [
|
||||
@ -403,6 +413,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
}
|
||||
|
||||
rtc_static_library("socketrocket") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.h",
|
||||
"objc/AppRTCMobile/third_party/SocketRocket/SRWebSocket.m",
|
||||
@ -423,6 +434,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
# TODO(kthelgason): compile xctests on mac when chromium supports it.
|
||||
if (is_ios) {
|
||||
rtc_source_set("apprtcmobile_test_sources") {
|
||||
testonly = true
|
||||
include_dirs = [
|
||||
"objc/AppRTCMobile",
|
||||
"objc/AppRTCMobile/ios",
|
||||
@ -433,6 +445,9 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
||||
"objc/AppRTCMobile/tests/ARDSDPUtils_xctest.mm",
|
||||
"objc/AppRTCMobile/tests/ARDSettingsModel_xctest.mm",
|
||||
]
|
||||
deps = [
|
||||
"//webrtc/base:rtc_base",
|
||||
]
|
||||
public_deps = [
|
||||
":AppRTCMobile_ios_frameworks",
|
||||
":AppRTCMobile_lib",
|
||||
@ -487,6 +502,7 @@ if (is_linux || is_win) {
|
||||
}
|
||||
|
||||
rtc_executable("peerconnection_client") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"peerconnection/client/conductor.cc",
|
||||
"peerconnection/client/conductor.h",
|
||||
@ -500,6 +516,7 @@ if (is_linux || is_win) {
|
||||
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
deps = []
|
||||
if (is_win) {
|
||||
sources += [
|
||||
"peerconnection/client/flagdefs.h",
|
||||
@ -509,13 +526,8 @@ if (is_linux || is_win) {
|
||||
]
|
||||
cflags = [ "/wd4245" ]
|
||||
configs += [ "//build/config/win:windowed" ]
|
||||
deps += [ "//webrtc/media:rtc_media_base" ]
|
||||
}
|
||||
deps = [
|
||||
"//third_party/libyuv",
|
||||
"//webrtc/pc:libjingle_peerconnection",
|
||||
"//webrtc/system_wrappers:field_trial_default",
|
||||
"//webrtc/system_wrappers:metrics_default",
|
||||
]
|
||||
if (is_linux) {
|
||||
sources += [
|
||||
"peerconnection/client/linux/main.cc",
|
||||
@ -531,12 +543,26 @@ if (is_linux || is_win) {
|
||||
deps += [ "//build/config/linux/gtk" ]
|
||||
}
|
||||
configs += [ ":peerconnection_client_warnings_config" ]
|
||||
|
||||
deps += [
|
||||
"//third_party/libyuv",
|
||||
"//webrtc/api:libjingle_peerconnection_test_api",
|
||||
"//webrtc/api:video_frame_api",
|
||||
"//webrtc/base:rtc_base",
|
||||
"//webrtc/base:rtc_base_approved",
|
||||
"//webrtc/media:rtc_media",
|
||||
"//webrtc/modules/video_capture:video_capture_module",
|
||||
"//webrtc/pc:libjingle_peerconnection",
|
||||
"//webrtc/system_wrappers:field_trial_default",
|
||||
"//webrtc/system_wrappers:metrics_default",
|
||||
]
|
||||
if (rtc_build_json) {
|
||||
deps += [ "//third_party/jsoncpp" ]
|
||||
}
|
||||
}
|
||||
|
||||
rtc_executable("peerconnection_server") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"peerconnection/server/data_socket.cc",
|
||||
"peerconnection/server/data_socket.h",
|
||||
@ -557,11 +583,14 @@ if (is_linux || is_win) {
|
||||
}
|
||||
}
|
||||
rtc_executable("relayserver") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"relayserver/relayserver_main.cc",
|
||||
]
|
||||
deps = [
|
||||
"../base:rtc_base",
|
||||
"//webrtc/base:rtc_base_approved",
|
||||
"//webrtc/p2p:rtc_p2p",
|
||||
"//webrtc/pc:rtc_pc",
|
||||
"//webrtc/system_wrappers:field_trial_default",
|
||||
"//webrtc/system_wrappers:metrics_default",
|
||||
@ -572,11 +601,14 @@ if (is_linux || is_win) {
|
||||
}
|
||||
}
|
||||
rtc_executable("turnserver") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"turnserver/turnserver_main.cc",
|
||||
]
|
||||
deps = [
|
||||
"../base:rtc_base",
|
||||
"//webrtc/base:rtc_base_approved",
|
||||
"//webrtc/p2p:rtc_p2p",
|
||||
"//webrtc/pc:rtc_pc",
|
||||
"//webrtc/system_wrappers:field_trial_default",
|
||||
"//webrtc/system_wrappers:metrics_default",
|
||||
@ -587,11 +619,14 @@ if (is_linux || is_win) {
|
||||
}
|
||||
}
|
||||
rtc_executable("stunserver") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"stunserver/stunserver_main.cc",
|
||||
]
|
||||
deps = [
|
||||
"../base:rtc_base",
|
||||
"//webrtc/base:rtc_base_approved",
|
||||
"//webrtc/p2p:rtc_p2p",
|
||||
"//webrtc/pc:rtc_pc",
|
||||
"//webrtc/system_wrappers:field_trial_default",
|
||||
"//webrtc/system_wrappers:metrics_default",
|
||||
@ -606,6 +641,7 @@ if (is_linux || is_win) {
|
||||
if (!build_with_chromium) {
|
||||
# Doesn't build within Chrome on Win.
|
||||
rtc_executable("stun_prober") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"stunprober/main.cc",
|
||||
]
|
||||
@ -617,6 +653,8 @@ if (!build_with_chromium) {
|
||||
}
|
||||
|
||||
deps = [
|
||||
"../base:rtc_base",
|
||||
"../base:rtc_base_approved",
|
||||
"../p2p:libstunprober",
|
||||
"../p2p:rtc_p2p",
|
||||
"../system_wrappers:field_trial_default",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user