diff options
-rw-r--r-- | third_party/expat/BUILD.gn | 5 | ||||
-rw-r--r-- | third_party/expat/expat.gyp | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/third_party/expat/BUILD.gn b/third_party/expat/BUILD.gn index 78ddb05..533296e 100644 --- a/third_party/expat/BUILD.gn +++ b/third_party/expat/BUILD.gn @@ -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" ] } diff --git a/third_party/expat/expat.gyp b/third_party/expat/expat.gyp index c11b9e6..145e748 100644 --- a/third_party/expat/expat.gyp +++ b/third_party/expat/expat.gyp @@ -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', ], |