Commit 30b1385e authored by bcf's avatar bcf Committed by Commit bot

[Chromecast] Don't use system libexpat.

BUG= internal b/26249831
TEST= Builds and runs.

Review URL: https://codereview.chromium.org/1573323002

Cr-Commit-Position: refs/heads/master@{#368756}
parent 617d1b73
......@@ -2,7 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_linux) {
import("//build/config/chromecast_build.gni")
# Chromecast doesn't ship expat as a system library
if (is_linux && !is_chromecast) {
config("expat_config") {
libs = [ "expat" ]
}
......
......@@ -7,7 +7,7 @@
'conditions': [
# On Linux, we implicitly already depend on expat via fontconfig;
# let's not pull it in twice.
['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
['os_posix==1 and OS!="mac" and OS!="ios" and OS!="android" and chromecast!=1', {
'use_system_expat%': 1,
}, {
'use_system_expat%': 0,
......@@ -66,7 +66,7 @@
'COMPILED_FROM_DSP',
],
}],
['OS=="mac" or OS=="ios" or OS=="android" or os_bsd==1', {
['OS=="mac" or OS=="ios" or OS=="android" or os_bsd==1 or chromecast==1', {
'defines': [
'HAVE_EXPAT_CONFIG_H',
],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment