OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'sources': [ | 6 'sources': [ |
7 '<@(schema_files)', | 7 '<@(schema_files)', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'chromium_code': 1, | 10 'chromium_code': 1, |
| 11 # TODO: Eliminate these on Android. See crbug.com/305852. |
| 12 'android_schema_files': [ |
| 13 'runtime.json', |
| 14 ], |
11 'main_schema_files': [ | 15 'main_schema_files': [ |
12 'app_current_window_internal.idl', | 16 'app_current_window_internal.idl', |
13 'app_runtime.idl', | 17 'app_runtime.idl', |
14 'app_view_internal.json', | 18 'app_view_internal.json', |
15 'app_window.idl', | 19 'app_window.idl', |
16 'bluetooth.idl', | 20 'bluetooth.idl', |
17 'bluetooth_low_energy.idl', | 21 'bluetooth_low_energy.idl', |
18 'bluetooth_private.json', | 22 'bluetooth_private.json', |
19 'bluetooth_socket.idl', | 23 'bluetooth_socket.idl', |
20 'cast_channel.idl', | 24 'cast_channel.idl', |
(...skipping 18 matching lines...) Expand all Loading... |
39 'system_memory.idl', | 43 'system_memory.idl', |
40 'system_network.idl', | 44 'system_network.idl', |
41 'system_storage.idl', | 45 'system_storage.idl', |
42 'test.json', | 46 'test.json', |
43 'usb.idl', | 47 'usb.idl', |
44 'usb_private.idl', | 48 'usb_private.idl', |
45 'web_view_internal.json', | 49 'web_view_internal.json', |
46 ], | 50 ], |
47 'non_compiled_schema_files': [ | 51 'non_compiled_schema_files': [ |
48 ], | 52 ], |
49 # TODO(thestig) Do not include this file in non-extensions builds. | |
50 # Then the conditional and else block can go away. | |
51 # Do the same for extensions/common/api/schemas.gni. | |
52 'conditions': [ | 53 'conditions': [ |
53 ['enable_extensions==1', { | 54 ['enable_extensions==1', { |
54 'schema_files': [ | 55 'schema_files': [ |
55 '<@(main_schema_files)', | 56 '<@(main_schema_files)', |
56 ], | 57 ], |
57 }, { | 58 }, { |
58 'schema_files': [ | 59 'schema_files': [ |
| 60 '<@(android_schema_files)', |
59 ], | 61 ], |
60 }], | 62 }], |
61 ], | 63 ], |
62 'cc_dir': 'extensions/common/api', | 64 'cc_dir': 'extensions/common/api', |
63 'root_namespace': 'extensions::core_api::%(namespace)s', | 65 'root_namespace': 'extensions::core_api::%(namespace)s', |
64 'impl_dir_': 'extensions/browser/api', | 66 'impl_dir_': 'extensions/browser/api', |
65 }, | 67 }, |
66 } | 68 } |
OLD | NEW |