summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks.gypi
blob: 8c2076205b556e10439bc5e247b354994981efdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      # GN: //components/enhanced_bookmarks:enhanced_bookmarks
      'target_name': 'enhanced_bookmarks',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../base/base.gyp:base',
        '../google_apis/google_apis.gyp:google_apis',
        '../net/net.gyp:net',
        '../skia/skia.gyp:skia',
        '../sql/sql.gyp:sql',
        '../ui/gfx/gfx.gyp:gfx',
        '../url/url.gyp:url_lib',
        'bookmarks_browser',
        'enhanced_bookmarks_proto',
        'keyed_service_core',
        'signin_core_browser',
        'sync_driver',
        'variations',
      ],
      'sources': [
        'enhanced_bookmarks/bookmark_image_service.cc',
        'enhanced_bookmarks/bookmark_image_service.h',
        'enhanced_bookmarks/bookmark_server_cluster_service.cc',
        'enhanced_bookmarks/bookmark_server_cluster_service.h',
        'enhanced_bookmarks/bookmark_server_service.cc',
        'enhanced_bookmarks/bookmark_server_service.h',
        'enhanced_bookmarks/enhanced_bookmark_features.cc',
        'enhanced_bookmarks/enhanced_bookmark_features.h',
        'enhanced_bookmarks/enhanced_bookmark_model.cc',
        'enhanced_bookmarks/enhanced_bookmark_model.h',
        'enhanced_bookmarks/enhanced_bookmark_model_observer.h',
        'enhanced_bookmarks/enhanced_bookmark_switches.cc',
        'enhanced_bookmarks/enhanced_bookmark_switches.h',
        'enhanced_bookmarks/enhanced_bookmark_utils.cc',
        'enhanced_bookmarks/enhanced_bookmark_utils.h',
        'enhanced_bookmarks/image_record.cc',
        'enhanced_bookmarks/image_record.h',
        'enhanced_bookmarks/image_store.cc',
        'enhanced_bookmarks/image_store.h',
        'enhanced_bookmarks/image_store_util.cc',
        'enhanced_bookmarks/image_store_util.h',
        'enhanced_bookmarks/image_store_util_ios.mm',
        'enhanced_bookmarks/item_position.cc',
        'enhanced_bookmarks/item_position.h',
        'enhanced_bookmarks/metadata_accessor.cc',
        'enhanced_bookmarks/metadata_accessor.h',
        'enhanced_bookmarks/persistent_image_store.cc',
        'enhanced_bookmarks/persistent_image_store.h',
        'enhanced_bookmarks/pref_names.cc',
        'enhanced_bookmarks/pref_names.h',
      ],
      'conditions': [
        ['OS=="ios"', {
          'sources!': [
            'enhanced_bookmarks/image_store_util.cc',
          ],
        }],
      ],
    },
    {
      # GN: //components/enhanced_bookmarks:enhanced_bookmarks_test_support
      'target_name': 'enhanced_bookmarks_test_support',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../testing/gtest.gyp:gtest',
        'enhanced_bookmarks',
      ],
      'sources': [
        'enhanced_bookmarks/test_image_store.cc',
        'enhanced_bookmarks/test_image_store.h',
      ],
    },
    {
      'target_name': 'enhanced_bookmarks_proto',
      'type': 'static_library',
      'sources': [
        'enhanced_bookmarks/proto/cluster.proto',
        'enhanced_bookmarks/proto/metadata.proto',
        'enhanced_bookmarks/proto/search.proto',
      ],
      'variables': {
        'proto_in_dir': './enhanced_bookmarks/proto',
        'proto_out_dir': 'components/enhanced_bookmarks/proto',
      },
      'includes': [ '../build/protoc.gypi' ],
    },
  ],
  'conditions' : [
    ['OS=="android"', {
      'targets': [
        {
          # GN: //components/enhanced_bookmarks:enhanced_bookmarks_java_enums_srcjar
          'target_name': 'enhanced_bookmarks_java_enums_srcjar',
          'type': 'none',
          'variables': {
            'source_file': 'enhanced_bookmarks/enhanced_bookmark_utils.h',
          },
          'includes': [ '../build/android/java_cpp_enum.gypi' ],
        },
      ],
     },
   ],
  ],
}