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 # Force rlz to use chrome's networking stack.
10 'force_rlz_use_chrome_net%': 1,
13 ['force_rlz_use_chrome_net or OS!="win"', {
14 'rlz_use_chrome_net%': 1,
16 'rlz_use_chrome_net%': 0,
27 'target_name': 'rlz_lib',
28 'type': 'static_library',
30 '../base/base.gyp:base',
31 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
34 'chromeos/lib/machine_id_chromeos.cc',
35 'chromeos/lib/rlz_value_store_chromeos.cc',
36 'chromeos/lib/rlz_value_store_chromeos.h',
40 'lib/crc32_wrapper.cc',
43 'lib/financial_ping.cc',
44 'lib/financial_ping.h',
48 'lib/recursive_cross_process_lock_posix.cc',
49 'lib/recursive_cross_process_lock_posix.h',
53 'lib/rlz_lib_clear.cc',
55 'lib/rlz_value_store.h',
56 'lib/string_utils.cc',
58 'mac/lib/machine_id_mac.cc',
59 'mac/lib/rlz_value_store_mac.mm',
60 'mac/lib/rlz_value_store_mac.h',
61 'win/lib/lib_mutex.cc',
62 'win/lib/lib_mutex.h',
63 'win/lib/machine_deal.cc',
64 'win/lib/machine_deal.h',
65 'win/lib/machine_id_win.cc',
66 'win/lib/process_info.cc',
67 'win/lib/process_info.h',
68 'win/lib/registry_util.cc',
69 'win/lib/registry_util.h',
71 'win/lib/rlz_lib_win.cc',
72 'win/lib/rlz_value_store_registry.cc',
73 'win/lib/rlz_value_store_registry.h',
74 'win/lib/vista_winnt.h',
77 ['rlz_use_chrome_net==1', {
79 'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET',
81 'direct_dependent_settings': {
83 'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET',
87 '../build/temp_gyp/googleurl.gyp:googleurl',
92 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET',
94 'direct_dependent_settings': {
96 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET',
103 'target_name': 'rlz_unittests',
104 'type': 'executable',
107 '../base/base.gyp:base',
108 '../base/base.gyp:base_prefs',
109 '../testing/gmock.gyp:gmock',
110 '../testing/gtest.gyp:gtest',
111 '../third_party/zlib/zlib.gyp:zlib',
114 'lib/crc32_unittest.cc',
115 'lib/crc8_unittest.cc',
116 'lib/financial_ping_test.cc',
117 'lib/lib_values_unittest.cc',
118 'lib/machine_id_unittest.cc',
119 'lib/rlz_lib_test.cc',
120 'lib/string_utils_unittest.cc',
121 'test/rlz_test_helpers.cc',
122 'test/rlz_test_helpers.h',
123 'test/rlz_unittest_main.cc',
124 'win/lib/machine_deal_test.cc',
127 ['rlz_use_chrome_net==1', {
129 '../net/net.gyp:net_test_support',
135 'target_name': 'rlz_id',
136 'type': 'executable',
141 'examples/rlz_id.cc',
149 'target_name': 'rlz',
150 'type': 'shared_library',
152 'win/dll/dll_main.cc',
153 'win/dll/exports.cc',
157 '../third_party/zlib/zlib.gyp:zlib',