summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn20
-rw-r--r--build/config/BUILD.gn4
-rw-r--r--chrome/BUILD.gn16
-rw-r--r--chrome/browser/BUILD.gn35
-rw-r--r--chrome/browser/ui/BUILD.gn6
-rw-r--r--chrome/common/BUILD.gn10
-rw-r--r--chrome/renderer/BUILD.gn10
-rw-r--r--chrome/utility/BUILD.gn2
-rw-r--r--components/autofill/core/common/BUILD.gn8
-rw-r--r--components/dom_distiller/core/BUILD.gn15
-rw-r--r--components/gcm_driver.gypi1
-rw-r--r--components/gcm_driver/BUILD.gn13
-rw-r--r--components/sessions/BUILD.gn2
-rw-r--r--third_party/libaddressinput/BUILD.gn19
14 files changed, 102 insertions, 59 deletions
diff --git a/BUILD.gn b/BUILD.gn
index a3553a8..8aef7ca 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -25,12 +25,9 @@ group("root") {
"//cc/blink",
"//chrome/browser",
"//chrome/browser/devtools",
- "//chrome/browser/ui",
- "//chrome/browser/ui/views",
"//chrome/common",
"//chrome/plugin",
"//chrome/renderer",
- "//chrome/service",
"//chrome/utility",
"//components:all_components",
"//content",
@@ -78,7 +75,6 @@ group("root") {
"//third_party/iccjpeg",
"//third_party/icu",
"//third_party/leveldatabase",
- "//third_party/libaddressinput",
"//third_party/libphonenumber",
"//third_party/libjingle",
"//third_party/libpng",
@@ -183,15 +179,12 @@ group("root") {
deps -= [
"//apps", # Needs testing.
- "//chrome/browser", # Blocked on content.
- "//chrome/browser/devtools", # Blocked on content.
- "//chrome/browser/ui", # Blocked on content.
- "//chrome/browser/ui/views", # Blocked on content.
- "//chrome/common", # Blocked on content.
- "//chrome/plugin", # Blocked on content.
- "//chrome/renderer", # Blocked on content.
- "//chrome/service", # Blocked on content.
- "//chrome/utility", # Blocked on content.
+ "//chrome/browser",
+ "//chrome/browser/devtools",
+ "//chrome/common",
+ "//chrome/plugin",
+ "//chrome/renderer",
+ "//chrome/utility",
"//content/shell:content_shell",
"//extensions/browser",
"//extensions/common",
@@ -222,7 +215,6 @@ group("root") {
"//remoting/client/plugin",
"//storage/browser",
"//third_party/cld_2",
- "//third_party/libaddressinput",
"//third_party/ffmpeg",
"//ui/app_list",
"//ui/web_dialogs",
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn
index 7138336..45b61cf 100644
--- a/build/config/BUILD.gn
+++ b/build/config/BUILD.gn
@@ -31,7 +31,6 @@ config("feature_flags") {
# TODO(brettw) most of these need to be parameterized.
defines = [
"CHROMIUM_BUILD",
- "ENABLE_NOTIFICATIONS",
"ENABLE_EGLIMAGE=1",
"ENABLE_BACKGROUND=1",
"V8_DEPRECATION_WARNINGS", # Don't use deprecated V8 APIs anywhere.
@@ -43,6 +42,9 @@ config("feature_flags") {
if (enable_mdns) {
defines += [ "ENABLE_MDNS=1" ]
}
+ if (enable_notifications) {
+ defines += [ "ENABLE_NOTIFICATIONS" ]
+ }
if (enable_pepper_cdms) {
# TODO(brettw) should probably be "=1"
defines += [ "ENABLE_PEPPER_CDMS" ]
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index ba69e8f..423aa5b 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -8,6 +8,8 @@ import("//build/config/ui.gni")
import("//chrome/chrome_repack_locales.gni")
import("//chrome/version.gni")
+if (!is_android) {
+
# TODO(GYP) for Windows need to the the reorder-imports step which probably
# means adding another target and renaming this to chrome_initial like in GYP.
executable("chrome") {
@@ -104,14 +106,16 @@ executable("chrome") {
}
- if (!is_mac && !is_android) {
- # On Mac this is done in chrome_dll.gypi. Android doesn't use pdfium.
+ if (!is_mac) {
+ # On Mac this is done in chrome_dll.gypi.
datadeps += [ "//pdf" ]
# TODO(GYP) pdf linux symbols
}
}
+} # !is_android
+
shared_library("main_dll") {
configs += [ "//build/config/compiler:wexit_time_destructors" ]
@@ -372,8 +376,6 @@ repack("packed_extra_resources") {
"$root_gen_dir/blink/public/resources/blink_resources.pak",
"$root_gen_dir/content/browser/tracing/tracing_resources.pak",
"$root_gen_dir/content/content_resources.pak",
- "$root_gen_dir/extensions/extensions_renderer_resources.pak",
- "$root_gen_dir/extensions/extensions_resources.pak",
]
}
if (is_chromeos) {
@@ -381,7 +383,11 @@ repack("packed_extra_resources") {
deps += [ "//ui/file_manager:resources" ]
}
if (enable_extensions) {
- sources += [ "$root_gen_dir/chrome/extensions_api_resources.pak" ]
+ sources += [
+ "$root_gen_dir/chrome/extensions_api_resources.pak",
+ "$root_gen_dir/extensions/extensions_renderer_resources.pak",
+ "$root_gen_dir/extensions/extensions_resources.pak",
+ ]
deps += [ "//chrome/common:extensions_api_resources" ]
}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index d5f7f46..41283d7 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -6,7 +6,13 @@ import("//build/config/crypto.gni")
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//components/nacl/nacl_defines.gni")
-import("//tools/grit/grit_rule.gni")
+# //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
+# produces a conflict for the "grit" template so we have to only include one.
+if (is_android) {
+ import("//build/config/android/rules.gni")
+} else {
+ import("//tools/grit/grit_rule.gni")
+}
about_credits_file = "$target_gen_dir/about_credits.html"
additional_modules_list_file =
@@ -69,7 +75,6 @@ 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",
@@ -263,7 +268,7 @@ static_library("browser") {
# ["debug_devtools==1", { TODO(GYP)
# "defines": [
# "DEBUG_DEVTOOLS=1",
- # ],
+ # }],
if (enable_configuration_policy) {
sources += rebase_path(
gypi_values.chrome_browser_policy_shared_with_ios_sources,
@@ -286,10 +291,7 @@ static_library("browser") {
sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
".", "//chrome")
}
- if (is_android || is_ios) {
- sources += rebase_path(gypi_values.chrome_browser_mobile_sources,
- ".", "//chrome")
- } else { # Non-mobile
+ if (!is_android && !is_ios) { # Non-mobile
deps += [
"//chrome/browser/policy:path_parser",
]
@@ -304,6 +306,7 @@ static_library("browser") {
sources += rebase_path(gypi_values.chrome_browser_plugins_sources,
".", "//chrome")
deps += [
+ "//components/pdf/browser",
"//ppapi:ppapi_ipc",
"//third_party/adobe/flash:flapper_version_h",
]
@@ -459,9 +462,9 @@ static_library("browser") {
sources += rebase_path(gypi_values.chrome_browser_android_sources,
".", "//chrome")
deps += [
+ ":jni_headers",
"//components/cdm/browser",
#"../components/components.gyp:web_contents_delegate_android", TODO(GYP)
- #"chrome_browser_jni_headers", TODO(GYP)
]
deps -= [
"//third_party/libaddressinput",
@@ -616,6 +619,15 @@ static_library("browser") {
}
}
+if (is_android) {
+ # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
+ generate_jni("jni_headers") {
+ sources = rebase_path(
+ gypi_values.chrome_browser_jni_sources, ".", "//chrome")
+ jni_package = "chrome"
+ }
+}
+
# GYP version: chrome/chrome_resources.gyp:chrome_resources
# (generate_browser_resources action)
grit("resources") {
@@ -781,11 +793,16 @@ source_set("test_support") {
if (!is_ios) {
deps += [
"//components/sessions:test_support",
- "//extensions:test_support",
"//google_apis:test_support",
]
}
+ if (enable_extensions) {
+ deps += [
+ "//extensions:test_support",
+ ]
+ }
+
if (is_chromeos) {
sources += [
"chromeos/app_mode/fake_cws.cc",
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
index 3671dac..61a22ae 100644
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -38,7 +38,6 @@ static_library("ui") {
"//chrome/app/theme:theme_resources",
"//chrome/browser/history:in_memory_url_index_cache_proto",
"//chrome/browser/net:cert_logger_proto",
- "//chrome/browser/ui/views",
"//chrome/common",
"//chrome/common/net",
"//components/auto_login_parser",
@@ -83,6 +82,7 @@ static_library("ui") {
".", "//chrome")
deps += [
"//chrome/browser/devtools",
+ "//chrome/browser/ui/views",
"//chrome/browser/ui/webui/omnibox:mojo_bindings",
"//chrome/common/extensions/api",
"//chrome/common/extensions/api:api_registration",
@@ -266,9 +266,9 @@ static_library("ui") {
if (is_android) {
deps += [
+ "//chrome/browser:jni_headers",
"//crypto:platform",
#'../components/components.gyp:web_contents_delegate_android', TODO(GYP)
- #'chrome_browser_jni_headers', TODO(GYP)
]
deps -= [
"//chrome/browser/ui/views",
@@ -278,6 +278,8 @@ static_library("ui") {
]
sources += rebase_path(gypi_values.chrome_browser_ui_android_sources,
".", "//chrome")
+
+ defines += [ "CHROME_BUILD_ID=" + android_chrome_build_id ]
} else { # Non-Android.
sources += rebase_path(gypi_values.chrome_browser_ui_non_android_sources,
".", "//chrome")
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn
index ed83bad..be772a6 100644
--- a/chrome/common/BUILD.gn
+++ b/chrome/common/BUILD.gn
@@ -62,8 +62,6 @@ static_library("common") {
"//components/variations",
"//content/public/common",
"//crypto",
- "//extensions:extensions_resources",
- "//extensions/strings",
"//media/cast:net",
"//net",
"//skia",
@@ -91,8 +89,6 @@ static_library("common") {
"//components/password_manager/core/common",
"//components/signin/core/common",
"//components/translate/content/common",
- "//extensions/common",
- "//extensions/common/api",
"//ipc",
"//third_party/re2",
"//third_party/widevine/cdm:version_h",
@@ -106,6 +102,10 @@ static_library("common") {
deps += [
"//device/bluetooth",
"//device/usb",
+ "//extensions/common",
+ "//extensions/common/api",
+ "//extensions/strings",
+ "//extensions:extensions_resources",
]
}
@@ -235,7 +235,7 @@ static_library("common") {
}
}
-if (is_linux) {
+if (is_linux || is_android) {
# TODO(brettw) this duplicates "//chrome/common:version" which applies to
# Windows.
import("//chrome/version.gni")
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
index b0aa5dc..c3a98ce 100644
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -39,8 +39,6 @@ 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",
"//components/translate/core/common",
@@ -50,7 +48,6 @@ static_library("renderer") {
"//content/app/resources",
"//content/app/strings",
"//content/public/renderer",
- "//extensions:extensions_resources",
"//media/cast:net",
"//media/cast:sender",
"//media/cast/logging/proto",
@@ -78,6 +75,8 @@ static_library("renderer") {
sources += rebase_path(gypi_values.chrome_renderer_plugin_sources,
".", "..")
deps += [
+ "//components/pdf/renderer",
+ "//components/plugins/renderer",
"//ppapi:ppapi_host",
"//ppapi:ppapi_ipc",
"//ppapi:ppapi_proxy",
@@ -107,7 +106,10 @@ static_library("renderer") {
if (enable_extensions) {
sources += rebase_path(gypi_values.chrome_renderer_extensions_sources,
".", "..")
- deps += [ "//extensions/renderer" ]
+ deps += [
+ "//extensions:extensions_resources",
+ "//extensions/renderer",
+ ]
}
if (enable_webrtc) {
sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources,
diff --git a/chrome/utility/BUILD.gn b/chrome/utility/BUILD.gn
index fedccad..be7c3fd 100644
--- a/chrome/utility/BUILD.gn
+++ b/chrome/utility/BUILD.gn
@@ -64,7 +64,7 @@ static_library("utility") {
}
if (use_openssl) {
- if (!is_win && !is_mac) {
+ if (!is_win && !is_mac && !is_android) {
sources -= [ "importer/nss_decryptor.cc" ]
}
} else { # !use_openssl
diff --git a/components/autofill/core/common/BUILD.gn b/components/autofill/core/common/BUILD.gn
index 0943881..570ba55 100644
--- a/components/autofill/core/common/BUILD.gn
+++ b/components/autofill/core/common/BUILD.gn
@@ -4,14 +4,6 @@
static_library("common") {
sources = [
- # TODO(brettw) why are these "browser" files in the "common" target?
- "../browser/android/auxiliary_profile_loader_android.cc",
- "../browser/android/auxiliary_profile_loader_android.h",
- "../browser/android/auxiliary_profiles_android.cc",
- "../browser/android/auxiliary_profiles_android.h",
- "../browser/android/component_jni_registrar.cc",
- "../browser/android/component_jni_registrar.h",
- "../browser/android/personal_data_manager_android.cc",
"autofill_constants.cc",
"autofill_constants.h",
"autofill_data_validation.cc",
diff --git a/components/dom_distiller/core/BUILD.gn b/components/dom_distiller/core/BUILD.gn
index da33405..8f9a7a6 100644
--- a/components/dom_distiller/core/BUILD.gn
+++ b/components/dom_distiller/core/BUILD.gn
@@ -66,7 +66,7 @@ static_library("core") {
]
if (is_android) {
- #deps += [ ":dom_distiller_core_jni_headers" ] TODO(GYP)
+ deps += [ ":jni_headers" ]
}
}
@@ -114,3 +114,16 @@ source_set("unit_tests") {
"//testing/gtest",
]
}
+
+if (is_android) {
+ import("//build/config/android/rules.gni")
+
+ generate_jni("jni_headers") {
+ sources = [
+ "../android/java/src/org/chromium/components/dom_distiller/core/DistilledPagePrefs.java",
+ "../android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java",
+ "../android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java",
+ ]
+ jni_package = "dom_distiller_core"
+ }
+}
diff --git a/components/gcm_driver.gypi b/components/gcm_driver.gypi
index 1e9559f..c7531a9 100644
--- a/components/gcm_driver.gypi
+++ b/components/gcm_driver.gypi
@@ -145,6 +145,7 @@
'includes': [ '../build/java.gypi' ],
},
{
+ # GN version: //components/gcm_driver:jni_headers
'target_name': 'gcm_driver_jni_headers',
'type': 'none',
'sources': [
diff --git a/components/gcm_driver/BUILD.gn b/components/gcm_driver/BUILD.gn
index 45dd2a2..a446c9f 100644
--- a/components/gcm_driver/BUILD.gn
+++ b/components/gcm_driver/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# GYP version: components/gcm_driver.gypi:gcm_driver
static_library("gcm_driver") {
sources = [
"android/component_jni_registrar.cc",
@@ -100,4 +101,14 @@ static_library("test_support") {
}
}
-#TODO(GYP) gcm_driver_java gcm_driver_jni_headers
+if (is_android) {
+ import("//build/config/android/rules.gni")
+
+ # GYP version: components/gcm_driver.gypi:gcm_driver_jni_headers
+ generate_jni("jni_headers") {
+ sources = [
+ "android/java/src/org/chromium/components/gcm_driver/GCMDriver.java",
+ ]
+ jni_package = "components/gcm_driver"
+ }
+}
diff --git a/components/sessions/BUILD.gn b/components/sessions/BUILD.gn
index bc34b2f..762bc66 100644
--- a/components/sessions/BUILD.gn
+++ b/components/sessions/BUILD.gn
@@ -3,7 +3,7 @@
# found in the LICENSE file.
if (is_android) {
- import("//build/config/android/config.gn")
+ import("//build/config/android/config.gni")
}
component("sessions") {
diff --git a/third_party/libaddressinput/BUILD.gn b/third_party/libaddressinput/BUILD.gn
index 136a16e..b906270 100644
--- a/third_party/libaddressinput/BUILD.gn
+++ b/third_party/libaddressinput/BUILD.gn
@@ -4,13 +4,6 @@
import("//tools/grit/grit_rule.gni")
-# The list of files in libaddressinput.gypi.
-gypi_values = exec_script(
- "//build/gypi_to_gn.py",
- [ rebase_path("src/cpp/libaddressinput.gypi") ],
- "scope",
- [ "src/cpp/libaddressinput.gypi" ])
-
libaddressinput_util_files = [
"src/cpp/src/address_data.cc",
"src/cpp/src/address_field.cc",
@@ -132,6 +125,16 @@ static_library("util") {
]
}
+if (!is_android) {
+
+# The list of files in libaddressinput.gypi.
+gypi_values = exec_script(
+ "//build/gypi_to_gn.py",
+ [ rebase_path("src/cpp/libaddressinput.gypi") ],
+ "scope",
+ [ "src/cpp/libaddressinput.gypi" ])
+
+
# This target provides more complicated functionality like pinging servers
# for validation rules.
# GYP version: third_party/libaddressinput/libaddressinput.gyp:libaddressinput
@@ -199,3 +202,5 @@ test("libaddressinput_unittests") {
"//testing/gtest",
]
}
+
+} # !is_android