Home | History | Annotate | Download | only in expat
      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.
      4 
      5 if (is_linux) {
      6   config("expat_config") {
      7     libs = [ "expat" ]
      8   }
      9 
     10   group("expat") {
     11     public_configs = [ ":expat_config" ]
     12   }
     13 } else {
     14   config("expat_config") {
     15     include_dirs = [ "files/lib" ]
     16     defines = [ "XML_STATIC" ]
     17   }
     18 
     19   static_library("expat") {
     20     sources = [
     21       "files/lib/expat.h",
     22       "files/lib/xmlparse.c",
     23       "files/lib/xmlrole.c",
     24       "files/lib/xmltok.c",
     25     ]
     26 
     27     public_configs = [ ":expat_config" ]
     28 
     29     defines = [ "_LIB" ]
     30     if (is_win) {
     31       defines += [ "COMPILED_FROM_DSP" ]
     32     } else {
     33       defines += [ "HAVE_EXPAT_CONFIG_H" ]
     34     }
     35   }
     36 }
     37