OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 if (is_linux) { | 5 import("//build/config/chromecast_build.gni") |
| 6 |
| 7 # Chromecast doesn't ship expat as a system library |
| 8 if (is_linux && !is_chromecast) { |
6 config("expat_config") { | 9 config("expat_config") { |
7 libs = [ "expat" ] | 10 libs = [ "expat" ] |
8 } | 11 } |
9 | 12 |
10 group("expat") { | 13 group("expat") { |
11 public_configs = [ ":expat_config" ] | 14 public_configs = [ ":expat_config" ] |
12 } | 15 } |
13 } else { | 16 } else { |
14 config("expat_config") { | 17 config("expat_config") { |
15 include_dirs = [ "files/lib" ] | 18 include_dirs = [ "files/lib" ] |
(...skipping 11 matching lines...) Expand all Loading... |
27 public_configs = [ ":expat_config" ] | 30 public_configs = [ ":expat_config" ] |
28 | 31 |
29 defines = [ "_LIB" ] | 32 defines = [ "_LIB" ] |
30 if (is_win) { | 33 if (is_win) { |
31 defines += [ "COMPILED_FROM_DSP" ] | 34 defines += [ "COMPILED_FROM_DSP" ] |
32 } else { | 35 } else { |
33 defines += [ "HAVE_EXPAT_CONFIG_H" ] | 36 defines += [ "HAVE_EXPAT_CONFIG_H" ] |
34 } | 37 } |
35 } | 38 } |
36 } | 39 } |
OLD | NEW |