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") { ...@@ -68,6 +68,7 @@ static_library("browser") {
"//components/os_crypt", "//components/os_crypt",
"//components/password_manager/core/browser", "//components/password_manager/core/browser",
"//components/password_manager/core/common", "//components/password_manager/core/common",
"//components/pdf/browser",
"//components/policy:policy_component", "//components/policy:policy_component",
"//components/precache/core", "//components/precache/core",
"//components/query_parser", "//components/query_parser",
...@@ -135,9 +136,6 @@ static_library("browser") { ...@@ -135,9 +136,6 @@ static_library("browser") {
defines = nacl_defines defines = nacl_defines
# TODO(GYP) remove this when the real webrtc target is used below.
configs += [ "//content:webrtc_stub_config" ]
deps += [ deps += [
"//apps", "//apps",
"//cc", "//cc",
...@@ -166,6 +164,7 @@ static_library("browser") { ...@@ -166,6 +164,7 @@ static_library("browser") {
"//mojo/public/cpp/bindings", "//mojo/public/cpp/bindings",
"//mojo/public/js/bindings", "//mojo/public/js/bindings",
"//mojo/system", "//mojo/system",
"//net:extras",
"//net:net_with_v8", "//net:net_with_v8",
"//third_party/WebKit/public:resources", "//third_party/WebKit/public:resources",
"//third_party/expat", "//third_party/expat",
...@@ -175,6 +174,7 @@ static_library("browser") { ...@@ -175,6 +174,7 @@ static_library("browser") {
"//third_party/npapi", "//third_party/npapi",
"//third_party/re2", "//third_party/re2",
"//third_party/smhasher:cityhash", "//third_party/smhasher:cityhash",
"//third_party/webrtc/modules/desktop_capture",
"//ui/gl", "//ui/gl",
"//ui/surface", "//ui/surface",
"//ui/web_dialogs", "//ui/web_dialogs",
...@@ -184,8 +184,6 @@ static_library("browser") { ...@@ -184,8 +184,6 @@ static_library("browser") {
"//webkit/common:storage_common", "//webkit/common:storage_common",
## TODO(tonyg): Remove this dependency (crbug.com/280157). ## TODO(tonyg): Remove this dependency (crbug.com/280157).
#"../testing/perf/perf_test.gyp:*", TODO(GYP) #"../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 } else { # iOS
sources += rebase_path(gypi_values.chrome_browser_ios_sources, sources += rebase_path(gypi_values.chrome_browser_ios_sources,
......
...@@ -21,9 +21,6 @@ static_library("extensions") { ...@@ -21,9 +21,6 @@ static_library("extensions") {
defines = [] defines = []
# TODO(GYP) remove this when webrtc is ported.
configs += [ "//content:webrtc_stub_config" ]
# Since browser and browser_extensions actually depend on each other, # Since browser and browser_extensions actually depend on each other,
# we must omit the dependency from browser_extensions to browser. # we must omit the dependency from browser_extensions to browser.
# However, this means browser_extensions and browser should more or less # However, this means browser_extensions and browser should more or less
...@@ -66,6 +63,7 @@ static_library("extensions") { ...@@ -66,6 +63,7 @@ static_library("extensions") {
"//third_party/icu", "//third_party/icu",
"//third_party/leveldatabase", "//third_party/leveldatabase",
"//third_party/re2", "//third_party/re2",
"//third_party/webrtc/modules/desktop_capture",
"//ui/accessibility:ax_gen", "//ui/accessibility:ax_gen",
"//ui/base", "//ui/base",
"//ui/gfx", "//ui/gfx",
...@@ -75,7 +73,6 @@ static_library("extensions") { ...@@ -75,7 +73,6 @@ static_library("extensions") {
"//url", "//url",
"//webkit/browser:storage", "//webkit/browser:storage",
"//webkit/common:storage_common", "//webkit/common:storage_common",
#"../third_party/webrtc/modules/modules.gyp:desktop_capture", TODO(GYP)
] ]
forward_dependent_configs_from = [ forward_dependent_configs_from = [
...@@ -83,6 +80,11 @@ static_library("extensions") { ...@@ -83,6 +80,11 @@ static_library("extensions") {
"//content/public/browser", "//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) { if (is_chromeos) {
sources += rebase_path( sources += rebase_path(
gypi_values.chrome_browser_extensions_chromeos_sources, gypi_values.chrome_browser_extensions_chromeos_sources,
......
...@@ -89,6 +89,7 @@ static_library("ui") { ...@@ -89,6 +89,7 @@ static_library("ui") {
"//chrome/common/extensions/api:api_registration", "//chrome/common/extensions/api:api_registration",
"//chrome/installer/util", "//chrome/installer/util",
"//components/autofill/content/browser:risk_proto", "//components/autofill/content/browser:risk_proto",
"//components/power",
"//device/bluetooth", "//device/bluetooth",
"//device/nfc", "//device/nfc",
"//media", "//media",
......
...@@ -211,11 +211,15 @@ static_library("common") { ...@@ -211,11 +211,15 @@ static_library("common") {
deps += [ "//remoting/client/plugin" ] deps += [ "//remoting/client/plugin" ]
} }
if (enable_plugins) { if (enable_plugins) {
sources += [
"pepper_flash.cc",
"pepper_flash.h",
"pepper_permission_util.cc",
"pepper_permission_util.h",
]
deps += [ deps += [
"//third_party/adobe/flash:flapper_version_h", "//third_party/adobe/flash:flapper_version_h",
] ]
} else {
sources -= [ "pepper_permission_util.cc" ]
} }
if (!enable_webrtc) { if (!enable_webrtc) {
sources -= [ "media/webrtc_logging_messages.h" ] sources -= [ "media/webrtc_logging_messages.h" ]
......
...@@ -39,6 +39,7 @@ static_library("renderer") { ...@@ -39,6 +39,7 @@ static_library("renderer") {
"//components/cdm/renderer", "//components/cdm/renderer",
"//components/data_reduction_proxy/common", "//components/data_reduction_proxy/common",
"//components/password_manager/content/renderer", "//components/password_manager/content/renderer",
"//components/pdf/renderer",
"//components/plugins/renderer", "//components/plugins/renderer",
"//components/startup_metric_utils", "//components/startup_metric_utils",
"//components/translate/content/renderer", "//components/translate/content/renderer",
......
...@@ -18,6 +18,8 @@ static_library("gcm_driver") { ...@@ -18,6 +18,8 @@ static_library("gcm_driver") {
"gcm_client_factory.h", "gcm_client_factory.h",
"gcm_client_impl.cc", "gcm_client_impl.cc",
"gcm_client_impl.h", "gcm_client_impl.h",
"gcm_connection_observer.cc",
"gcm_connection_observer.h",
"gcm_driver.cc", "gcm_driver.cc",
"gcm_driver.h", "gcm_driver.h",
"gcm_driver_android.cc", "gcm_driver_android.cc",
......
...@@ -54,79 +54,3 @@ source_set("export") { ...@@ -54,79 +54,3 @@ source_set("export") {
"content/common/content_export.h" "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") { ...@@ -113,8 +113,9 @@ source_set("browser") {
configs += [ configs += [
"//content:content_implementation", "//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) { if (toolkit_views) {
...@@ -156,11 +157,9 @@ source_set("browser") { ...@@ -156,11 +157,9 @@ source_set("browser") {
if (enable_webrtc) { if (enable_webrtc) {
sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources, sources += rebase_path(content_browser_gypi_values.webrtc_browser_sources,
".", "//content") ".", "//content")
# TODO(GYP) deps += [ "//jingle:jingle_glue" ]
#deps += [ "//jingle:glue" ]
if (is_linux) { if (is_linux) {
# TODO(GYP) #deps += [ "//third_party/libjingle:libjingle_webrtc" ] TODO(GYP)
#deps += [ "//third_party/libjingle:libjingle_webrtc" ]
} }
if (is_linux || is_mac || is_win) { if (is_linux || is_mac || is_win) {
sources += [ sources += [
...@@ -176,8 +175,7 @@ source_set("browser") { ...@@ -176,8 +175,7 @@ source_set("browser") {
] ]
} }
defines += [ "ENABLE_SCREEN_CAPTURE=1" ] 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") { ...@@ -11,12 +11,12 @@ source_set("renderer") {
configs += [ configs += [
"//content:content_implementation", "//content:content_implementation",
"//content:libjingle_stub_config",
] ]
deps = [ deps = [
"//content/renderer", "//content/renderer",
"//skia", "//skia",
"//third_party/libjingle",
"//third_party/WebKit/public:blink_headers", "//third_party/WebKit/public:blink_headers",
"//third_party/widevine/cdm:version_h", "//third_party/widevine/cdm:version_h",
"//v8", "//v8",
......
...@@ -15,7 +15,6 @@ source_set("renderer") { ...@@ -15,7 +15,6 @@ source_set("renderer") {
configs += [ configs += [
"//content:content_implementation", "//content:content_implementation",
"//content:libjingle_stub_config",
] ]
deps = [ deps = [
...@@ -129,10 +128,10 @@ source_set("renderer") { ...@@ -129,10 +128,10 @@ source_set("renderer") {
deps += [ deps += [
"//crypto", "//crypto",
"//third_party/libyuv", "//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:libjingle_webrtc", TODO(GYP)
#"../third_party/libjingle/libjingle.gyp:libpeerconnection", 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 { } else {
sources += [ sources += [
......
...@@ -68,7 +68,7 @@ static_library("test_support") { ...@@ -68,7 +68,7 @@ static_library("test_support") {
if (enable_webrtc) { if (enable_webrtc) {
# TODO(GYP) remove this when libjingle is converted. # TODO(GYP) remove this when libjingle is converted.
configs += [ "//content:libjingle_stub_config" ] configs += [ "//third_party/libjingle:jingle_direct_dependent_configs" ]
sources += [ sources += [
"../renderer/media/mock_media_stream_dispatcher.cc", "../renderer/media/mock_media_stream_dispatcher.cc",
...@@ -84,7 +84,7 @@ static_library("test_support") { ...@@ -84,7 +84,7 @@ static_library("test_support") {
deps += [ deps += [
#"//third_party/libjingle:webrtc", TODO(GYP) #"//third_party/libjingle:webrtc", TODO(GYP)
#"//third_party/libjingle:peerconnection", 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") { ...@@ -41,6 +41,8 @@ source_set("browser") {
"api/app_runtime/app_runtime_api.h", "api/app_runtime/app_runtime_api.h",
"api/app_view/app_view_internal_api.cc", "api/app_view/app_view_internal_api.cc",
"api/app_view/app_view_internal_api.h", "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.cc",
"api/async_api_function.h", "api/async_api_function.h",
"api/bluetooth/bluetooth_api.cc", "api/bluetooth/bluetooth_api.cc",
...@@ -269,10 +271,21 @@ source_set("browser") { ...@@ -269,10 +271,21 @@ source_set("browser") {
"guest_view/guest_view_manager.cc", "guest_view/guest_view_manager.cc",
"guest_view/guest_view_manager.h", "guest_view/guest_view_manager.h",
"guest_view/guest_view.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.cc",
"guest_view/web_view/web_view_guest_delegate.h", "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.cc",
"guest_view/web_view/web_view_permission_helper_delegate.h", "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.cc",
"image_loader.h", "image_loader.h",
"image_loader_factory.cc", "image_loader_factory.cc",
...@@ -327,6 +340,10 @@ source_set("browser") { ...@@ -327,6 +340,10 @@ source_set("browser") {
"verified_contents.h", "verified_contents.h",
"view_type_utils.cc", "view_type_utils.cc",
"view_type_utils.h", "view_type_utils.h",
"warning_service.cc",
"warning_service.h",
"warning_set.cc",
"warning_set.h",
] ]
deps += [ deps += [
......
...@@ -108,6 +108,8 @@ source_set("common") { ...@@ -108,6 +108,8 @@ source_set("common") {
"manifest_handlers/incognito_info.h", "manifest_handlers/incognito_info.h",
"manifest_handlers/kiosk_mode_info.cc", "manifest_handlers/kiosk_mode_info.cc",
"manifest_handlers/kiosk_mode_info.h", "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.cc",
"manifest_handlers/offline_enabled_info.h", "manifest_handlers/offline_enabled_info.h",
"manifest_handlers/permissions_parser.cc", "manifest_handlers/permissions_parser.cc",
......
...@@ -564,7 +564,7 @@ grit("net_resources") { ...@@ -564,7 +564,7 @@ grit("net_resources") {
] ]
} }
static_library("net_extras") { static_library("extras") {
sources = gypi_values.net_extras_sources sources = gypi_values.net_extras_sources
configs += [ "//build/config/compiler:wexit_time_destructors" ] configs += [ "//build/config/compiler:wexit_time_destructors" ]
deps = [ deps = [
...@@ -1104,9 +1104,9 @@ test("net_unittests") { ...@@ -1104,9 +1104,9 @@ test("net_unittests") {
defines = [] defines = []
deps = [ deps = [
":extras",
":http_server", ":http_server",
":net", ":net",
":net_extras",
":quic_tools", ":quic_tools",
":test_support", ":test_support",
"//base", "//base",
......
...@@ -66,8 +66,6 @@ static_library("base") { ...@@ -66,8 +66,6 @@ static_library("base") {
] ]
configs += [ "//build/config/compiler:wexit_time_destructors" ] configs += [ "//build/config/compiler:wexit_time_destructors" ]
# TODO(GYP) Remove when WebRTC is converted.
configs += [ "//content:webrtc_stub_config" ]
deps = [ deps = [
"//base", "//base",
...@@ -81,7 +79,7 @@ static_library("base") { ...@@ -81,7 +79,7 @@ static_library("base") {
"//third_party/libyuv", "//third_party/libyuv",
"//third_party/opus", "//third_party/opus",
"//third_party/protobuf:protobuf_lite", "//third_party/protobuf:protobuf_lite",
#"//third_party/webrtc/modules/desktop_capture", TODO(GYP) "//third_party/webrtc/modules/desktop_capture",
"//ui/base", "//ui/base",
"//ui/gfx", "//ui/gfx",
"//ui/gfx/geometry", "//ui/gfx/geometry",
...@@ -93,5 +91,10 @@ static_library("base") { ...@@ -93,5 +91,10 @@ static_library("base") {
"//remoting/proto", "//remoting/proto",
"//third_party/protobuf:protobuf_lite", "//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") { ...@@ -35,8 +35,6 @@ static_library("client") {
] ]
configs += [ "//build/config/compiler:wexit_time_destructors" ] configs += [ "//build/config/compiler:wexit_time_destructors" ]
# TODO(GYP) Remove when WebRTC is converted.
configs += [ "//content:webrtc_stub_config" ]
defines = [ "VERSION=$version_full" ] defines = [ "VERSION=$version_full" ]
...@@ -44,7 +42,7 @@ static_library("client") { ...@@ -44,7 +42,7 @@ static_library("client") {
"//remoting/base", "//remoting/base",
"//remoting/protocol", "//remoting/protocol",
"//third_party/libyuv", "//third_party/libyuv",
#"//third_party/webrtc/modules/desktop_capture", TODO(GYP) "//third_party/webrtc/modules/desktop_capture",
"//third_party/libwebm", "//third_party/libwebm",
] ]
} }
...@@ -52,7 +52,7 @@ static_library("plugin") { ...@@ -52,7 +52,7 @@ static_library("plugin") {
"//remoting/base", "//remoting/base",
"//remoting/client", "//remoting/client",
"//remoting/protocol", "//remoting/protocol",
#"//third_party/webrtc/modules/desktop_capture", TODO(GYP) "//third_party/webrtc/modules/desktop_capture",
"//ui/events:dom4_keycode_converter", "//ui/events:dom4_keycode_converter",
] ]
} }
...@@ -136,25 +136,18 @@ static_library("protocol") { ...@@ -136,25 +136,18 @@ static_library("protocol") {
] ]
configs += [ "//build/config/compiler:wexit_time_destructors" ] 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 = [ deps = [
"//base", "//base",
"//crypto", "//crypto",
"//jingle:jingle_glue",
"//jingle:notifier",
"//net", "//net",
"//remoting/base", "//remoting/base",
#'../jingle/jingle.gyp:jingle_glue', TODO(GYP) "//third_party/libjingle",
#'../jingle/jingle.gyp:notifier', TODO(GYP)
#'../third_party/libjingle/libjingle.gyp:libjingle', TODO(GYP)
] ]
forward_dependent_configs_from = [ 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") { ...@@ -249,8 +249,7 @@ static_library("libjingle") {
"source/talk/p2p/base/constants.h", "source/talk/p2p/base/constants.h",
] ]
deps = [ 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", ":libjingle_p2p_constants",
":jingle_deps" ":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