exclude PluginsFieldTrialTest.NoPrefLeftBehind from valgrind bot
[chromium-blink-merge.git] / third_party / libjpeg / BUILD.gn
blob063d7f310593afaae8ff9f8368ba7fb16f225307
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 # Do not use the targets in this file unless you need a certain libjpeg
6 # implementation. Use the meta target //third_party:jpeg instead.
8 config("libjpeg_config") {
9   include_dirs = [ "." ]
12 source_set("libjpeg") {
13   sources = [
14     "jcapimin.c",
15     "jcapistd.c",
16     "jccoefct.c",
17     "jccolor.c",
18     "jcdctmgr.c",
19     "jchuff.c",
20     "jchuff.h",
21     "jcinit.c",
22     "jcmainct.c",
23     "jcmarker.c",
24     "jcmaster.c",
25     "jcomapi.c",
26     "jconfig.h",
27     "jcparam.c",
28     "jcphuff.c",
29     "jcprepct.c",
30     "jcsample.c",
31     "jdapimin.c",
32     "jdapistd.c",
33     "jdatadst.c",
34     "jdatasrc.c",
35     "jdcoefct.c",
36     "jdcolor.c",
37     "jdct.h",
38     "jddctmgr.c",
39     "jdhuff.c",
40     "jdhuff.h",
41     "jdinput.c",
42     "jdmainct.c",
43     "jdmarker.c",
44     "jdmaster.c",
45     "jdmerge.c",
46     "jdphuff.c",
47     "jdpostct.c",
48     "jdsample.c",
49     "jerror.c",
50     "jerror.h",
51     "jfdctflt.c",
52     "jfdctfst.c",
53     "jfdctint.c",
54     "jidctflt.c",
55     "jidctfst.c",
56     "jidctint.c",
57     "jinclude.h",
58     "jmemmgr.c",
59     "jmemnobs.c",
60     "jmemsys.h",
61     "jmorecfg.h",
62     "jpegint.h",
63     "jpeglib.h",
64     "jquant1.c",
65     "jquant2.c",
66     "jutils.c",
67     "jversion.h",
68   ]
70   defines = [ "NO_GETENV" ]  # getenv() is not thread-safe.
72   configs -= [ "//build/config/compiler:chromium_code" ]
73   configs += [
74     ":libjpeg_config",
75     "//build/config/compiler:no_chromium_code",
76   ]
78   public_configs = [ ":libjpeg_config" ]