# 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 version: //extensions/browser/api
      'target_name': 'extensions_api_registration',
      'type': 'static_library',
      # TODO(jschuh): http://crbug.com/167187 size_t -> int
      'msvs_disabled_warnings': [ 4267 ],
      'includes': [
        '../../../build/json_schema_bundle_registration_compile.gypi',
        '../../common/api/schemas.gypi',
      ],
      'dependencies': [
        '<(DEPTH)/extensions/common/api/api.gyp:extensions_api',
      ],
      'conditions': [
        ['enable_extensions==1', {
          'dependencies': [
            '<(DEPTH)/device/serial/serial.gyp:device_serial_mojo',
            '<(DEPTH)/extensions/common/api/api.gyp:cast_channel_proto',
            '<(DEPTH)/skia/skia.gyp:skia',
          ],
        }],
      ],
    },
  ],
}