Make sure webrtc::VideoSourceInterface is released on the main render thread.
[chromium-blink-merge.git] / third_party / expat / BUILD.gn
blobc58b92e4f3fc0ee20c3ebbe76a2c02f1383c4e72
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.
5 if (is_linux) {
6   config("expat_config") {
7     libs = [ "expat" ]
8   }
10   group("expat") {
11     direct_dependent_configs = [ ":expat_config" ]
12   }
14   # TODO(GYP) Android needs direct dependent includes of
15   # <android_src>/external/expat/lib
16 } else {
17   config("expat_config") {
18     include_dirs = [ "files/lib" ]
19     defines = [ "XML_STATIC" ]
20   }
22   static_library("expat") {
23     sources = [
24       "files/lib/expat.h",
25       "files/lib/xmlparse.c",
26       "files/lib/xmlrole.c",
27       "files/lib/xmltok.c",
28     ]
30     defines = [ "_LIB" ]
31     if (is_win) {
32       defines += [ "COMPILED_FROM_DSP" ]
33     } else {
34       defines += [ "HAVE_EXPAT_CONFIG_H" ]
35     }
36   }