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/leveldb:lib |
| 15 'target_name': 'leveldb_lib', |
| 16 'type': 'static_library', |
| 17 'include_dirs': [ |
| 18 '../..', |
| 19 ], |
| 20 'sources': [ |
| 21 'env_mojo.cc', |
| 22 'env_mojo.h', |
| 23 'leveldb_database_impl.cc', |
| 24 'leveldb_database_impl.h', |
| 25 'leveldb_file_thread.cc', |
| 26 'leveldb_file_thread.h', |
| 27 'leveldb_service_impl.cc', |
| 28 'leveldb_service_impl.h', |
| 29 'util.cc', |
| 30 'util.h', |
| 31 ], |
| 32 'dependencies': [ |
| 33 'leveldb_bindings_mojom', |
| 34 '../../components/filesystem/filesystem.gyp:filesystem_lib', |
| 35 '../../mojo/mojo_base.gyp:mojo_application_base', |
| 36 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 37 '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
| 38 ] |
| 39 }, |
| 40 { |
| 41 # GN version: //components/leveldb/public/interfaces |
| 42 'target_name': 'leveldb_bindings', |
| 43 'type': 'static_library', |
| 44 'dependencies': [ |
| 45 'leveldb_bindings_mojom', |
| 46 ], |
| 47 }, |
| 48 { |
| 49 'target_name': 'leveldb_bindings_mojom', |
| 50 'type': 'none', |
| 51 'variables': { |
| 52 'mojom_files': [ |
| 53 'public/interfaces/leveldb.mojom', |
| 54 ], |
| 55 }, |
| 56 'dependencies': [ |
| 57 '../../components/filesystem/filesystem.gyp:filesystem_bindings_mojom', |
| 58 ], |
| 59 'includes': [ |
| 60 '../../mojo/mojom_bindings_generator_explicit.gypi', |
| 61 ], |
| 62 } |
| 63 ], |
| 64 } |
OLD | NEW |