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
3# found in the LICENSE file.
4
5{
6  'targets': [
7    {
8      # GN version: //components/component_updater
9      'target_name': 'component_updater',
10      'type': 'static_library',
11      'dependencies': [
12        '../base/base.gyp:base',
13        '../courgette/courgette.gyp:courgette_lib',
14        '../crypto/crypto.gyp:crypto',
15        '../third_party/libxml/libxml.gyp:libxml',
16        '../third_party/zlib/google/zip.gyp:zip',
17        '../net/net.gyp:net',
18        '../ui/base/ui_base.gyp:ui_base',
19        'crx_file',
20        'omaha_query_params',
21      ],
22      'include_dirs': [
23        '..',
24      ],
25      'sources': [
26        'component_updater/background_downloader_win.cc',
27        'component_updater/background_downloader_win.h',
28        'component_updater/component_patcher.cc',
29        'component_updater/component_patcher.h',
30        'component_updater/component_patcher_operation.cc',
31        'component_updater/component_patcher_operation.h',
32        'component_updater/component_updater_configurator.h',
33        'component_updater/component_unpacker.cc',
34        'component_updater/component_unpacker.h',
35        'component_updater/component_updater_paths.cc',
36        'component_updater/component_updater_paths.h',
37        'component_updater/component_updater_ping_manager.cc',
38        'component_updater/component_updater_ping_manager.h',
39        'component_updater/component_updater_service.cc',
40        'component_updater/component_updater_service.h',
41        'component_updater/component_updater_switches.cc',
42        'component_updater/component_updater_switches.h',
43        'component_updater/component_updater_utils.cc',
44        'component_updater/component_updater_utils.h',
45        'component_updater/crx_update_item.h',
46        'component_updater/crx_downloader.cc',
47        'component_updater/crx_downloader.h',
48        'component_updater/default_component_installer.cc',
49        'component_updater/default_component_installer.h',
50        'component_updater/pref_names.cc',
51        'component_updater/pref_names.h',
52        'component_updater/request_sender.cc',
53        'component_updater/request_sender.h',
54        'component_updater/update_checker.cc',
55        'component_updater/update_checker.h',
56        'component_updater/update_response.cc',
57        'component_updater/update_response.h',
58        'component_updater/url_fetcher_downloader.cc',
59        'component_updater/url_fetcher_downloader.h',
60      ],
61    },
62    {
63      # GN version: //components/component_updater:test_support
64      'target_name': 'component_updater_test_support',
65      'type': 'static_library',
66      'dependencies': [
67        'component_updater',
68        '../testing/gmock.gyp:gmock',
69        '../testing/gtest.gyp:gtest',
70      ],
71      'sources': [
72        'component_updater/test/test_configurator.cc',
73        'component_updater/test/test_configurator.h',
74        'component_updater/test/test_installer.cc',
75        'component_updater/test/test_installer.h',
76        'component_updater/test/url_request_post_interceptor.cc',
77        'component_updater/test/url_request_post_interceptor.h',
78      ],
79    },
80  ],
81}
82