Push API: Add PUSH_DELIVERY_STATUS_INVALID_MESSAGE
[chromium-blink-merge.git] / third_party / elfutils / BUILD.gn
blobfca98aba665a7e500f4f11eee83f36159f2e97a6
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.
5 config("libelf_config") {
6   include_dirs = [ "src/libelf" ]
9 source_set("libelf") {
10   sources = [
11     "config.h",
12     "src/libelf/abstract.h",
13     "src/libelf/common.h",
14     "src/libelf/dl-hash.h",
15     "src/libelf/elf.h",
16     "src/libelf/elf-knowledge.h",
17     "src/libelf/exttypes.h",
18     "src/libelf/gelf.h",
19     "src/libelf/gelf_xlate.h",
20     "src/libelf/gnuhash_xlate.h",
21     "src/libelf/libelf.h",
22     "src/libelf/libelfP.h",
23     "src/libelf/nlist.h",
24     "src/libelf/note_xlate.h",
25     "src/libelf/version_xlate.h",
26     "src/libelf/elf32_checksum.c",
27     "src/libelf/elf32_fsize.c",
28     "src/libelf/elf32_getehdr.c",
29     "src/libelf/elf32_getphdr.c",
30     "src/libelf/elf32_getshdr.c",
31     "src/libelf/elf32_newehdr.c",
32     "src/libelf/elf32_newphdr.c",
33     "src/libelf/elf32_offscn.c",
34     "src/libelf/elf32_updatefile.c",
35     "src/libelf/elf32_updatenull.c",
36     "src/libelf/elf32_xlatetof.c",
37     "src/libelf/elf32_xlatetom.c",
38     "src/libelf/elf64_checksum.c",
39     "src/libelf/elf64_fsize.c",
40     "src/libelf/elf64_getehdr.c",
41     "src/libelf/elf64_getphdr.c",
42     "src/libelf/elf64_getshdr.c",
43     "src/libelf/elf64_newehdr.c",
44     "src/libelf/elf64_newphdr.c",
45     "src/libelf/elf64_offscn.c",
46     "src/libelf/elf64_updatefile.c",
47     "src/libelf/elf64_updatenull.c",
48     "src/libelf/elf64_xlatetof.c",
49     "src/libelf/elf64_xlatetom.c",
50     "src/libelf/elf_begin.c",
51     "src/libelf/elf_clone.c",
52     "src/libelf/elf_cntl.c",
53     "src/libelf/elf_end.c",
54     "src/libelf/elf_error.c",
55     "src/libelf/elf_fill.c",
56     "src/libelf/elf_flagdata.c",
57     "src/libelf/elf_flagehdr.c",
58     "src/libelf/elf_flagelf.c",
59     "src/libelf/elf_flagphdr.c",
60     "src/libelf/elf_flagscn.c",
61     "src/libelf/elf_flagshdr.c",
62     "src/libelf/elf_getarhdr.c",
63     "src/libelf/elf_getaroff.c",
64     "src/libelf/elf_getarsym.c",
65     "src/libelf/elf_getbase.c",
66     "src/libelf/elf_getdata.c",
67     "src/libelf/elf_getdata_rawchunk.c",
68     "src/libelf/elf_getident.c",
69     "src/libelf/elf_getphdrnum.c",
70     "src/libelf/elf_getscn.c",
71     "src/libelf/elf_getshdrnum.c",
72     "src/libelf/elf_getshdrstrndx.c",
73     "src/libelf/elf_gnu_hash.c",
74     "src/libelf/elf_hash.c",
75     "src/libelf/elf_kind.c",
76     "src/libelf/elf_memory.c",
77     "src/libelf/elf_ndxscn.c",
78     "src/libelf/elf_newdata.c",
79     "src/libelf/elf_newscn.c",
80     "src/libelf/elf_next.c",
81     "src/libelf/elf_nextscn.c",
82     "src/libelf/elf_rand.c",
83     "src/libelf/elf_rawdata.c",
84     "src/libelf/elf_rawfile.c",
85     "src/libelf/elf_readall.c",
86     "src/libelf/elf_scnshndx.c",
87     "src/libelf/elf_strptr.c",
88     "src/libelf/elf_update.c",
89     "src/libelf/elf_version.c",
90     "src/libelf/gelf_checksum.c",
91     "src/libelf/gelf_fsize.c",
92     "src/libelf/gelf_getauxv.c",
93     "src/libelf/gelf_getclass.c",
94     "src/libelf/gelf_getdyn.c",
95     "src/libelf/gelf_getehdr.c",
96     "src/libelf/gelf_getlib.c",
97     "src/libelf/gelf_getmove.c",
98     "src/libelf/gelf_getnote.c",
99     "src/libelf/gelf_getphdr.c",
100     "src/libelf/gelf_getrela.c",
101     "src/libelf/gelf_getrel.c",
102     "src/libelf/gelf_getshdr.c",
103     "src/libelf/gelf_getsym.c",
104     "src/libelf/gelf_getsyminfo.c",
105     "src/libelf/gelf_getsymshndx.c",
106     "src/libelf/gelf_getverdaux.c",
107     "src/libelf/gelf_getverdef.c",
108     "src/libelf/gelf_getvernaux.c",
109     "src/libelf/gelf_getverneed.c",
110     "src/libelf/gelf_getversym.c",
111     "src/libelf/gelf_newehdr.c",
112     "src/libelf/gelf_newphdr.c",
113     "src/libelf/gelf_offscn.c",
114     "src/libelf/gelf_update_auxv.c",
115     "src/libelf/gelf_update_dyn.c",
116     "src/libelf/gelf_update_ehdr.c",
117     "src/libelf/gelf_update_lib.c",
118     "src/libelf/gelf_update_move.c",
119     "src/libelf/gelf_update_phdr.c",
120     "src/libelf/gelf_update_rela.c",
121     "src/libelf/gelf_update_rel.c",
122     "src/libelf/gelf_update_shdr.c",
123     "src/libelf/gelf_update_sym.c",
124     "src/libelf/gelf_update_syminfo.c",
125     "src/libelf/gelf_update_symshndx.c",
126     "src/libelf/gelf_update_verdaux.c",
127     "src/libelf/gelf_update_verdef.c",
128     "src/libelf/gelf_update_vernaux.c",
129     "src/libelf/gelf_update_verneed.c",
130     "src/libelf/gelf_update_versym.c",
131     "src/libelf/gelf_xlate.c",
132     "src/libelf/gelf_xlatetof.c",
133     "src/libelf/gelf_xlatetom.c",
134     "src/libelf/libelf_crc32.c",
135     "src/libelf/libelf_next_prime.c",
136     "src/libelf/nlist.c",
137   ]
139   include_dirs = [
140     ".",
141     "src/lib",
142   ]
144   defines = [
145     "_GNU_SOURCE",
146     "HAVE_CONFIG_H",
147   ]
149   cflags = [
150     "-std=gnu99",
151     "-Wall",
152     "-Wshadow",
153     "-Werror",
154     "-Wunused",
155     "-Wextra",
156     "-Wformat=2",
157   ]
159   public_configs = [ ":libelf_config" ]
160   configs -= [ "//build/config/compiler:chromium_code" ]
161   configs += [ "//build/config/compiler:no_chromium_code" ]