1 # Copyright 2014 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 { 6 'targets': [ 7 { 8 'target_name': 'fontconfig', 9 'type': '<(component)', 10 'dependencies' : [ 11 '../zlib/zlib.gyp:zlib', 12 '../../build/linux/system.gyp:freetype2', 13 '../libxml/libxml.gyp:libxml', 14 ], 15 'defines': [ 16 'HAVE_CONFIG_H', 17 'FC_CACHEDIR="/var/cache/fontconfig"', 18 'FONTCONFIG_PATH="/etc/fonts"', 19 ], 20 'conditions': [ 21 ['clang==1', { 22 # Work around a null-conversion warning. See crbug.com/358852. 23 'cflags': [ 24 '-Wno-non-literal-null-conversion', 25 ], 26 }], 27 ], 28 'sources': [ 29 'src/src/fcarch.h', 30 'src/src/fcatomic.c', 31 'src/src/fcblanks.c', 32 'src/src/fccache.c', 33 'src/src/fccfg.c', 34 'src/src/fccharset.c', 35 'src/src/fccompat.c', 36 'src/src/fcdbg.c', 37 'src/src/fcdefault.c', 38 'src/src/fcdir.c', 39 'src/src/fcformat.c', 40 'src/src/fcfreetype.c', 41 'src/src/fcfs.c', 42 'src/src/fchash.c', 43 'src/src/fcinit.c', 44 'src/src/fclang.c', 45 'src/src/fclist.c', 46 'src/src/fcmatch.c', 47 'src/src/fcmatrix.c', 48 'src/src/fcname.c', 49 'src/src/fcobjs.c', 50 'src/src/fcpat.c', 51 'src/src/fcserialize.c', 52 'src/src/fcstat.c', 53 'src/src/fcstr.c', 54 'src/src/fcxml.c', 55 'src/src/ftglue.h', 56 'src/src/ftglue.c', 57 ], 58 'include_dirs': [ 59 'src', 60 'include', 61 'include/src', 62 ], 63 'direct_dependent_settings': { 64 'include_dirs': [ 65 'src', 66 ], 67 }, 68 }, 69 ], 70 } 71