Home | History | Annotate | Download | only in components
      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/keyed_service/core:core
      9       'target_name': 'keyed_service_core',
     10       'type': '<(component)',
     11       'defines': [
     12         'KEYED_SERVICE_IMPLEMENTATION',
     13       ],
     14       'include_dirs': [
     15         '..',
     16       ],
     17       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     18       'msvs_disabled_warnings': [ 4267, ],
     19       'dependencies': [
     20         '../base/base.gyp:base',
     21       ],
     22       'sources': [
     23         'keyed_service/core/dependency_graph.cc',
     24         'keyed_service/core/dependency_graph.h',
     25         'keyed_service/core/dependency_node.h',
     26         'keyed_service/core/keyed_service.cc',
     27         'keyed_service/core/keyed_service.h',
     28         'keyed_service/core/keyed_service_export.h',
     29       ],
     30     },
     31   ],
     32   'conditions': [
     33     ['OS != "ios"', {
     34       'targets': [
     35         {
     36           # GN version: //components/keyed_service/content:content
     37           'target_name': 'keyed_service_content',
     38           'type': '<(component)',
     39           'defines': [
     40             'KEYED_SERVICE_IMPLEMENTATION',
     41           ],
     42           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     43           'msvs_disabled_warnings': [ 4267, ],
     44           'dependencies': [
     45             'keyed_service_core',
     46             '../base/base.gyp:base',
     47             '../base/base.gyp:base_prefs',
     48             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
     49             '../content/content.gyp:content_common',
     50             'user_prefs',
     51           ],
     52           'include_dirs': [
     53             '..',
     54           ],
     55           'sources': [
     56             'keyed_service/content/browser_context_dependency_manager.cc',
     57             'keyed_service/content/browser_context_dependency_manager.h',
     58             'keyed_service/content/browser_context_keyed_base_factory.h',
     59             'keyed_service/content/browser_context_keyed_base_factory.cc',
     60             'keyed_service/content/browser_context_keyed_service_factory.cc',
     61             'keyed_service/content/browser_context_keyed_service_factory.h',
     62             'keyed_service/content/refcounted_browser_context_keyed_service.cc',
     63             'keyed_service/content/refcounted_browser_context_keyed_service.h',
     64             'keyed_service/content/refcounted_browser_context_keyed_service_factory.cc',
     65         ],
     66       }],
     67     }],
     68   ],
     69 }
     70