summaryrefslogtreecommitdiff
path: root/chromium/rlz
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-18 16:35:47 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-18 15:45:54 +0000
commit32f5a1c56531e4210bc4cf8d8c7825d66e081888 (patch)
treeeeeec6822f4d738d8454525233fd0e2e3a659e6d /chromium/rlz
parent99677208ff3b216fdfec551fbe548da5520cd6fb (diff)
downloadqtwebengine-chromium-32f5a1c56531e4210bc4cf8d8c7825d66e081888.tar.gz
BASELINE: Update Chromium to 87.0.4280.67
Change-Id: Ib157360be8c2ffb2c73125751a89f60e049c1d54 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/rlz')
-rw-r--r--chromium/rlz/BUILD.gn75
1 files changed, 43 insertions, 32 deletions
diff --git a/chromium/rlz/BUILD.gn b/chromium/rlz/BUILD.gn
index 175536b5182..37247ec1e56 100644
--- a/chromium/rlz/BUILD.gn
+++ b/chromium/rlz/BUILD.gn
@@ -5,8 +5,15 @@
# Note that this build file assumes rlz_use_chrome_net which is a condition in
# the GYP file, but is always true for Chrome builds.
+import("//rlz/buildflags/buildflags.gni")
import("//testing/test.gni")
+# Reset sources_assignment_filter for the BUILD.gn file to prevent
+# regression during the migration of Chromium away from the feature.
+# See docs/no_sources_assignment_filter.md for more information.
+# TODO(crbug.com/1018739): remove this when migration is done.
+set_sources_assignment_filter([])
+
config("rlz_lib_config") {
defines = [ "RLZ_NETWORK_IMPLEMENTATION_CHROME_NET" ]
}
@@ -32,12 +39,9 @@ source_set("rlz_utils") {
deps = [ "//third_party/zlib" ]
}
-if (!is_android) {
+if (enable_rlz_support) {
source_set("rlz_lib_no_network") {
sources = [
- "chromeos/lib/rlz_value_store_chromeos.cc",
- "chromeos/lib/rlz_value_store_chromeos.h",
- "ios/lib/machine_id_ios.cc",
"lib/crc8.cc",
"lib/crc8.h",
"lib/machine_deal_win.h",
@@ -49,25 +53,24 @@ if (!is_android) {
"lib/supplementary_branding.cc",
"lib/supplementary_branding.h",
"lib/time_util.h",
- "mac/lib/machine_id_mac.cc",
- "mac/lib/rlz_value_store_mac.h",
- "mac/lib/rlz_value_store_mac.mm",
- "win/lib/lib_mutex.cc",
- "win/lib/lib_mutex.h",
- "win/lib/machine_deal.cc",
- "win/lib/machine_deal.h",
- "win/lib/machine_id_win.cc",
- "win/lib/process_info.cc",
- "win/lib/process_info.h",
- "win/lib/registry_util.cc",
- "win/lib/registry_util.h",
- "win/lib/rlz_lib_win.cc",
- "win/lib/rlz_value_store_registry.cc",
- "win/lib/rlz_value_store_registry.h",
]
if (is_win) {
- sources += [ "lib/time_util_win.cc" ]
+ sources += [
+ "lib/time_util_win.cc",
+ "win/lib/lib_mutex.cc",
+ "win/lib/lib_mutex.h",
+ "win/lib/machine_deal.cc",
+ "win/lib/machine_deal.h",
+ "win/lib/machine_id_win.cc",
+ "win/lib/process_info.cc",
+ "win/lib/process_info.h",
+ "win/lib/registry_util.cc",
+ "win/lib/registry_util.h",
+ "win/lib/rlz_lib_win.cc",
+ "win/lib/rlz_value_store_registry.cc",
+ "win/lib/rlz_value_store_registry.h",
+ ]
} else {
sources += [ "lib/time_util_base.cc" ]
}
@@ -78,27 +81,32 @@ if (!is_android) {
]
if (is_chromeos) {
+ sources += [
+ "chromeos/lib/rlz_value_store_chromeos.cc",
+ "chromeos/lib/rlz_value_store_chromeos.h",
+ ]
deps += [
"//chromeos/dbus",
"//chromeos/system",
]
}
- if (is_mac) {
- frameworks = [
- "Foundation.framework",
- "IOKit.framework",
- ]
- }
-
- if (is_ios) {
- # These _mac files are also used on iOS.
- set_sources_assignment_filter([])
+ if (is_apple) {
sources += [
"mac/lib/rlz_value_store_mac.h",
"mac/lib/rlz_value_store_mac.mm",
]
- set_sources_assignment_filter(sources_assignment_filter)
+
+ frameworks = [ "Foundation.framework" ]
+
+ if (is_mac) {
+ sources += [ "mac/lib/machine_id_mac.cc" ]
+ frameworks += [ "IOKit.framework" ]
+ }
+
+ if (is_ios) {
+ sources += [ "ios/lib/machine_id_ios.cc" ]
+ }
}
if (is_posix) {
@@ -171,9 +179,12 @@ if (!is_android) {
"lib/rlz_lib_test.cc",
"lib/string_utils_unittest.cc",
"test/rlz_unittest_main.cc",
- "win/lib/machine_deal_test.cc",
]
+ if (is_win) {
+ sources += [ "win/lib/machine_deal_test.cc" ]
+ }
+
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]