diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-17 13:57:45 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-19 13:44:40 +0000 |
commit | 6ec7b8da05d21a3878bd21c691b41e675d74bb1c (patch) | |
tree | b87f250bc19413750b9bb9cdbf2da20ef5014820 /chromium/rlz | |
parent | ec02ee4181c49b61fce1c8fb99292dbb8139cc90 (diff) | |
download | qtwebengine-chromium-6ec7b8da05d21a3878bd21c691b41e675d74bb1c.tar.gz |
BASELINE: Update Chromium to 60.0.3112.70
Change-Id: I9911c2280a014d4632f254857876a395d4baed2d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/rlz')
-rw-r--r-- | chromium/rlz/BUILD.gn | 197 |
1 files changed, 109 insertions, 88 deletions
diff --git a/chromium/rlz/BUILD.gn b/chromium/rlz/BUILD.gn index 969e3fa9bd1..ce626f30613 100644 --- a/chromium/rlz/BUILD.gn +++ b/chromium/rlz/BUILD.gn @@ -11,130 +11,150 @@ config("rlz_config") { defines = [ "RLZ_NETWORK_IMPLEMENTATION_CHROME_NET" ] } -source_set("rlz_lib") { +source_set("rlz_utils") { sources = [ - "chromeos/lib/machine_id_chromeos.cc", - "chromeos/lib/rlz_value_store_chromeos.cc", - "chromeos/lib/rlz_value_store_chromeos.h", - "ios/lib/machine_id_ios.cc", "lib/assert.cc", "lib/assert.h", "lib/crc32.h", "lib/crc32_wrapper.cc", - "lib/crc8.cc", - "lib/crc8.h", - "lib/financial_ping.cc", - "lib/financial_ping.h", "lib/lib_values.cc", "lib/lib_values.h", - "lib/machine_id.cc", - "lib/machine_id.h", - "lib/recursive_cross_process_lock_posix.cc", - "lib/recursive_cross_process_lock_posix.h", + "lib/net_response_check.cc", + "lib/net_response_check.h", + "lib/rlz_api.h", "lib/rlz_enums.h", - "lib/rlz_lib.cc", - "lib/rlz_lib.h", - "lib/rlz_lib_clear.cc", - "lib/rlz_value_store.h", "lib/string_utils.cc", "lib/string_utils.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", ] - # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. - configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] - public_configs = [ ":rlz_config" ] deps = [ "//base", - "//base/third_party/dynamic_annotations", "//net", "//third_party/zlib", "//url", ] +} - if (is_mac) { - libs = [ - "Foundation.framework", - "IOKit.framework", - ] - } - - if (is_ios) { - # These _mac files are also used on iOS. - set_sources_assignment_filter([]) - sources += [ +if (!is_android) { + source_set("rlz_lib") { + sources = [ + "chromeos/lib/machine_id_chromeos.cc", + "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/financial_ping.cc", + "lib/financial_ping.h", + "lib/machine_id.cc", + "lib/machine_id.h", + "lib/recursive_cross_process_lock_posix.cc", + "lib/recursive_cross_process_lock_posix.h", + "lib/rlz_lib.cc", + "lib/rlz_lib.h", + "lib/rlz_lib_clear.cc", + "lib/rlz_value_store.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", + ] + + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] + + public_configs = [ ":rlz_config" ] + + deps = [ + ":rlz_utils", + "//base", + "//base/third_party/dynamic_annotations", + "//net", + "//url", ] - set_sources_assignment_filter(sources_assignment_filter) + + if (is_mac) { + libs = [ + "Foundation.framework", + "IOKit.framework", + ] + } + + if (is_ios) { + # These _mac files are also used on iOS. + set_sources_assignment_filter([]) + sources += [ + "mac/lib/rlz_value_store_mac.h", + "mac/lib/rlz_value_store_mac.mm", + ] + set_sources_assignment_filter(sources_assignment_filter) + } } -} -source_set("test_support") { - testonly = true - sources = [ - "test/rlz_test_helpers.cc", - "test/rlz_test_helpers.h", - ] - deps = [ - ":rlz_lib", - "//base", - "//base/test:test_support", - "//testing/gtest", - ] -} + source_set("test_support") { + testonly = true + sources = [ + "test/rlz_test_helpers.cc", + "test/rlz_test_helpers.h", + ] + deps = [ + ":rlz_lib", + "//base", + "//base/test:test_support", + "//testing/gtest", + ] + } -test("rlz_unittests") { - sources = [ - "lib/crc32_unittest.cc", - "lib/crc8_unittest.cc", - "lib/financial_ping_test.cc", - "lib/lib_values_unittest.cc", - "lib/machine_id_unittest.cc", - "lib/rlz_lib_test.cc", - "lib/string_utils_unittest.cc", - "test/rlz_unittest_main.cc", - "win/lib/machine_deal_test.cc", - ] + test("rlz_unittests") { + sources = [ + "lib/crc32_unittest.cc", + "lib/crc8_unittest.cc", + "lib/financial_ping_test.cc", + "lib/lib_values_unittest.cc", + "lib/machine_id_unittest.cc", + "lib/rlz_lib_test.cc", + "lib/string_utils_unittest.cc", + "test/rlz_unittest_main.cc", + "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" ] + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] - deps = [ - ":rlz_lib", - ":test_support", - "//base", - "//net:test_support", - "//testing/gmock", - "//testing/gtest", - "//third_party/zlib", - ] + deps = [ + ":rlz_lib", + ":rlz_utils", + ":test_support", + "//base", + "//net:test_support", + "//testing/gmock", + "//testing/gtest", + "//third_party/zlib", + ] + } } -if (!is_ios) { +if (!is_ios && !is_android) { executable("rlz_id") { sources = [ "examples/rlz_id.cc", ] deps = [ ":rlz_lib", - "//build/config/sanitizers:deps", + "//build/config:exe_and_shlib_deps", "//build/win:default_exe_manifest", ] } @@ -148,7 +168,8 @@ if (is_win) { ] deps = [ ":rlz_lib", - "//build/config/sanitizers:deps", + ":rlz_utils", + "//build/config:exe_and_shlib_deps", "//third_party/zlib", ] } |