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 'target_name': 'extensions_api', 9 'type': 'static_library', 10 'sources': [ 11 '<@(schema_files)', 12 ], 13 # TODO(jschuh): http://crbug.com/167187 size_t -> int 14 'msvs_disabled_warnings': [ 4267 ], 15 'includes': [ 16 '../../../build/json_schema_bundle_compile.gypi', 17 '../../../build/json_schema_compile.gypi', 18 ], 19 'variables': { 20 'chromium_code': 1, 21 'non_compiled_schema_files': [ 22 ], 23 'conditions': [ 24 ['enable_extensions==1', { 25 'schema_files': [ 26 'dns.idl', 27 'extensions_manifest_types.json', 28 'runtime.json', 29 'socket.idl', 30 'sockets_tcp.idl', 31 'sockets_tcp_server.idl', 32 'sockets_udp.idl', 33 'storage.json', 34 'test.json', 35 'usb.idl', 36 ], 37 }, { 38 # TODO: Eliminate these on Android. See crbug.com/305852. 39 'schema_files': [ 40 'extensions_manifest_types.json', 41 'runtime.json', 42 ], 43 }], 44 ], 45 'cc_dir': 'extensions/common/api', 46 'root_namespace': 'extensions::core_api', 47 'impl_dir': 'extensions/browser/api', 48 }, 49 'dependencies': [ 50 '<(DEPTH)/skia/skia.gyp:skia', 51 ], 52 }, 53 ], 54 } 55