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 external = true 11 sources = [ 12 "open-vcdiff/src/addrcache.cc", 13 "open-vcdiff/src/blockhash.cc", 14 "open-vcdiff/src/blockhash.h", 15 "open-vcdiff/src/checksum.h", 16 "open-vcdiff/src/codetable.cc", 17 "open-vcdiff/src/codetable.h", 18 "open-vcdiff/src/compile_assert.h", 19 "open-vcdiff/src/decodetable.cc", 20 "open-vcdiff/src/decodetable.h", 21 "open-vcdiff/src/encodetable.cc", 22 "open-vcdiff/src/encodetable.h", 23 "open-vcdiff/src/google/output_string.h", 24 "open-vcdiff/src/google/vcdecoder.h", 25 "open-vcdiff/src/headerparser.cc", 26 "open-vcdiff/src/headerparser.h", 27 "open-vcdiff/src/instruction_map.cc", 28 "open-vcdiff/src/instruction_map.h", 29 "open-vcdiff/src/logging.cc", 30 "open-vcdiff/src/logging.h", 31 "open-vcdiff/src/rolling_hash.h", 32 "open-vcdiff/src/testing.h", 33 "open-vcdiff/src/varint_bigendian.cc", 34 "open-vcdiff/src/varint_bigendian.h", 35 "open-vcdiff/src/vcdecoder.cc", 36 "open-vcdiff/src/vcdiff_defs.h", 37 "open-vcdiff/src/vcdiffengine.cc", 38 "open-vcdiff/src/vcdiffengine.h", 39 "open-vcdiff/vsprojects/config.h", 40 "open-vcdiff/vsprojects/stdint.h", 41 ] 42 43 direct_dependent_configs = [ ":sdch_config" ] 44 45 if (is_linux || is_android) { 46 include_dirs = [ "linux" ] 47 } else if (is_ios) { 48 include_dirs = [ "ios" ] 49 } else if (is_mac) { 50 include_dirs = [ "mac" ] 51 } else if (is_win) { 52 include_dirs = [ "win" ] 53 } 54 55 deps = [ "//third_party/zlib" ] 56 } 57