| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium 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. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 config("sdch_config") { | 5 config("sdch_config") { |
| 6 include_dirs = [ "open-vcdiff/src" ] | 6 include_dirs = [ "open-vcdiff/src" ] |
| 7 } | 7 } |
| 8 | 8 |
| 9 # gn orders flags on a target before flags from configs. The default config | 9 # gn orders flags on a target before flags from configs. The default config |
| 10 # adds -Wall, and these flags have to be after -Wall -- so they need to come | 10 # adds -Wall, and these flags have to be after -Wall -- so they need to come |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 ] | 52 ] |
| 53 | 53 |
| 54 configs += [ ":sdch_warnings" ] | 54 configs += [ ":sdch_warnings" ] |
| 55 public_configs = [ ":sdch_config" ] | 55 public_configs = [ ":sdch_config" ] |
| 56 | 56 |
| 57 deps = [ | 57 deps = [ |
| 58 "//base", | 58 "//base", |
| 59 "//third_party/zlib", | 59 "//third_party/zlib", |
| 60 ] | 60 ] |
| 61 | 61 |
| 62 if (is_linux || is_android) { | 62 if (is_linux || is_android || is_fuchsia) { |
| 63 include_dirs = [ "linux" ] | 63 include_dirs = [ "linux" ] |
| 64 } else if (is_ios) { | 64 } else if (is_ios) { |
| 65 include_dirs = [ "ios" ] | 65 include_dirs = [ "ios" ] |
| 66 } else if (is_mac) { | 66 } else if (is_mac) { |
| 67 include_dirs = [ "mac" ] | 67 include_dirs = [ "mac" ] |
| 68 defines = [ "OPEN_VCDIFF_USE_AUTO_PTR" ] | 68 defines = [ "OPEN_VCDIFF_USE_AUTO_PTR" ] |
| 69 } else if (is_win) { | 69 } else if (is_win) { |
| 70 include_dirs = [ "win" ] | 70 include_dirs = [ "win" ] |
| 71 } | 71 } |
| 72 | 72 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 83 "sdch/logging_forward.h", | 83 "sdch/logging_forward.h", |
| 84 ] | 84 ] |
| 85 } else { | 85 } else { |
| 86 logging_file = rebase_path("logging_forward.h", root_build_dir) | 86 logging_file = rebase_path("logging_forward.h", root_build_dir) |
| 87 cflags = [ | 87 cflags = [ |
| 88 "-include", | 88 "-include", |
| 89 logging_file, | 89 logging_file, |
| 90 ] | 90 ] |
| 91 } | 91 } |
| 92 } | 92 } |
| OLD | NEW |