Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Unified Diff: components/leveldb/leveldb.gyp

Issue 1708253004: mojo: Get mojo:leveldb and mojo:filesystem compiled into content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Probable fix to the build flake. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/leveldb/BUILD.gn ('k') | components/leveldb/leveldb_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/leveldb.gyp
diff --git a/components/leveldb/leveldb.gyp b/components/leveldb/leveldb.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..d2df15eb8db756b78517c6cb60f36a7029a08d04
--- /dev/null
+++ b/components/leveldb/leveldb.gyp
@@ -0,0 +1,64 @@
+# 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/leveldb:lib
+ 'target_name': 'leveldb_lib',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '../..',
+ ],
+ 'sources': [
+ 'env_mojo.cc',
+ 'env_mojo.h',
+ 'leveldb_database_impl.cc',
+ 'leveldb_database_impl.h',
+ 'leveldb_file_thread.cc',
+ 'leveldb_file_thread.h',
+ 'leveldb_service_impl.cc',
+ 'leveldb_service_impl.h',
+ 'util.cc',
+ 'util.h',
+ ],
+ 'dependencies': [
+ 'leveldb_bindings_mojom',
+ '../../components/filesystem/filesystem.gyp:filesystem_lib',
+ '../../mojo/mojo_base.gyp:mojo_application_base',
+ '../../mojo/mojo_public.gyp:mojo_cpp_bindings',
+ '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
+ ]
+ },
+ {
+ # GN version: //components/leveldb/public/interfaces
+ 'target_name': 'leveldb_bindings',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'leveldb_bindings_mojom',
+ ],
+ },
+ {
+ 'target_name': 'leveldb_bindings_mojom',
+ 'type': 'none',
+ 'variables': {
+ 'mojom_files': [
+ 'public/interfaces/leveldb.mojom',
+ ],
+ },
+ 'dependencies': [
+ '../../components/filesystem/filesystem.gyp:filesystem_bindings_mojom',
+ ],
+ 'includes': [
+ '../../mojo/mojom_bindings_generator_explicit.gypi',
+ ],
+ }
+ ],
+}
« no previous file with comments | « components/leveldb/BUILD.gn ('k') | components/leveldb/leveldb_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698