| 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', { |
| 11 'variables': { | 11 'variables': { |
| 12 # Snappy not used in Android WebView | 12 # Snappy not used in Android WebView |
| 13 # crbug.com/236780 | 13 # crbug.com/236780 |
| 14 'use_snappy': 0, | 14 'use_snappy': 0, |
| 15 }, | 15 }, |
| 16 }], | 16 }], |
| 17 ], | 17 ], |
| 18 'target_defaults': { | 18 'target_defaults': { |
| 19 'defines': [ | 19 'defines': [ |
| 20 'LEVELDB_PLATFORM_CHROMIUM=1', | 20 'LEVELDB_PLATFORM_CHROMIUM=1', |
| 21 ], | 21 ], |
| 22 'include_dirs': [ | 22 'include_dirs': [ |
| 23 '.', | 23 '.', |
| 24 'src/', | 24 'src/', |
| 25 'src/include/', | 25 'src/include/', |
| 26 ], | 26 ], |
| 27 'conditions': [ | 27 'conditions': [ |
| 28 ['OS == "win"', { | |
| 29 'include_dirs': [ | |
| 30 'src/port/win', | |
| 31 ], | |
| 32 }], | |
| 33 ['use_snappy', { | 28 ['use_snappy', { |
| 34 'defines': [ | 29 'defines': [ |
| 35 'USE_SNAPPY=1', | 30 'USE_SNAPPY=1', |
| 36 ], | 31 ], |
| 37 }], | 32 }], |
| 38 ], | 33 ], |
| 39 }, | 34 }, |
| 40 'targets': [ | 35 'targets': [ |
| 41 { | 36 { |
| 42 'target_name': 'leveldatabase', | 37 'target_name': 'leveldatabase', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 54 '../../third_party/snappy/snappy.gyp:snappy', | 49 '../../third_party/snappy/snappy.gyp:snappy', |
| 55 ], | 50 ], |
| 56 }], | 51 }], |
| 57 ], | 52 ], |
| 58 'direct_dependent_settings': { | 53 'direct_dependent_settings': { |
| 59 'include_dirs': [ | 54 'include_dirs': [ |
| 60 'src/include/', | 55 'src/include/', |
| 61 'src/', | 56 'src/', |
| 62 '.', | 57 '.', |
| 63 ], | 58 ], |
| 64 'conditions': [ | |
| 65 ['OS == "win"', { | |
| 66 'include_dirs': [ | |
| 67 'src/port/win', | |
| 68 ], | |
| 69 }], | |
| 70 ], | |
| 71 }, | 59 }, |
| 72 # Patch posted for upstream, can be removed once that's landed and | 60 # Patch posted for upstream, can be removed once that's landed and |
| 73 # rolled into Chromium. | 61 # rolled into Chromium. |
| 74 # Internal link: https://mondrian.corp.google.com/#review/29997992 | 62 # Internal link: https://mondrian.corp.google.com/#review/29997992 |
| 75 'msvs_disabled_warnings': [ | 63 'msvs_disabled_warnings': [ |
| 76 # Signed/unsigned comparison. | 64 # Signed/unsigned comparison. |
| 77 4018, | 65 4018, |
| 78 | 66 |
| 79 # TODO(jschuh): http://crbug.com/167187 size_t -> int | 67 # TODO(jschuh): http://crbug.com/167187 size_t -> int |
| 80 4267, | 68 4267, |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 ], | 365 ], |
| 378 }, | 366 }, |
| 379 ], | 367 ], |
| 380 } | 368 } |
| 381 | 369 |
| 382 # Local Variables: | 370 # Local Variables: |
| 383 # tab-width:2 | 371 # tab-width:2 |
| 384 # indent-tabs-mode:nil | 372 # indent-tabs-mode:nil |
| 385 # End: | 373 # End: |
| 386 # vim: set expandtab tabstop=2 shiftwidth=2: | 374 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |