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

Side by Side Diff: third_party/leveldatabase/leveldatabase.gyp

Issue 7522008: Move chromium-specific files from leveldb to chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change parameter to const ref Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2011 The LevelDB 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. See the AUTHORS file for names of contributors.
4
5 {
6 'variables': {
7 'use_snappy%': 0,
8 },
9 'target_defaults': {
10 'defines': [
11 'LEVELDB_PLATFORM_CHROMIUM=1',
12 ],
13 'include_dirs': [
14 '.',
15 'src/',
16 'src/include/',
17 ],
18 'conditions': [
19 ['OS == "win"', {
20 'include_dirs': [
21 'src/port/win',
22 ],
23 }],
24 ['use_snappy', {
25 'defines': [
26 'USE_SNAPPY=1',
27 ],
28 }],
29 ],
30 },
31 'targets': [
32 {
33 'target_name': 'leveldatabase',
34 'type': '<(library)',
35 'dependencies': [
36 '../../base/base.gyp:base',
37 # base::LazyInstance is a template that pulls in dynamic_annotations so
38 # we need to explictly link in the code for dynamic_annotations.
39 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations',
40 ],
41 'conditions': [
42 ['use_snappy', {
43 'dependencies': [
44 '../../third_party/snappy/snappy.gyp:snappy',
45 ],
46 }],
47 ],
48 'direct_dependent_settings': {
49 'include_dirs': [
50 'src/include/',
51 ],
52 'conditions': [
53 ['OS == "win"', {
54 'include_dirs': [
55 'src/port/win',
56 ],
57 }],
58 ],
59 },
60 'sources': [
61 # Include and then exclude so that all files show up in IDEs, even if
62 # they don't build.
63 'env_chromium.cc',
64 'port/port_chromium.cc',
65 'port/port_chromium.h',
66 'src/db/builder.cc',
67 'src/db/builder.h',
68 'src/db/db_impl.cc',
69 'src/db/db_impl.h',
70 'src/db/db_iter.cc',
71 'src/db/db_iter.h',
72 'src/db/filename.cc',
73 'src/db/filename.h',
74 'src/db/dbformat.cc',
75 'src/db/dbformat.h',
76 'src/db/log_format.h',
77 'src/db/log_reader.cc',
78 'src/db/log_reader.h',
79 'src/db/log_writer.cc',
80 'src/db/log_writer.h',
81 'src/db/memtable.cc',
82 'src/db/memtable.h',
83 'src/db/repair.cc',
84 'src/db/skiplist.h',
85 'src/db/snapshot.h',
86 'src/db/table_cache.cc',
87 'src/db/table_cache.h',
88 'src/db/version_edit.cc',
89 'src/db/version_edit.h',
90 'src/db/version_set.cc',
91 'src/db/version_set.h',
92 'src/db/write_batch.cc',
93 'src/db/write_batch_internal.h',
94 'src/include/leveldb/cache.h',
95 'src/include/leveldb/comparator.h',
96 'src/include/leveldb/db.h',
97 'src/include/leveldb/env.h',
98 'src/include/leveldb/iterator.h',
99 'src/include/leveldb/options.h',
100 'src/include/leveldb/slice.h',
101 'src/include/leveldb/status.h',
102 'src/include/leveldb/table.h',
103 'src/include/leveldb/table_builder.h',
104 'src/include/leveldb/write_batch.h',
105 'src/port/port.h',
106 'src/port/port_example.h',
107 'src/port/port_posix.cc',
108 'src/port/port_posix.h',
109 'src/table/block.cc',
110 'src/table/block.h',
111 'src/table/block_builder.cc',
112 'src/table/block_builder.h',
113 'src/table/format.cc',
114 'src/table/format.h',
115 'src/table/iterator.cc',
116 'src/table/iterator_wrapper.h',
117 'src/table/merger.cc',
118 'src/table/merger.h',
119 'src/table/table.cc',
120 'src/table/table_builder.cc',
121 'src/table/two_level_iterator.cc',
122 'src/table/two_level_iterator.h',
123 'src/util/arena.cc',
124 'src/util/arena.h',
125 'src/util/cache.cc',
126 'src/util/coding.cc',
127 'src/util/coding.h',
128 'src/util/comparator.cc',
129 'src/util/crc32c.cc',
130 'src/util/crc32c.h',
131 'src/util/env.cc',
132 'src/util/hash.cc',
133 'src/util/hash.h',
134 'src/util/logging.cc',
135 'src/util/logging.h',
136 'src/util/mutexlock.h',
137 'src/util/options.cc',
138 'src/util/random.h',
139 'src/util/status.cc',
140 ],
141 'sources/': [
142 ['exclude', '_(android|example|portable|posix)\\.cc$'],
143 ],
144 },
145 # TODO(dgrogan): Replace the test targets once third_party/leveldb is gone.
146 ],
147 }
148
149 # Local Variables:
150 # tab-width:2
151 # indent-tabs-mode:nil
152 # End:
153 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « third_party/leveldatabase/env_chromium.cc ('k') | third_party/leveldatabase/port/port_chromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698