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

Side by Side Diff: third_party/BUILD.gn

Issue 1425153006: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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 | « testing/test_support.cpp ('k') | third_party/third_party.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 group("third_party") { 5 group("third_party") {
6 deps = [ 6 deps = [
7 ":bigint", 7 ":bigint",
8 ":fx_freetype", 8 ":fx_freetype",
9 ":pdfium_base", 9 ":pdfium_base",
10 ] 10 ]
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 } 40 }
41 41
42 # Tests may link against this even if the production library doesn't, 42 # Tests may link against this even if the production library doesn't,
43 # so it needs to be separate from it. 43 # so it needs to be separate from it.
44 static_library("fx_freetype") { 44 static_library("fx_freetype") {
45 configs -= [ "//build/config/compiler:chromium_code" ] 45 configs -= [ "//build/config/compiler:chromium_code" ]
46 configs += [ 46 configs += [
47 "//build/config/compiler:no_chromium_code", 47 "//build/config/compiler:no_chromium_code",
48 "//third_party/pdfium:pdfium_config", 48 "//third_party/pdfium:pdfium_config",
49
49 # Must be after no_chromium_code for warning flags to be ordered correctly. 50 # Must be after no_chromium_code for warning flags to be ordered correctly.
50 ":fx_freetype_warnings", 51 ":fx_freetype_warnings",
51 ] 52 ]
52 defines = [ "FT2_BUILD_LIBRARY" ] 53 defines = [ "FT2_BUILD_LIBRARY" ]
53 sources = [ 54 sources = [
54 "freetype/include/freetype/freetype.h", 55 "freetype/include/freetype/freetype.h",
55 "freetype/include/freetype/ftmm.h", 56 "freetype/include/freetype/ftmm.h",
56 "freetype/include/freetype/ftotval.h", 57 "freetype/include/freetype/ftotval.h",
57 "freetype/include/freetype/ftoutln.h", 58 "freetype/include/freetype/ftoutln.h",
58 "freetype/include/freetype/internal/ftobjs.h", 59 "freetype/include/freetype/internal/ftobjs.h",
(...skipping 30 matching lines...) Expand all
89 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. 90 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
90 cflags = [ "-Wno-unused-function" ] 91 cflags = [ "-Wno-unused-function" ]
91 } 92 }
92 } 93 }
93 94
94 source_set("fx_agg") { 95 source_set("fx_agg") {
95 configs -= [ "//build/config/compiler:chromium_code" ] 96 configs -= [ "//build/config/compiler:chromium_code" ]
96 configs += [ 97 configs += [
97 "//build/config/compiler:no_chromium_code", 98 "//build/config/compiler:no_chromium_code",
98 "//third_party/pdfium:pdfium_config", 99 "//third_party/pdfium:pdfium_config",
100
99 # Must be after no_chromium_code for warning flags to be ordered correctly. 101 # Must be after no_chromium_code for warning flags to be ordered correctly.
100 ":fx_agg_warnings", 102 ":fx_agg_warnings",
101 ] 103 ]
102 sources = [ 104 sources = [
103 "agg23/agg_basics.h", 105 "agg23/agg_basics.h",
104 "agg23/agg_clip_liang_barsky.h", 106 "agg23/agg_clip_liang_barsky.h",
105 "agg23/agg_conv_dash.h", 107 "agg23/agg_conv_dash.h",
106 "agg23/agg_conv_stroke.h", 108 "agg23/agg_conv_stroke.h",
107 "agg23/agg_curves.cpp", 109 "agg23/agg_curves.cpp",
108 "agg23/agg_curves.h", 110 "agg23/agg_curves.h",
109 "agg23/agg_path_storage.cpp", 111 "agg23/agg_path_storage.cpp",
110 "agg23/agg_path_storage.h", 112 "agg23/agg_path_storage.h",
111 "agg23/agg_rasterizer_scanline_aa.cpp", 113 "agg23/agg_rasterizer_scanline_aa.cpp",
112 "agg23/agg_rasterizer_scanline_aa.h", 114 "agg23/agg_rasterizer_scanline_aa.h",
113 "agg23/agg_renderer_scanline.h", 115 "agg23/agg_renderer_scanline.h",
114 "agg23/agg_rendering_buffer.h", 116 "agg23/agg_rendering_buffer.h",
115 "agg23/agg_scanline_u.h", 117 "agg23/agg_scanline_u.h",
116 "agg23/agg_vcgen_dash.cpp", 118 "agg23/agg_vcgen_dash.cpp",
117 "agg23/agg_vcgen_stroke.cpp", 119 "agg23/agg_vcgen_stroke.cpp",
118 ] 120 ]
119 } 121 }
120 122
121 config("fx_lcms2_warnings") { 123 config("fx_lcms2_warnings") {
122 visibility = [ ":*" ] 124 visibility = [ ":*" ]
123 if (is_clang) { 125 if (is_clang) {
124 cflags = [ 126 cflags = [
125 # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this 127 # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this
126 # library doesn't appear to have this problem. 128 # library doesn't appear to have this problem.
127 "-Wno-missing-braces", 129 "-Wno-missing-braces",
130
128 # FindPrev() in cmsplugin.c is unused. 131 # FindPrev() in cmsplugin.c is unused.
129 "-Wno-unused-function", 132 "-Wno-unused-function",
130 ] 133 ]
131 } 134 }
132 } 135 }
133 136
134 source_set("fx_lcms2") { 137 source_set("fx_lcms2") {
135 configs -= [ "//build/config/compiler:chromium_code" ] 138 configs -= [ "//build/config/compiler:chromium_code" ]
136 configs += [ 139 configs += [
137 "//build/config/compiler:no_chromium_code", 140 "//build/config/compiler:no_chromium_code",
138 "//third_party/pdfium:pdfium_config", 141 "//third_party/pdfium:pdfium_config",
142
139 # Must be after no_chromium_code for warning flags to be ordered correctly. 143 # Must be after no_chromium_code for warning flags to be ordered correctly.
140 ":fx_lcms2_warnings", 144 ":fx_lcms2_warnings",
141 ] 145 ]
142 sources = [ 146 sources = [
143 "lcms2-2.6/include/lcms2.h", 147 "lcms2-2.6/include/lcms2.h",
144 "lcms2-2.6/include/lcms2_plugin.h", 148 "lcms2-2.6/include/lcms2_plugin.h",
145 "lcms2-2.6/src/cmscam02.c", 149 "lcms2-2.6/src/cmscam02.c",
146 "lcms2-2.6/src/cmscgats.c", 150 "lcms2-2.6/src/cmscgats.c",
147 "lcms2-2.6/src/cmscnvrt.c", 151 "lcms2-2.6/src/cmscnvrt.c",
148 "lcms2-2.6/src/cmserr.c", 152 "lcms2-2.6/src/cmserr.c",
(...skipping 14 matching lines...) Expand all
163 "lcms2-2.6/src/cmsps2.c", 167 "lcms2-2.6/src/cmsps2.c",
164 "lcms2-2.6/src/cmssamp.c", 168 "lcms2-2.6/src/cmssamp.c",
165 "lcms2-2.6/src/cmssm.c", 169 "lcms2-2.6/src/cmssm.c",
166 "lcms2-2.6/src/cmstypes.c", 170 "lcms2-2.6/src/cmstypes.c",
167 "lcms2-2.6/src/cmsvirt.c", 171 "lcms2-2.6/src/cmsvirt.c",
168 "lcms2-2.6/src/cmswtpnt.c", 172 "lcms2-2.6/src/cmswtpnt.c",
169 "lcms2-2.6/src/cmsxform.c", 173 "lcms2-2.6/src/cmsxform.c",
170 ] 174 ]
171 } 175 }
172 176
173 source_set("fx_libjpeg") { 177 # This is only used for standalone builds.
178 source_set("jpeg") {
174 configs -= [ "//build/config/compiler:chromium_code" ] 179 configs -= [ "//build/config/compiler:chromium_code" ]
175 configs += [ 180 configs += [
176 "//build/config/compiler:no_chromium_code", 181 "//build/config/compiler:no_chromium_code",
177 "//third_party/pdfium:pdfium_config", 182 "//third_party/pdfium:pdfium_config",
178 ] 183 ]
179 sources = [ 184 sources = [
180 "libjpeg/cderror.h", 185 "libjpeg/cderror.h",
181 "libjpeg/cdjpeg.h", 186 "libjpeg/cdjpeg.h",
182 "libjpeg/fpdfapi_jcapimin.c", 187 "libjpeg/fpdfapi_jcapimin.c",
183 "libjpeg/fpdfapi_jcapistd.c", 188 "libjpeg/fpdfapi_jcapistd.c",
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 "base/macros.h", 305 "base/macros.h",
301 "base/nonstd_unique_ptr.h", 306 "base/nonstd_unique_ptr.h",
302 "base/numerics/safe_conversions.h", 307 "base/numerics/safe_conversions.h",
303 "base/numerics/safe_conversions_impl.h", 308 "base/numerics/safe_conversions_impl.h",
304 "base/numerics/safe_math.h", 309 "base/numerics/safe_math.h",
305 "base/numerics/safe_math_impl.h", 310 "base/numerics/safe_math_impl.h",
306 "base/stl_util.h", 311 "base/stl_util.h",
307 "base/template_util.h", 312 "base/template_util.h",
308 ] 313 ]
309 } 314 }
OLDNEW
« no previous file with comments | « testing/test_support.cpp ('k') | third_party/third_party.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698