| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2013 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 config("sdch_config") { | |
| 6 include_dirs = [ "open-vcdiff/src" ] | |
| 7 } | |
| 8 | |
| 9 static_library("sdch") { | |
| 10 sources = [ | |
| 11 "open-vcdiff/src/addrcache.cc", | |
| 12 "open-vcdiff/src/blockhash.cc", | |
| 13 "open-vcdiff/src/blockhash.h", | |
| 14 "open-vcdiff/src/checksum.h", | |
| 15 "open-vcdiff/src/codetable.cc", | |
| 16 "open-vcdiff/src/codetable.h", | |
| 17 "open-vcdiff/src/compile_assert.h", | |
| 18 "open-vcdiff/src/decodetable.cc", | |
| 19 "open-vcdiff/src/decodetable.h", | |
| 20 "open-vcdiff/src/encodetable.cc", | |
| 21 "open-vcdiff/src/encodetable.h", | |
| 22 "open-vcdiff/src/google/output_string.h", | |
| 23 "open-vcdiff/src/google/vcdecoder.h", | |
| 24 "open-vcdiff/src/headerparser.cc", | |
| 25 "open-vcdiff/src/headerparser.h", | |
| 26 "open-vcdiff/src/instruction_map.cc", | |
| 27 "open-vcdiff/src/instruction_map.h", | |
| 28 "open-vcdiff/src/logging.cc", | |
| 29 "open-vcdiff/src/logging.h", | |
| 30 "open-vcdiff/src/rolling_hash.h", | |
| 31 "open-vcdiff/src/testing.h", | |
| 32 "open-vcdiff/src/varint_bigendian.cc", | |
| 33 "open-vcdiff/src/varint_bigendian.h", | |
| 34 "open-vcdiff/src/vcdecoder.cc", | |
| 35 "open-vcdiff/src/vcdiff_defs.h", | |
| 36 "open-vcdiff/src/vcdiffengine.cc", | |
| 37 "open-vcdiff/src/vcdiffengine.h", | |
| 38 "open-vcdiff/vsprojects/config.h", | |
| 39 "open-vcdiff/vsprojects/stdint.h", | |
| 40 ] | |
| 41 | |
| 42 direct_dependent_configs = [ ":sdch_config" ] | |
| 43 | |
| 44 if (is_linux || is_android) { | |
| 45 include_dirs = [ "linux" ] | |
| 46 } else if (is_ios) { | |
| 47 include_dirs = [ "ios" ] | |
| 48 } else if (is_mac) { | |
| 49 include_dirs = [ "mac" ] | |
| 50 } else if (is_win) { | |
| 51 include_dirs = [ "win" ] | |
| 52 } | |
| 53 | |
| 54 deps = [ "//third_party/zlib" ] | |
| 55 | |
| 56 if (is_clang) { | |
| 57 cflags = [ | |
| 58 # TODO(mostynb): remove this if open-vcdiff is ever updated for c++11: | |
| 59 "-Wno-deprecated-declarations", | |
| 60 ] | |
| 61 } | |
| 62 } | |
| OLD | NEW |