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_public.gyp:mojo_cpp_bindings', | |
36 '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | |
37 ] | |
38 }, | |
39 { | |
40 # GN version: //components/leveldb/public/interfaces | |
41 'target_name': 'leveldb_bindings', | |
42 'type': 'static_library', | |
43 'dependencies': [ | |
44 'leveldb_bindings_mojom', | |
45 ], | |
46 }, | |
47 { | |
48 'target_name': 'leveldb_bindings_mojom', | |
49 'type': 'none', | |
50 'variables': { | |
51 'mojom_files': [ | |
52 'public/interfaces/leveldb.mojom', | |
53 ], | |
54 }, | |
55 'dependencies': [ | |
56 '../../components/filesystem/filesystem.gyp:filesystem_bindings_mojom', | |
57 ], | |
58 'includes': [ | |
59 '../../mojo/mojom_bindings_generator_explicit.gypi', | |
60 ], | |
61 } | |
62 ], | |
63 } | |
OLD | NEW |