Index: components/filesystem/filesystem.gyp |
diff --git a/components/filesystem/filesystem.gyp b/components/filesystem/filesystem.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..718830d02c7246329b82b0ff2d3d847a7c7dd819 |
--- /dev/null |
+++ b/components/filesystem/filesystem.gyp |
@@ -0,0 +1,68 @@ |
+# Copyright 2016 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. |
+ |
+{ |
+ 'variables': { |
+ # This turns on e.g. the filename-based detection of which |
+ # platforms to include source files on (e.g. files ending in |
+ # _mac.h or _mac.cc are only compiled on MacOSX). |
+ 'chromium_code': 1, |
+ }, |
+ 'targets': [ |
+ { |
+ # GN version: //components/filesystem:lib |
+ 'target_name': 'filesystem_lib', |
+ 'type': 'static_library', |
+ 'include_dirs': [ |
+ '../..', |
+ ], |
+ 'sources': [ |
+ 'directory_impl.cc', |
+ 'directory_impl.h', |
+ 'file_impl.cc', |
+ 'file_impl.h', |
+ 'file_system_impl.cc', |
+ 'file_system_impl.h', |
+ 'lock_table.cc', |
+ 'lock_table.h', |
+ 'util.cc', |
+ 'util.h', |
+ ], |
+ 'dependencies': [ |
+ 'filesystem_bindings', |
+ '../../mojo/mojo_base.gyp:mojo_application_base', |
+ '../../mojo/mojo_edk.gyp:mojo_system_impl', |
+ '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
+ '../../mojo/mojo_platform_handle.gyp:platform_handle', |
+ '../../url/url.gyp:url_lib', |
+ ], |
+ 'export_dependent_settings': [ |
+ 'filesystem_bindings', |
+ ], |
+ }, |
+ { |
+ # GN version: //components/filesystem/public/interfaces |
+ 'target_name': 'filesystem_bindings', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ 'filesystem_bindings_mojom', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'filesystem_bindings_mojom', |
+ 'type': 'none', |
+ 'variables': { |
+ 'mojom_files': [ |
+ 'public/interfaces/directory.mojom', |
+ 'public/interfaces/file.mojom', |
+ 'public/interfaces/file_system.mojom', |
+ 'public/interfaces/types.mojom', |
+ ], |
+ }, |
+ 'includes': [ |
+ '../../mojo/mojom_bindings_generator_explicit.gypi', |
+ ], |
+ } |
+ ], |
+} |