1 # Copyright (c) 2012 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.
9 # Set force_rlz_use_chrome_net to 1 to use chrome's network stack instead
11 'force_rlz_use_chrome_net%': 0,
14 ['force_rlz_use_chrome_net or OS=="mac"', {
15 'rlz_use_chrome_net%': 1,
17 'rlz_use_chrome_net%': 0,
28 'target_name': 'rlz_lib',
29 'type': 'static_library',
32 '../base/base.gyp:base',
33 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
39 'lib/crc32_wrapper.cc',
42 'lib/financial_ping.cc',
43 'lib/financial_ping.h',
50 'lib/rlz_lib_clear.cc',
52 'lib/rlz_value_store.h',
53 'lib/string_utils.cc',
55 'mac/lib/machine_id_mac.cc',
56 'mac/lib/rlz_value_store_mac.mm',
57 'mac/lib/rlz_value_store_mac.h',
58 'win/lib/lib_mutex.cc',
59 'win/lib/lib_mutex.h',
60 'win/lib/machine_deal.cc',
61 'win/lib/machine_deal.h',
62 'win/lib/machine_id_win.cc',
63 'win/lib/process_info.cc',
64 'win/lib/process_info.h',
65 'win/lib/registry_util.cc',
66 'win/lib/registry_util.h',
68 'win/lib/rlz_lib_win.cc',
69 'win/lib/rlz_value_store_registry.cc',
70 'win/lib/rlz_value_store_registry.h',
71 'win/lib/vista_winnt.h',
74 ['rlz_use_chrome_net==1', {
76 'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET',
78 'direct_dependent_settings': {
80 'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET',
84 '../build/temp_gyp/googleurl.gyp:googleurl',
89 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET',
91 'direct_dependent_settings': {
93 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET',
100 'target_name': 'rlz_unittests',
101 'type': 'executable',
105 '../base/base.gyp:base',
106 '../testing/gmock.gyp:gmock',
107 '../testing/gtest.gyp:gtest',
108 '../third_party/zlib/zlib.gyp:zlib',
111 'lib/crc32_unittest.cc',
112 'lib/crc8_unittest.cc',
113 'lib/financial_ping_test.cc',
114 'lib/lib_values_unittest.cc',
115 'lib/machine_id_unittest.cc',
116 'lib/rlz_lib_test.cc',
117 'lib/string_utils_unittest.cc',
118 'test/rlz_test_helpers.cc',
119 'test/rlz_test_helpers.h',
120 'test/rlz_unittest_main.cc',
121 'win/lib/machine_deal_test.cc',
124 ['rlz_use_chrome_net==1', {
126 '../net/net.gyp:net_test_support',
136 'target_name': 'rlz',
137 'type': 'shared_library',
140 'win/dll/dll_main.cc',
141 'win/dll/exports.cc',
145 '../third_party/zlib/zlib.gyp:zlib',