OLD | NEW |
| (Empty) |
1 # Copyright 2016 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 'variables': { | |
7 # This turns on e.g. the filename-based detection of which | |
8 # platforms to include source files on (e.g. files ending in | |
9 # _mac.h or _mac.cc are only compiled on MacOSX). | |
10 'chromium_code': 1, | |
11 }, | |
12 'targets': [ | |
13 { | |
14 # GN version: //components/filesystem:lib | |
15 'target_name': 'filesystem_lib', | |
16 'type': 'static_library', | |
17 'include_dirs': [ | |
18 '../..', | |
19 ], | |
20 'sources': [ | |
21 'directory_impl.cc', | |
22 'directory_impl.h', | |
23 'file_impl.cc', | |
24 'file_impl.h', | |
25 'file_system_impl.cc', | |
26 'file_system_impl.h', | |
27 'lock_table.cc', | |
28 'lock_table.h', | |
29 'util.cc', | |
30 'util.h', | |
31 ], | |
32 'dependencies': [ | |
33 'filesystem_bindings', | |
34 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
35 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
36 '../../mojo/mojo_platform_handle.gyp:platform_handle', | |
37 '../../url/url.gyp:url_lib', | |
38 ], | |
39 'export_dependent_settings': [ | |
40 'filesystem_bindings', | |
41 ], | |
42 }, | |
43 { | |
44 # GN version: //components/filesystem/public/interfaces | |
45 'target_name': 'filesystem_bindings', | |
46 'type': 'static_library', | |
47 'dependencies': [ | |
48 'filesystem_bindings_mojom', | |
49 ], | |
50 }, | |
51 { | |
52 'target_name': 'filesystem_bindings_mojom', | |
53 'type': 'none', | |
54 'variables': { | |
55 'mojom_files': [ | |
56 'public/interfaces/directory.mojom', | |
57 'public/interfaces/file.mojom', | |
58 'public/interfaces/file_system.mojom', | |
59 'public/interfaces/types.mojom', | |
60 ], | |
61 }, | |
62 'includes': [ | |
63 '../../mojo/mojom_bindings_generator_explicit.gypi', | |
64 ], | |
65 } | |
66 ], | |
67 } | |
OLD | NEW |