Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / rlz / rlz.gyp
blob528413411c24246efc9da77b5c6740e0a52f8591
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.
6   'variables': {
7     'chromium_code': 1,
8     'variables': {
9       # Set force_rlz_use_chrome_net to 1 to use chrome's network stack instead
10       # of win inet.
11       'force_rlz_use_chrome_net%': 0,
12     },
13     'conditions': [
14       ['force_rlz_use_chrome_net or OS=="mac"', {
15         'rlz_use_chrome_net%': 1,
16       }, {
17         'rlz_use_chrome_net%': 0,
18       }],
19     ],
20   },
21   'target_defaults': {
22     'include_dirs': [
23       '..',
24     ],
25   },
26   'targets': [
27     {
28       'target_name': 'rlz_lib',
29       'type': 'static_library',
30       'dependencies': [
31         '../base/base.gyp:base',
32         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
33       ],
34       'sources': [
35         'lib/assert.cc',
36         'lib/assert.h',
37         'lib/crc32.h',
38         'lib/crc32_wrapper.cc',
39         'lib/crc8.h',
40         'lib/crc8.cc',
41         'lib/financial_ping.cc',
42         'lib/financial_ping.h',
43         'lib/lib_values.cc',
44         'lib/machine_id.cc',
45         'lib/machine_id.h',
46         'lib/rlz_enums.h',
47         'lib/rlz_lib.cc',
48         'lib/rlz_lib.h',
49         'lib/rlz_lib_clear.cc',
50         'lib/lib_values.h',
51         'lib/rlz_value_store.h',
52         'lib/string_utils.cc',
53         'lib/string_utils.h',
54         'mac/lib/machine_id_mac.cc',
55         'mac/lib/rlz_value_store_mac.mm',
56         'mac/lib/rlz_value_store_mac.h',
57         'win/lib/lib_mutex.cc',
58         'win/lib/lib_mutex.h',
59         'win/lib/machine_deal.cc',
60         'win/lib/machine_deal.h',
61         'win/lib/machine_id_win.cc',
62         'win/lib/process_info.cc',
63         'win/lib/process_info.h',
64         'win/lib/registry_util.cc',
65         'win/lib/registry_util.h',
66         'win/lib/rlz_lib.h',
67         'win/lib/rlz_lib_win.cc',
68         'win/lib/rlz_value_store_registry.cc',
69         'win/lib/rlz_value_store_registry.h',
70         'win/lib/vista_winnt.h',
71       ],
72       'conditions': [
73         ['rlz_use_chrome_net==1', {
74           'defines': [
75             'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET',
76           ],
77           'direct_dependent_settings': {
78             'defines': [
79               'RLZ_NETWORK_IMPLEMENTATION_CHROME_NET',
80             ],
81           },
82           'dependencies': [
83             '../build/temp_gyp/googleurl.gyp:googleurl',
84             '../net/net.gyp:net',
85           ],
86         }, {
87           'defines': [
88             'RLZ_NETWORK_IMPLEMENTATION_WIN_INET',
89           ],
90           'direct_dependent_settings': {
91             'defines': [
92               'RLZ_NETWORK_IMPLEMENTATION_WIN_INET',
93             ],
94           },
95         }],
96       ],
97     },
98     {
99       'target_name': 'rlz_unittests',
100       'type': 'executable',
101       'dependencies': [
102         ':rlz_lib',
103         '../base/base.gyp:base',
104         '../testing/gmock.gyp:gmock',
105         '../testing/gtest.gyp:gtest',
106         '../third_party/zlib/zlib.gyp:zlib',
107       ],
108       'sources': [
109         'lib/crc32_unittest.cc',
110         'lib/crc8_unittest.cc',
111         'lib/financial_ping_test.cc',
112         'lib/lib_values_unittest.cc',
113         'lib/machine_id_unittest.cc',
114         'lib/rlz_lib_test.cc',
115         'lib/string_utils_unittest.cc',
116         'test/rlz_test_helpers.cc',
117         'test/rlz_test_helpers.h',
118         'test/rlz_unittest_main.cc',
119         'win/lib/machine_deal_test.cc',
120       ],
121       'conditions': [
122         ['rlz_use_chrome_net==1', {
123           'dependencies': [
124             '../net/net.gyp:net_test_support',
125           ],
126         }]
127       ],
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     },
139   ],
140   'conditions': [
141     ['OS=="win"', {
142       'targets': [
143         {
144           'target_name': 'rlz',
145           'type': 'shared_library',
146           'sources': [
147             'win/dll/dll_main.cc',
148             'win/dll/exports.cc',
149           ],
150           'dependencies': [
151             ':rlz_lib',
152             '../third_party/zlib/zlib.gyp:zlib',
153           ],
154         },
155       ],
156     }],
157   ],