Commit 83fd424e authored by Brett Wilson's avatar Brett Wilson

Fix Chrome linker errors in GN build.

This fixes all non-RTC-related linker errors for Chrome.

R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/533743004

Cr-Commit-Position: refs/heads/master@{#292978}
parent 68f381a7
......@@ -68,6 +68,7 @@ static_library("browser") {
"//components/os_crypt",
"//components/password_manager/core/browser",
"//components/password_manager/core/common",
"//components/pdf/browser",
"//components/policy:policy_component",
"//components/precache/core",
"//components/query_parser",
......@@ -135,9 +136,6 @@ static_library("browser") {
defines = nacl_defines
# TODO(GYP) remove this when the real webrtc target is used below.
configs += [ "//content:webrtc_stub_config" ]
deps += [
"//apps",
"//cc",
......@@ -166,6 +164,7 @@ static_library("browser") {
"//mojo/public/cpp/bindings",
"//mojo/public/js/bindings",
"//mojo/system",
"//net:extras",
"//net:net_with_v8",
"//third_party/WebKit/public:resources",
"//third_party/expat",
......@@ -175,6 +174,7 @@ static_library("browser") {
"//third_party/npapi",
"//third_party/re2",
"//third_party/smhasher:cityhash",
"//third_party/webrtc/modules/desktop_capture",
"//ui/gl",
"//ui/surface",
"//ui/web_dialogs",
......@@ -184,8 +184,6 @@ static_library("browser") {
"//webkit/common:storage_common",
## TODO(tonyg): Remove this dependency (crbug.com/280157).
#"../testing/perf/perf_test.gyp:*", TODO(GYP)
# Note: for this one also remove the webrtc_stub_config
#"../third_party/webrtc/modules/modules.gyp:desktop_capture", TODO(GYP)
]
} else { # iOS
sources += rebase_path(gypi_values.chrome_browser_ios_sources,
......
......@@ -21,9 +21,6 @@ static_library("extensions") {
defines = []
# TODO(GYP) remove this when webrtc is ported.
configs += [ "//content:webrtc_stub_config" ]
# Since browser and browser_extensions actually depend on each other,
# we must omit the dependency from browser_extensions to browser.
# However, this means browser_extensions and browser should more or less
......@@ -66,6 +63,7 @@ static_library("extensions") {
"//third_party/icu",
"//third_party/leveldatabase",
"//third_party/re2",
"//third_party/webrtc/modules/desktop_capture",
"//ui/accessibility:ax_gen",
"//ui/base",
"//ui/gfx",
......@@ -75,7 +73,6 @@ static_library("extensions") {
"//url",
"//webkit/browser:storage",
"//webkit/common:storage_common",
#"../third_party/webrtc/modules/modules.gyp:desktop_capture", TODO(GYP)
]
forward_dependent_configs_from = [
......@@ -83,6 +80,11 @@ static_library("extensions") {
"//content/public/browser",
]
# TODO(GYP) This config should be a direct_dependent_config of
# //third_party/webrtc/modules/desktop_capture so we shouldn't have to
# include it here. Remove this line when the direct_dependent_config is set.
configs += [ "//third_party/webrtc:common_inherited_config" ]
if (is_chromeos) {
sources += rebase_path(
gypi_values.chrome_browser_extensions_chromeos_sources,
......
......@@ -89,6 +89,7 @@ static_library("ui") {
"//chrome/common/extensions/api:api_registration",
"//chrome/installer/util",
"//components/autofill/content/browser:risk_proto",
"//components/power",
"//device/bluetooth",
"//device/nfc",
"//media",
......
......@@ -211,11 +211,15 @@ static_library("common") {
deps += [ "//remoting/client/plugin" ]
}
if (enable_plugins) {
sources += [
"pepper_flash.cc",
"pepper_flash.h",
"pepper_permission_util.cc",
"pepper_permission_util.h",
]
deps += [
"//third_party/adobe/flash:flapper_version_h",
]
} else {
sources -= [ "pepper_permission_util.cc" ]
}
if (!enable_webrtc) {
sources -= [ "media/webrtc_logging_messages.h" ]
......
......@@ -39,6 +39,7 @@ static_library("renderer") {
"//components/cdm/renderer",
"//components/data_reduction_proxy/common",
"//components/password_manager/content/renderer",
"//components/pdf/renderer",
"//components/plugins/renderer",
"//components/startup_metric_utils",
"//components/translate/content/renderer",
......
......@@ -18,6 +18,8 @@ static_library("gcm_driver") {
"gcm_client_factory.h",
"gcm_client_impl.cc",
"gcm_client_impl.h",
"gcm_connection_observer.cc",
"gcm_connection_observer.h",
"gcm_driver.cc",
"gcm_driver.h",
"gcm_driver_android.cc",
......
......@@ -54,79 +54,3 @@ source_set("export") {
"content/common/content_export.h"
]
}
# Stubs ------------------------------------------------------------------------
# TODO(brettw) remove this and add a proper dependency on libjingle once that
# target has been converted to GN. This config sets up the include directories
# so content can compile in the meantime.
config("libjingle_stub_config") {
include_dirs = [
"//third_party/libjingle/overrides",
"//third_party/libjingle/source",
"//third_party/libyuv/include",
"//third_party/usrsctp",
"//third_party/webrtc/overrides", # Must be before webrtc abd third_party.
"//third_party/webrtc",
"//third_party",
]
defines = [
"FEATURE_ENABLE_SSL",
"FEATURE_ENABLE_VOICEMAIL",
"EXPAT_RELATIVE_PATH",
"GTEST_RELATIVE_PATH",
"NO_MAIN_THREAD_WRAPPING",
"NO_SOUND_SYSTEM",
]
if (is_mac) {
defines += [ "OSX", "WEBRTC_MAC" ]
} else if (is_linux) {
defines += [ "LINUX", "WEBRTC_LINUX" ]
} else if (is_android) {
defines += [ "ANDROID", "WEBRTC_LINUX", "WEBRTC_ANDROID" ]
} else if (is_win) {
libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ]
defines += [ "WEBRTC_WIN" ]
}
if (is_posix) {
defines += [ "POSIX", "WEBRTC_POSIX" ]
}
if (is_chromeos) {
defines += [ "CHROMEOS" ]
}
}
# Sets up include dirs while webrtc is being converted to GN.
# TODO(GYP) remove when webrtc is ready.
config("webrtc_stub_config") {
defines = [ "WEBRTC_CHROMIUM_BUILD" ]
include_dirs = [
"//third_party/webrtc/overrides", # Must be first.
"//third_party",
]
if (is_mac) {
defines += [ "WEBRTC_MAC" ]
} else if (is_win) {
defines += [ "WEBRTC_WIN" ]
} else if (is_linux) {
defines += [ "WEBRTC_LINUX" ]
} else if (is_ios) {
defines += [ "WEBRTC_MAC", "WEBRTC_IOS" ]
} else if (is_android) {
defines += [ "WEBRTC_LINUX", "WEBRTC_ANDROID" ]
import("//build/config/crypto.gni")
if (use_openssl) {
defines += [ "WEBRTC_ANDROID_OPENSLEQS" ]
}
}
if (is_posix) {
defines += [ "WEBRTC_POSIX" ]
}
}
......@@ -113,8 +113,9 @@ source_set("browser") {
configs += [
"//content:content_implementation",
"//content:libjingle_stub_config", # TODO(GYP) remove when libjingle is ready.
"//content:webrtc_stub_config", # TODO(GYP) remove when webrtc is ready.
# TODO(GYP) remove this when libjingle_webrtc is working.
"//third_party/libjingle:jingle_direct_dependent_configs", # TODO(GYP)
]
if (toolkit_views) {
......@@ -156,11 +157,9 @@ source_set("browser") {
if (enable_webrtc) {
sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources,
".", "//content")
# TODO(GYP)
#deps += [ "//jingle:glue" ]
deps += [ "//jingle:jingle_glue" ]
if (is_linux) {
# TODO(GYP)
#deps += [ "//third_party/libjingle:libjingle_webrtc" ]
#deps += [ "//third_party/libjingle:libjingle_webrtc" ] TODO(GYP)
}
if (is_linux || is_mac || is_win) {
sources += [
......@@ -176,8 +175,7 @@ source_set("browser") {
]
}
defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
# TODO(GYP)
#deps += [ "//third_party/webrtc/modules:desktop_capture" ]
deps += [ "//third_party/webrtc/modules/desktop_capture" ]
}
}
......
......@@ -11,12 +11,12 @@ source_set("renderer") {
configs += [
"//content:content_implementation",
"//content:libjingle_stub_config",
]
deps = [
"//content/renderer",
"//skia",
"//third_party/libjingle",
"//third_party/WebKit/public:blink_headers",
"//third_party/widevine/cdm:version_h",
"//v8",
......
......@@ -15,7 +15,6 @@ source_set("renderer") {
configs += [
"//content:content_implementation",
"//content:libjingle_stub_config",
]
deps = [
......@@ -129,10 +128,10 @@ source_set("renderer") {
deps += [
"//crypto",
"//third_party/libyuv",
"//third_party/webrtc/modules/audio_device",
"//third_party/webrtc/modules/audio_processing",
#"../third_party/libjingle/libjingle.gyp:libjingle_webrtc", TODO(GYP)
#"../third_party/libjingle/libjingle.gyp:libpeerconnection", TODO(GYP)
#"../third_party/webrtc/modules/modules.gyp:audio_device", TODO(GYP)
#"../third_party/webrtc/modules/modules.gyp:audio_processing", TODO(GYP)
]
} else {
sources += [
......
......@@ -68,7 +68,7 @@ static_library("test_support") {
if (enable_webrtc) {
# TODO(GYP) remove this when libjingle is converted.
configs += [ "//content:libjingle_stub_config" ]
configs += [ "//third_party/libjingle:jingle_direct_dependent_configs" ]
sources += [
"../renderer/media/mock_media_stream_dispatcher.cc",
......@@ -84,7 +84,7 @@ static_library("test_support") {
deps += [
#"//third_party/libjingle:webrtc", TODO(GYP)
#"//third_party/libjingle:peerconnection", TODO(GYP)
#"//third_party/webrtc/modules:video_capture", TODO(GYP)
"//third_party/webrtc/modules/video_capture",
]
}
......
......@@ -41,6 +41,8 @@ source_set("browser") {
"api/app_runtime/app_runtime_api.h",
"api/app_view/app_view_internal_api.cc",
"api/app_view/app_view_internal_api.h",
"api/guest_view/guest_view_internal_api.cc",
"api/guest_view/guest_view_internal_api.h",
"api/async_api_function.cc",
"api/async_api_function.h",
"api/bluetooth/bluetooth_api.cc",
......@@ -269,10 +271,21 @@ source_set("browser") {
"guest_view/guest_view_manager.cc",
"guest_view/guest_view_manager.h",
"guest_view/guest_view.h",
"guest_view/web_view/javascript_dialog_helper.cc",
"guest_view/web_view/javascript_dialog_helper.h",
"guest_view/web_view/web_view_constants.cc",
"guest_view/web_view/web_view_constants.h",
"guest_view/web_view/web_view_guest.cc",
"guest_view/web_view/web_view_guest.h",
"guest_view/web_view/web_view_guest_delegate.cc",
"guest_view/web_view/web_view_guest_delegate.h",
"guest_view/web_view/web_view_permission_types.h",
"guest_view/web_view/web_view_permission_helper.cc",
"guest_view/web_view/web_view_permission_helper.h",
"guest_view/web_view/web_view_permission_helper_delegate.cc",
"guest_view/web_view/web_view_permission_helper_delegate.h",
"guest_view/web_view/web_view_renderer_state.cc",
"guest_view/web_view/web_view_renderer_state.h",
"image_loader.cc",
"image_loader.h",
"image_loader_factory.cc",
......@@ -327,6 +340,10 @@ source_set("browser") {
"verified_contents.h",
"view_type_utils.cc",
"view_type_utils.h",
"warning_service.cc",
"warning_service.h",
"warning_set.cc",
"warning_set.h",
]
deps += [
......
......@@ -108,6 +108,8 @@ source_set("common") {
"manifest_handlers/incognito_info.h",
"manifest_handlers/kiosk_mode_info.cc",
"manifest_handlers/kiosk_mode_info.h",
"manifest_handlers/launcher_page_info.cc",
"manifest_handlers/launcher_page_info.h",
"manifest_handlers/offline_enabled_info.cc",
"manifest_handlers/offline_enabled_info.h",
"manifest_handlers/permissions_parser.cc",
......
......@@ -564,7 +564,7 @@ grit("net_resources") {
]
}
static_library("net_extras") {
static_library("extras") {
sources = gypi_values.net_extras_sources
configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [
......@@ -1104,9 +1104,9 @@ test("net_unittests") {
defines = []
deps = [
":extras",
":http_server",
":net",
":net_extras",
":quic_tools",
":test_support",
"//base",
......
......@@ -66,8 +66,6 @@ static_library("base") {
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
# TODO(GYP) Remove when WebRTC is converted.
configs += [ "//content:webrtc_stub_config" ]
deps = [
"//base",
......@@ -81,7 +79,7 @@ static_library("base") {
"//third_party/libyuv",
"//third_party/opus",
"//third_party/protobuf:protobuf_lite",
#"//third_party/webrtc/modules/desktop_capture", TODO(GYP)
"//third_party/webrtc/modules/desktop_capture",
"//ui/base",
"//ui/gfx",
"//ui/gfx/geometry",
......@@ -93,5 +91,10 @@ static_library("base") {
"//remoting/proto",
"//third_party/protobuf:protobuf_lite",
]
# TODO(GYP) This config should be a direct_dependent_config of
# //third_party/webrtc/modules/desktop_capture so we shouldn't have to
# include it here. Remove this line when the direct_dependent_config is set.
configs += [ "//third_party/webrtc:common_inherited_config" ]
}
......@@ -35,8 +35,6 @@ static_library("client") {
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
# TODO(GYP) Remove when WebRTC is converted.
configs += [ "//content:webrtc_stub_config" ]
defines = [ "VERSION=$version_full" ]
......@@ -44,7 +42,7 @@ static_library("client") {
"//remoting/base",
"//remoting/protocol",
"//third_party/libyuv",
#"//third_party/webrtc/modules/desktop_capture", TODO(GYP)
"//third_party/webrtc/modules/desktop_capture",
"//third_party/libwebm",
]
}
......@@ -52,7 +52,7 @@ static_library("plugin") {
"//remoting/base",
"//remoting/client",
"//remoting/protocol",
#"//third_party/webrtc/modules/desktop_capture", TODO(GYP)
"//third_party/webrtc/modules/desktop_capture",
"//ui/events:dom4_keycode_converter",
]
}
......@@ -136,25 +136,18 @@ static_library("protocol") {
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
# TODO(GYP) Remove when WebRTC/jingle is converted.
configs += [
"//content:webrtc_stub_config",
"//content:libjingle_stub_config",
]
deps = [
"//base",
"//crypto",
"//jingle:jingle_glue",
"//jingle:notifier",
"//net",
"//remoting/base",
#'../jingle/jingle.gyp:jingle_glue', TODO(GYP)
#'../jingle/jingle.gyp:notifier', TODO(GYP)
#'../third_party/libjingle/libjingle.gyp:libjingle', TODO(GYP)
"//third_party/libjingle",
]
forward_dependent_configs_from = [
#'../third_party/libjingle/libjingle.gyp:libjingle', TODO(GYP)
"//third_party/libjingle",
]
# TODO(GYP) Remove when jingle is converted.
direct_dependent_configs = [ "//content:libjingle_stub_config" ]
}
......@@ -249,8 +249,7 @@ static_library("libjingle") {
"source/talk/p2p/base/constants.h",
]
deps = [
# TODO(GYP): Uncomment when WebRTC GN build has settled.
# "//third_party/webrtc/base:webrtc_base",
"//third_party/webrtc/base:webrtc_base",
":libjingle_p2p_constants",
":jingle_deps"
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment