Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: third_party/BUILD.gn

Issue 2087593002: GN (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gn.py ('k') | tools/gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 Google Inc.
2 #
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 declare_args() {
7 }
8
9 # Most third_party code should disable warnings: if we don't maintain the code, warnings are noise.
10 config("no_warnings") {
11 cflags = [ "-w" ]
12 }
13 third_party_configs = [ ":no_warnings" ]
14
15 # Chrome's GN environment sets up a bunch of default configs we don't need/want here.
16 unwanted_configs = [
17 "//build/config/clang:extra_warnings",
18 "//build/config/clang:find_bad_constructs",
19 "//build/config/compiler:chromium_code",
20 "//build/config:feature_flags",
21 ]
22
23 config("zlib_public") {
24 include_dirs = [ "externals/zlib" ]
25 }
26 source_set("zlib") {
27 public_configs = [ ":zlib_public" ]
28 configs += third_party_configs
29 configs -= unwanted_configs
30
31 sources = [
32 "externals/zlib/adler32.c",
33 "externals/zlib/compress.c",
34 "externals/zlib/crc32.c",
35 "externals/zlib/deflate.c",
36 "externals/zlib/gzclose.c",
37 "externals/zlib/gzlib.c",
38 "externals/zlib/gzread.c",
39 "externals/zlib/gzwrite.c",
40 "externals/zlib/infback.c",
41 "externals/zlib/inffast.c",
42 "externals/zlib/inflate.c",
43 "externals/zlib/inftrees.c",
44 "externals/zlib/simd_stub.c",
45 "externals/zlib/trees.c",
46 "externals/zlib/uncompr.c",
47 "externals/zlib/zutil.c",
48 ]
49 }
50
51 config("libpng_public") {
52 include_dirs = [ "libpng" ]
53 }
54 source_set("libpng") {
55 public_configs = [ ":libpng_public" ]
56 configs += third_party_configs
57 configs -= unwanted_configs
58
59 deps = [
60 ":zlib",
61 ]
62 sources = [
63 "libpng/png.c",
64 "libpng/pngerror.c",
65 "libpng/pngget.c",
66 "libpng/pngmem.c",
67 "libpng/pngpread.c",
68 "libpng/pngread.c",
69 "libpng/pngrio.c",
70 "libpng/pngrtran.c",
71 "libpng/pngrutil.c",
72 "libpng/pngset.c",
73 "libpng/pngtrans.c",
74 "libpng/pngwio.c",
75 "libpng/pngwrite.c",
76 "libpng/pngwtran.c",
77 "libpng/pngwutil.c",
78 ]
79 }
80
81 config("libjpeg-turbo_config") {
82 include_dirs = [ "externals/libjpeg-turbo" ]
83 }
84 source_set("libjpeg-turbo") {
85 public_configs = [ ":libjpeg-turbo_config" ]
86 configs += third_party_configs
87 configs -= unwanted_configs
88
89 sources = [
90 "externals/libjpeg-turbo/jcapimin.c",
91 "externals/libjpeg-turbo/jcapistd.c",
92 "externals/libjpeg-turbo/jccoefct.c",
93 "externals/libjpeg-turbo/jccolor.c",
94 "externals/libjpeg-turbo/jcdctmgr.c",
95 "externals/libjpeg-turbo/jchuff.c",
96 "externals/libjpeg-turbo/jcinit.c",
97 "externals/libjpeg-turbo/jcmainct.c",
98 "externals/libjpeg-turbo/jcmarker.c",
99 "externals/libjpeg-turbo/jcmaster.c",
100 "externals/libjpeg-turbo/jcomapi.c",
101 "externals/libjpeg-turbo/jcparam.c",
102 "externals/libjpeg-turbo/jcphuff.c",
103 "externals/libjpeg-turbo/jcprepct.c",
104 "externals/libjpeg-turbo/jcsample.c",
105 "externals/libjpeg-turbo/jdapimin.c",
106 "externals/libjpeg-turbo/jdapistd.c",
107 "externals/libjpeg-turbo/jdcoefct.c",
108 "externals/libjpeg-turbo/jdcolor.c",
109 "externals/libjpeg-turbo/jddctmgr.c",
110 "externals/libjpeg-turbo/jdhuff.c",
111 "externals/libjpeg-turbo/jdinput.c",
112 "externals/libjpeg-turbo/jdmainct.c",
113 "externals/libjpeg-turbo/jdmarker.c",
114 "externals/libjpeg-turbo/jdmaster.c",
115 "externals/libjpeg-turbo/jdmerge.c",
116 "externals/libjpeg-turbo/jdphuff.c",
117 "externals/libjpeg-turbo/jdpostct.c",
118 "externals/libjpeg-turbo/jdsample.c",
119 "externals/libjpeg-turbo/jerror.c",
120 "externals/libjpeg-turbo/jfdctflt.c",
121 "externals/libjpeg-turbo/jfdctfst.c",
122 "externals/libjpeg-turbo/jfdctint.c",
123 "externals/libjpeg-turbo/jidctflt.c",
124 "externals/libjpeg-turbo/jidctfst.c",
125 "externals/libjpeg-turbo/jidctint.c",
126 "externals/libjpeg-turbo/jidctred.c",
127 "externals/libjpeg-turbo/jmemmgr.c",
128 "externals/libjpeg-turbo/jmemnobs.c",
129 "externals/libjpeg-turbo/jquant1.c",
130 "externals/libjpeg-turbo/jquant2.c",
131 "externals/libjpeg-turbo/jsimd_none.c",
132 "externals/libjpeg-turbo/jutils.c",
133 ]
134 }
135
136 config("system_freetype2") {
137 include_dirs = [ "/usr/include/freetype2" ]
138 libs = [ "freetype" ]
139 }
140 group("freetype2") {
141 public_configs = [ ":system_freetype2" ]
142 }
143
144 config("system_fontconfig") {
145 libs = [ "fontconfig" ]
146 }
147 group("fontconfig") {
148 public_configs = [ ":system_fontconfig" ]
149 }
OLDNEW
« no previous file with comments | « gn.py ('k') | tools/gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698