1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Note that this build file assumes rlz_use_chrome_net which is a condition in
6 # the GYP file, but is always true for Chrome builds.
9 defines = [ "RLZ_NETWORK_IMPLEMENTATION_CHROME_NET" ]
12 source_set("rlz_lib") {
14 "chromeos/lib/machine_id_chromeos.cc",
15 "chromeos/lib/rlz_value_store_chromeos.cc",
16 "chromeos/lib/rlz_value_store_chromeos.h",
17 "ios/lib/machine_id_ios.cc",
21 "lib/crc32_wrapper.cc",
24 "lib/financial_ping.cc",
25 "lib/financial_ping.h",
29 "lib/recursive_cross_process_lock_posix.cc",
30 "lib/recursive_cross_process_lock_posix.h",
34 "lib/rlz_lib_clear.cc",
36 "lib/rlz_value_store.h",
37 "lib/string_utils.cc",
39 "mac/lib/machine_id_mac.cc",
40 "mac/lib/rlz_value_store_mac.mm",
41 "mac/lib/rlz_value_store_mac.h",
42 "win/lib/lib_mutex.cc",
43 "win/lib/lib_mutex.h",
44 "win/lib/machine_deal.cc",
45 "win/lib/machine_deal.h",
46 "win/lib/machine_id_win.cc",
47 "win/lib/process_info.cc",
48 "win/lib/process_info.h",
49 "win/lib/registry_util.cc",
50 "win/lib/registry_util.h",
51 "win/lib/rlz_lib_win.cc",
52 "win/lib/rlz_value_store_registry.cc",
53 "win/lib/rlz_value_store_registry.h",
56 public_configs = [ ":rlz_config" ]
60 "//base/third_party/dynamic_annotations",
67 # These _mac files are also used on iOS.
68 set_sources_assignment_filter([])
70 "mac/lib/rlz_value_store_mac.mm",
71 "mac/lib/rlz_value_store_mac.h",
73 set_sources_assignment_filter(sources_assignment_filter)
75 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
76 cflags = [ "/wd4267" ]
80 source_set("test_support") {
83 "test/rlz_test_helpers.cc",
84 "test/rlz_test_helpers.h",
89 "//base/test:test_support",
94 test("rlz_unittests") {
96 "lib/crc32_unittest.cc",
97 "lib/crc8_unittest.cc",
98 "lib/financial_ping_test.cc",
99 "lib/lib_values_unittest.cc",
100 "lib/machine_id_unittest.cc",
101 "lib/rlz_lib_test.cc",
102 "lib/string_utils_unittest.cc",
103 "test/rlz_unittest_main.cc",
104 "win/lib/machine_deal_test.cc",
112 "//net:test_support",
115 "//third_party/zlib",
119 executable("rlz_id") {
121 "examples/rlz_id.cc",
129 shared_library("rlz") {
131 "win/dll/dll_main.cc",
132 "win/dll/exports.cc",
136 "//third_party/zlib",