OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Note that this build file assumes rlz_use_chrome_net which is a condition in | 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. | 6 # the GYP file, but is always true for Chrome builds. |
7 | 7 |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 | 9 |
10 config("rlz_config") { | 10 config("rlz_config") { |
11 defines = [ "RLZ_NETWORK_IMPLEMENTATION_CHROME_NET" ] | 11 defines = [ "RLZ_NETWORK_IMPLEMENTATION_CHROME_NET" ] |
12 } | 12 } |
13 | 13 |
14 source_set("rlz_lib") { | 14 source_set("rlz_lib") { |
15 sources = [ | 15 sources = [ |
16 "chromeos/lib/machine_id_chromeos.cc", | 16 "chromeos/lib/machine_id_chromeos.cc", |
17 "chromeos/lib/rlz_value_store_chromeos.cc", | 17 "chromeos/lib/rlz_value_store_chromeos.cc", |
18 "chromeos/lib/rlz_value_store_chromeos.h", | 18 "chromeos/lib/rlz_value_store_chromeos.h", |
19 "ios/lib/machine_id_ios.cc", | 19 "ios/lib/machine_id_ios.cc", |
20 "lib/assert.cc", | |
21 "lib/assert.h", | |
22 "lib/crc32.h", | |
23 "lib/crc32_wrapper.cc", | |
24 "lib/crc8.cc", | 20 "lib/crc8.cc", |
25 "lib/crc8.h", | 21 "lib/crc8.h", |
26 "lib/financial_ping.cc", | 22 "lib/financial_ping.cc", |
27 "lib/financial_ping.h", | 23 "lib/financial_ping.h", |
28 "lib/lib_values.cc", | |
29 "lib/lib_values.h", | |
30 "lib/machine_id.cc", | 24 "lib/machine_id.cc", |
31 "lib/machine_id.h", | 25 "lib/machine_id.h", |
32 "lib/recursive_cross_process_lock_posix.cc", | 26 "lib/recursive_cross_process_lock_posix.cc", |
33 "lib/recursive_cross_process_lock_posix.h", | 27 "lib/recursive_cross_process_lock_posix.h", |
34 "lib/rlz_enums.h", | |
35 "lib/rlz_lib.cc", | 28 "lib/rlz_lib.cc", |
36 "lib/rlz_lib.h", | 29 "lib/rlz_lib.h", |
37 "lib/rlz_lib_clear.cc", | 30 "lib/rlz_lib_clear.cc", |
38 "lib/rlz_value_store.h", | 31 "lib/rlz_value_store.h", |
39 "lib/string_utils.cc", | |
40 "lib/string_utils.h", | |
41 "mac/lib/machine_id_mac.cc", | 32 "mac/lib/machine_id_mac.cc", |
42 "mac/lib/rlz_value_store_mac.h", | 33 "mac/lib/rlz_value_store_mac.h", |
43 "mac/lib/rlz_value_store_mac.mm", | 34 "mac/lib/rlz_value_store_mac.mm", |
44 "win/lib/lib_mutex.cc", | 35 "win/lib/lib_mutex.cc", |
45 "win/lib/lib_mutex.h", | 36 "win/lib/lib_mutex.h", |
46 "win/lib/machine_deal.cc", | 37 "win/lib/machine_deal.cc", |
47 "win/lib/machine_deal.h", | 38 "win/lib/machine_deal.h", |
48 "win/lib/machine_id_win.cc", | 39 "win/lib/machine_id_win.cc", |
49 "win/lib/process_info.cc", | 40 "win/lib/process_info.cc", |
50 "win/lib/process_info.h", | 41 "win/lib/process_info.h", |
51 "win/lib/registry_util.cc", | 42 "win/lib/registry_util.cc", |
52 "win/lib/registry_util.h", | 43 "win/lib/registry_util.h", |
53 "win/lib/rlz_lib_win.cc", | 44 "win/lib/rlz_lib_win.cc", |
54 "win/lib/rlz_value_store_registry.cc", | 45 "win/lib/rlz_value_store_registry.cc", |
55 "win/lib/rlz_value_store_registry.h", | 46 "win/lib/rlz_value_store_registry.h", |
56 ] | 47 ] |
57 | 48 |
58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 49 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
59 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 50 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
60 | 51 |
61 public_configs = [ ":rlz_config" ] | 52 public_configs = [ ":rlz_config" ] |
62 | 53 |
63 deps = [ | 54 deps = [ |
55 ":rlz_utils", | |
64 "//base", | 56 "//base", |
65 "//base/third_party/dynamic_annotations", | 57 "//base/third_party/dynamic_annotations", |
66 "//net", | 58 "//net", |
67 "//third_party/zlib", | 59 "//third_party/zlib", |
68 "//url", | 60 "//url", |
Roger Tawa OOO till Jul 10th
2017/05/05 15:31:28
Do we still need all these deps here?
Yusuf
2017/05/05 17:14:57
We dont need zlib, but financial_ping.cc ends up u
| |
69 ] | 61 ] |
70 | 62 |
71 if (is_mac) { | 63 if (is_mac) { |
72 libs = [ | 64 libs = [ |
73 "Foundation.framework", | 65 "Foundation.framework", |
74 "IOKit.framework", | 66 "IOKit.framework", |
75 ] | 67 ] |
76 } | 68 } |
77 | 69 |
78 if (is_ios) { | 70 if (is_ios) { |
79 # These _mac files are also used on iOS. | 71 # These _mac files are also used on iOS. |
80 set_sources_assignment_filter([]) | 72 set_sources_assignment_filter([]) |
81 sources += [ | 73 sources += [ |
82 "mac/lib/rlz_value_store_mac.h", | 74 "mac/lib/rlz_value_store_mac.h", |
83 "mac/lib/rlz_value_store_mac.mm", | 75 "mac/lib/rlz_value_store_mac.mm", |
84 ] | 76 ] |
85 set_sources_assignment_filter(sources_assignment_filter) | 77 set_sources_assignment_filter(sources_assignment_filter) |
86 } | 78 } |
87 } | 79 } |
88 | 80 |
81 source_set("rlz_utils") { | |
82 sources = [ | |
83 "lib/assert.cc", | |
84 "lib/assert.h", | |
85 "lib/crc32.h", | |
86 "lib/crc32_wrapper.cc", | |
87 "lib/lib_values.cc", | |
88 "lib/lib_values.h", | |
89 "lib/net_response_check.cc", | |
90 "lib/net_response_check.h", | |
91 "lib/rlz_enums.h", | |
92 "lib/string_utils.cc", | |
93 "lib/string_utils.h", | |
94 ] | |
95 | |
96 public_configs = [ ":rlz_config" ] | |
97 | |
98 deps = [ | |
99 "//base", | |
100 "//net", | |
101 "//third_party/zlib", | |
102 "//url", | |
103 ] | |
104 } | |
105 | |
89 source_set("test_support") { | 106 source_set("test_support") { |
90 testonly = true | 107 testonly = true |
91 sources = [ | 108 sources = [ |
92 "test/rlz_test_helpers.cc", | 109 "test/rlz_test_helpers.cc", |
93 "test/rlz_test_helpers.h", | 110 "test/rlz_test_helpers.h", |
94 ] | 111 ] |
95 deps = [ | 112 deps = [ |
96 ":rlz_lib", | 113 ":rlz_lib", |
97 "//base", | 114 "//base", |
98 "//base/test:test_support", | 115 "//base/test:test_support", |
(...skipping 12 matching lines...) Expand all Loading... | |
111 "lib/string_utils_unittest.cc", | 128 "lib/string_utils_unittest.cc", |
112 "test/rlz_unittest_main.cc", | 129 "test/rlz_unittest_main.cc", |
113 "win/lib/machine_deal_test.cc", | 130 "win/lib/machine_deal_test.cc", |
114 ] | 131 ] |
115 | 132 |
116 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 133 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
117 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 134 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
118 | 135 |
119 deps = [ | 136 deps = [ |
120 ":rlz_lib", | 137 ":rlz_lib", |
138 ":rlz_utils", | |
121 ":test_support", | 139 ":test_support", |
122 "//base", | 140 "//base", |
123 "//net:test_support", | 141 "//net:test_support", |
124 "//testing/gmock", | 142 "//testing/gmock", |
125 "//testing/gtest", | 143 "//testing/gtest", |
126 "//third_party/zlib", | 144 "//third_party/zlib", |
127 ] | 145 ] |
128 } | 146 } |
129 | 147 |
130 if (!is_ios) { | 148 if (!is_ios) { |
(...skipping 10 matching lines...) Expand all Loading... | |
141 } | 159 } |
142 | 160 |
143 if (is_win) { | 161 if (is_win) { |
144 shared_library("rlz") { | 162 shared_library("rlz") { |
145 sources = [ | 163 sources = [ |
146 "win/dll/dll_main.cc", | 164 "win/dll/dll_main.cc", |
147 "win/dll/exports.cc", | 165 "win/dll/exports.cc", |
148 ] | 166 ] |
149 deps = [ | 167 deps = [ |
150 ":rlz_lib", | 168 ":rlz_lib", |
169 ":rlz_utils", | |
151 "//build/config/sanitizers:deps", | 170 "//build/config/sanitizers:deps", |
152 "//third_party/zlib", | 171 "//third_party/zlib", |
153 ] | 172 ] |
154 } | 173 } |
155 } | 174 } |
OLD | NEW |