| OLD | NEW |
| 1 # Copyright (c) 2011 The LevelDB Authors. All rights reserved. | 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 | 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. | 3 # found in the LICENSE file. See the AUTHORS file for names of contributors. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'use_snappy%': 1, | 7 'use_snappy%': 1, |
| 8 }, | 8 }, |
| 9 'conditions': [ | 9 'conditions': [ |
| 10 ['OS == "android" and android_webview_build == 1', { | 10 ['OS == "android" and android_webview_build == 1', { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 'target_defaults': { | 32 'target_defaults': { |
| 33 'defines': [ | 33 'defines': [ |
| 34 'LEVELDB_PLATFORM_CHROMIUM=1', | 34 'LEVELDB_PLATFORM_CHROMIUM=1', |
| 35 ], | 35 ], |
| 36 'include_dirs': [ | 36 'include_dirs': [ |
| 37 '.', | 37 '.', |
| 38 'src/', | 38 'src/', |
| 39 'src/include/', | 39 'src/include/', |
| 40 ], | 40 ], |
| 41 'conditions': [ | 41 'conditions': [ |
| 42 ['OS!="win"', { |
| 43 'sources/': [ ['exclude', '_win.(h|cc)$'], ], |
| 44 }], |
| 42 ['use_snappy', { | 45 ['use_snappy', { |
| 43 'defines': [ | 46 'defines': [ |
| 44 'USE_SNAPPY=1', | 47 'USE_SNAPPY=1', |
| 45 ], | 48 ], |
| 46 }], | 49 }], |
| 47 ], | 50 ], |
| 48 }, | 51 }, |
| 49 'targets': [ | 52 'targets': [ |
| 50 { | 53 { |
| 51 'target_name': 'leveldatabase', | 54 'target_name': 'leveldatabase', |
| 52 'type': 'static_library', | 55 'type': 'static_library', |
| 53 'dependencies': [ | 56 'dependencies': [ |
| 54 '../../third_party/re2/re2.gyp:re2', | 57 '../../third_party/re2/re2.gyp:re2', |
| 55 '../../base/base.gyp:base', | 58 '../../base/base.gyp:base', |
| 56 # base::LazyInstance is a template that pulls in dynamic_annotations so | 59 # base::LazyInstance is a template that pulls in dynamic_annotations so |
| 57 # we need to explictly link in the code for dynamic_annotations. | 60 # we need to explictly link in the code for dynamic_annotations. |
| 58 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | 61 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
| 59 ], | 62 ], |
| 60 'conditions': [ | 63 'conditions': [ |
| 61 ['use_snappy', { | 64 ['use_snappy', { |
| 62 'dependencies': [ | 65 'dependencies': [ |
| 63 '../../third_party/snappy/snappy.gyp:snappy', | 66 '../../third_party/snappy/snappy.gyp:snappy', |
| 64 ], | 67 ], |
| 65 }], | 68 }], |
| 66 ['OS=="win"', { | |
| 67 'sources': [ | |
| 68 'env_chromium_win.cc', | |
| 69 'env_chromium_win.h', | |
| 70 ], | |
| 71 }], | |
| 72 ], | 69 ], |
| 73 'direct_dependent_settings': { | 70 'direct_dependent_settings': { |
| 74 'include_dirs': [ | 71 'include_dirs': [ |
| 75 'src/include/', | 72 'src/include/', |
| 76 'src/', | 73 'src/', |
| 77 '.', | 74 '.', |
| 78 ], | 75 ], |
| 79 }, | 76 }, |
| 80 # Patch posted for upstream, can be removed once that's landed and | 77 # Patch posted for upstream, can be removed once that's landed and |
| 81 # rolled into Chromium. | 78 # rolled into Chromium. |
| 82 # Internal link: https://mondrian.corp.google.com/#review/29997992 | 79 # Internal link: https://mondrian.corp.google.com/#review/29997992 |
| 83 'msvs_disabled_warnings': [ | 80 'msvs_disabled_warnings': [ |
| 84 # Signed/unsigned comparison. | 81 # Signed/unsigned comparison. |
| 85 4018, | 82 4018, |
| 86 | 83 |
| 87 # TODO(jschuh): http://crbug.com/167187 size_t -> int | 84 # TODO(jschuh): http://crbug.com/167187 size_t -> int |
| 88 4267, | 85 4267, |
| 89 ], | 86 ], |
| 90 'sources': [ | 87 'sources': [ |
| 91 # Include and then exclude so that all files show up in IDEs, even if | 88 # Include and then exclude so that all files show up in IDEs, even if |
| 92 # they don't build. | 89 # they don't build. |
| 93 'chromium_logger.h', | 90 'chromium_logger.h', |
| 94 'env_chromium.cc', | 91 'env_chromium.cc', |
| 95 'env_chromium.h', | 92 'env_chromium.h', |
| 96 'env_chromium_stdio.cc', | 93 'env_chromium_stdio.cc', |
| 97 'env_chromium_stdio.h', | 94 'env_chromium_stdio.h', |
| 95 'env_chromium_win.cc', |
| 96 'env_chromium_win.h', |
| 98 'env_idb.h', | 97 'env_idb.h', |
| 99 'port/port_chromium.cc', | 98 'port/port_chromium.cc', |
| 100 'port/port_chromium.h', | 99 'port/port_chromium.h', |
| 101 'src/db/builder.cc', | 100 'src/db/builder.cc', |
| 102 'src/db/builder.h', | 101 'src/db/builder.h', |
| 103 'src/db/db_impl.cc', | 102 'src/db/db_impl.cc', |
| 104 'src/db/db_impl.h', | 103 'src/db/db_impl.h', |
| 105 'src/db/db_iter.cc', | 104 'src/db/db_iter.cc', |
| 106 'src/db/db_iter.h', | 105 'src/db/db_iter.h', |
| 107 'src/db/filename.cc', | 106 'src/db/filename.cc', |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 'src/util/hash.cc', | 173 'src/util/hash.cc', |
| 175 'src/util/hash.h', | 174 'src/util/hash.h', |
| 176 'src/util/logging.cc', | 175 'src/util/logging.cc', |
| 177 'src/util/logging.h', | 176 'src/util/logging.h', |
| 178 'src/util/mutexlock.h', | 177 'src/util/mutexlock.h', |
| 179 'src/util/options.cc', | 178 'src/util/options.cc', |
| 180 'src/util/random.h', | 179 'src/util/random.h', |
| 181 'src/util/status.cc', | 180 'src/util/status.cc', |
| 182 ], | 181 ], |
| 183 'sources/': [ | 182 'sources/': [ |
| 184 ['exclude', '_(android|example|portable|posix)\\.cc$'], | 183 ['exclude', '_(example|posix)\\.(h|cc)$'], |
| 185 ], | 184 ], |
| 186 }, | 185 }, |
| 187 { | 186 { |
| 188 'target_name': 'env_chromium_unittests', | 187 'target_name': 'env_chromium_unittests', |
| 189 'type': '<(gtest_target_type)', | 188 'type': '<(gtest_target_type)', |
| 190 'dependencies': [ | 189 'dependencies': [ |
| 191 'leveldatabase', | 190 'leveldatabase', |
| 192 '../../base/base.gyp:test_support_base', | 191 '../../base/base.gyp:test_support_base', |
| 193 '../../testing/gtest.gyp:gtest', | 192 '../../testing/gtest.gyp:gtest', |
| 194 ], | 193 ], |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 ], | 406 ], |
| 408 }, | 407 }, |
| 409 ], | 408 ], |
| 410 } | 409 } |
| 411 | 410 |
| 412 # Local Variables: | 411 # Local Variables: |
| 413 # tab-width:2 | 412 # tab-width:2 |
| 414 # indent-tabs-mode:nil | 413 # indent-tabs-mode:nil |
| 415 # End: | 414 # End: |
| 416 # vim: set expandtab tabstop=2 shiftwidth=2: | 415 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |