OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 'variables': { | 8 'variables': { |
9 # Set force_rlz_use_chrome_net to 1 to use chrome's network stack instead | 9 # Set force_rlz_use_chrome_net to 1 to use chrome's network stack instead |
10 # of win inet. | 10 # of win inet. |
11 'force_rlz_use_chrome_net%': 0, | 11 'force_rlz_use_chrome_net%': 0, |
12 }, | 12 }, |
13 'conditions': [ | 13 'conditions': [ |
14 ['force_rlz_use_chrome_net or OS=="mac"', { | 14 ['force_rlz_use_chrome_net or OS=="mac"', { |
15 'rlz_use_chrome_net%': 1, | 15 'rlz_use_chrome_net%': 1, |
16 }, { | 16 }, { |
17 'rlz_use_chrome_net%': 0, | 17 'rlz_use_chrome_net%': 0, |
18 }], | 18 }], |
19 ], | 19 ], |
20 }, | 20 }, |
21 'target_defaults': { | 21 'target_defaults': { |
22 'include_dirs': [ | 22 'include_dirs': [ |
23 '..', | 23 '..', |
24 ], | 24 ], |
25 }, | 25 }, |
26 'targets': [ | 26 'targets': [ |
27 { | 27 { |
28 'target_name': 'rlz_lib', | 28 'target_name': 'rlz_lib', |
29 'type': 'static_library', | 29 'type': 'static_library', |
30 'include_dirs': [], | |
31 'dependencies': [ | 30 'dependencies': [ |
32 '../base/base.gyp:base', | 31 '../base/base.gyp:base', |
33 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 32 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
34 ], | 33 ], |
35 'sources': [ | 34 'sources': [ |
36 'lib/assert.cc', | 35 'lib/assert.cc', |
37 'lib/assert.h', | 36 'lib/assert.h', |
38 'lib/crc32.h', | 37 'lib/crc32.h', |
39 'lib/crc32_wrapper.cc', | 38 'lib/crc32_wrapper.cc', |
40 'lib/crc8.h', | 39 'lib/crc8.h', |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 'defines': [ | 91 'defines': [ |
93 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET', | 92 'RLZ_NETWORK_IMPLEMENTATION_WIN_INET', |
94 ], | 93 ], |
95 }, | 94 }, |
96 }], | 95 }], |
97 ], | 96 ], |
98 }, | 97 }, |
99 { | 98 { |
100 'target_name': 'rlz_unittests', | 99 'target_name': 'rlz_unittests', |
101 'type': 'executable', | 100 'type': 'executable', |
102 'include_dirs': [], | |
103 'dependencies': [ | 101 'dependencies': [ |
104 ':rlz_lib', | 102 ':rlz_lib', |
105 '../base/base.gyp:base', | 103 '../base/base.gyp:base', |
106 '../testing/gmock.gyp:gmock', | 104 '../testing/gmock.gyp:gmock', |
107 '../testing/gtest.gyp:gtest', | 105 '../testing/gtest.gyp:gtest', |
108 '../third_party/zlib/zlib.gyp:zlib', | 106 '../third_party/zlib/zlib.gyp:zlib', |
109 ], | 107 ], |
110 'sources': [ | 108 'sources': [ |
111 'lib/crc32_unittest.cc', | 109 'lib/crc32_unittest.cc', |
112 'lib/crc8_unittest.cc', | 110 'lib/crc8_unittest.cc', |
113 'lib/financial_ping_test.cc', | 111 'lib/financial_ping_test.cc', |
114 'lib/lib_values_unittest.cc', | 112 'lib/lib_values_unittest.cc', |
115 'lib/machine_id_unittest.cc', | 113 'lib/machine_id_unittest.cc', |
116 'lib/rlz_lib_test.cc', | 114 'lib/rlz_lib_test.cc', |
117 'lib/string_utils_unittest.cc', | 115 'lib/string_utils_unittest.cc', |
118 'test/rlz_test_helpers.cc', | 116 'test/rlz_test_helpers.cc', |
119 'test/rlz_test_helpers.h', | 117 'test/rlz_test_helpers.h', |
120 'test/rlz_unittest_main.cc', | 118 'test/rlz_unittest_main.cc', |
121 'win/lib/machine_deal_test.cc', | 119 'win/lib/machine_deal_test.cc', |
122 ], | 120 ], |
123 'conditions': [ | 121 'conditions': [ |
124 ['rlz_use_chrome_net==1', { | 122 ['rlz_use_chrome_net==1', { |
125 'dependencies': [ | 123 'dependencies': [ |
126 '../net/net.gyp:net_test_support', | 124 '../net/net.gyp:net_test_support', |
127 ], | 125 ], |
128 }] | 126 }] |
129 ], | 127 ], |
130 }, | 128 }, |
| 129 { |
| 130 'target_name': 'rlz_id', |
| 131 'type': 'executable', |
| 132 'dependencies': [ |
| 133 ':rlz_lib', |
| 134 ], |
| 135 'sources': [ |
| 136 'examples/rlz_id.cc', |
| 137 ], |
| 138 }, |
131 ], | 139 ], |
132 'conditions': [ | 140 'conditions': [ |
133 ['OS=="win"', { | 141 ['OS=="win"', { |
134 'targets': [ | 142 'targets': [ |
135 { | 143 { |
136 'target_name': 'rlz', | 144 'target_name': 'rlz', |
137 'type': 'shared_library', | 145 'type': 'shared_library', |
138 'include_dirs': [], | |
139 'sources': [ | 146 'sources': [ |
140 'win/dll/dll_main.cc', | 147 'win/dll/dll_main.cc', |
141 'win/dll/exports.cc', | 148 'win/dll/exports.cc', |
142 ], | 149 ], |
143 'dependencies': [ | 150 'dependencies': [ |
144 ':rlz_lib', | 151 ':rlz_lib', |
145 '../third_party/zlib/zlib.gyp:zlib', | 152 '../third_party/zlib/zlib.gyp:zlib', |
146 ], | 153 ], |
147 }, | 154 }, |
148 ], | 155 ], |
149 }], | 156 }], |
150 ], | 157 ], |
151 } | 158 } |
OLD | NEW |