| OLD | NEW |
| 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 26 matching lines...) Expand all Loading... |
| 37 # ftbase.h are unused. | 37 # ftbase.h are unused. |
| 38 cflags = [ "-Wno-unused-function" ] | 38 cflags = [ "-Wno-unused-function" ] |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 source_set("fx_freetype") { | 42 source_set("fx_freetype") { |
| 43 configs -= [ "//build/config/compiler:chromium_code" ] | 43 configs -= [ "//build/config/compiler:chromium_code" ] |
| 44 configs += [ | 44 configs += [ |
| 45 "//build/config/compiler:no_chromium_code", | 45 "//build/config/compiler:no_chromium_code", |
| 46 "//third_party/pdfium:pdfium_config", | 46 "//third_party/pdfium:pdfium_config", |
| 47 |
| 47 # Must be after no_chromium_code for warning flags to be ordered correctly. | 48 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 48 ":fx_freetype_warnings", | 49 ":fx_freetype_warnings", |
| 49 ] | 50 ] |
| 50 defines = [ "FT2_BUILD_LIBRARY" ] | 51 defines = [ "FT2_BUILD_LIBRARY" ] |
| 51 sources = [ | 52 sources = [ |
| 52 "freetype/include/freetype/freetype.h", | 53 "freetype/include/freetype/freetype.h", |
| 53 "freetype/include/freetype/ftmm.h", | 54 "freetype/include/freetype/ftmm.h", |
| 54 "freetype/include/freetype/ftotval.h", | 55 "freetype/include/freetype/ftotval.h", |
| 55 "freetype/include/freetype/ftoutln.h", | 56 "freetype/include/freetype/ftoutln.h", |
| 56 "freetype/include/freetype/internal/ftobjs.h", | 57 "freetype/include/freetype/internal/ftobjs.h", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 87 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. | 88 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. |
| 88 cflags = [ "-Wno-unused-function" ] | 89 cflags = [ "-Wno-unused-function" ] |
| 89 } | 90 } |
| 90 } | 91 } |
| 91 | 92 |
| 92 source_set("fx_agg") { | 93 source_set("fx_agg") { |
| 93 configs -= [ "//build/config/compiler:chromium_code" ] | 94 configs -= [ "//build/config/compiler:chromium_code" ] |
| 94 configs += [ | 95 configs += [ |
| 95 "//build/config/compiler:no_chromium_code", | 96 "//build/config/compiler:no_chromium_code", |
| 96 "//third_party/pdfium:pdfium_config", | 97 "//third_party/pdfium:pdfium_config", |
| 98 |
| 97 # Must be after no_chromium_code for warning flags to be ordered correctly. | 99 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 98 ":fx_agg_warnings", | 100 ":fx_agg_warnings", |
| 99 ] | 101 ] |
| 100 sources = [ | 102 sources = [ |
| 101 "agg23/agg_basics.h", | 103 "agg23/agg_basics.h", |
| 102 "agg23/agg_clip_liang_barsky.h", | 104 "agg23/agg_clip_liang_barsky.h", |
| 103 "agg23/agg_conv_dash.h", | 105 "agg23/agg_conv_dash.h", |
| 104 "agg23/agg_conv_stroke.h", | 106 "agg23/agg_conv_stroke.h", |
| 105 "agg23/agg_curves.cpp", | 107 "agg23/agg_curves.cpp", |
| 106 "agg23/agg_curves.h", | 108 "agg23/agg_curves.h", |
| 107 "agg23/agg_path_storage.cpp", | 109 "agg23/agg_path_storage.cpp", |
| 108 "agg23/agg_path_storage.h", | 110 "agg23/agg_path_storage.h", |
| 109 "agg23/agg_rasterizer_scanline_aa.cpp", | 111 "agg23/agg_rasterizer_scanline_aa.cpp", |
| 110 "agg23/agg_rasterizer_scanline_aa.h", | 112 "agg23/agg_rasterizer_scanline_aa.h", |
| 111 "agg23/agg_renderer_scanline.h", | 113 "agg23/agg_renderer_scanline.h", |
| 112 "agg23/agg_rendering_buffer.h", | 114 "agg23/agg_rendering_buffer.h", |
| 113 "agg23/agg_scanline_u.h", | 115 "agg23/agg_scanline_u.h", |
| 114 "agg23/agg_vcgen_dash.cpp", | 116 "agg23/agg_vcgen_dash.cpp", |
| 115 "agg23/agg_vcgen_stroke.cpp", | 117 "agg23/agg_vcgen_stroke.cpp", |
| 116 ] | 118 ] |
| 117 } | 119 } |
| 118 | 120 |
| 119 config("fx_lcms2_warnings") { | 121 config("fx_lcms2_warnings") { |
| 120 if (is_clang) { | 122 if (is_clang) { |
| 121 # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this | 123 cflags = [ |
| 122 # library doesn't appear to have this problem. | 124 # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this |
| 123 cflags = [ "-Wno-missing-braces" ] | 125 # library doesn't appear to have this problem. |
| 126 "-Wno-missing-braces", |
| 127 |
| 128 # FindPrev() in cmsplugin.c is unused. |
| 129 "-Wno-unused-function", |
| 130 ] |
| 124 } | 131 } |
| 125 } | 132 } |
| 126 | 133 |
| 127 source_set("fx_lcms2") { | 134 source_set("fx_lcms2") { |
| 128 configs -= [ "//build/config/compiler:chromium_code" ] | 135 configs -= [ "//build/config/compiler:chromium_code" ] |
| 129 configs += [ | 136 configs += [ |
| 130 "//build/config/compiler:no_chromium_code", | 137 "//build/config/compiler:no_chromium_code", |
| 131 "//third_party/pdfium:pdfium_config", | 138 "//third_party/pdfium:pdfium_config", |
| 139 |
| 132 # Must be after no_chromium_code for warning flags to be ordered correctly. | 140 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 133 ":fx_lcms2_warnings", | 141 ":fx_lcms2_warnings", |
| 134 ] | 142 ] |
| 135 sources = [ | 143 sources = [ |
| 136 "lcms2-2.6/include/lcms2.h", | 144 "lcms2-2.6/include/lcms2.h", |
| 137 "lcms2-2.6/include/lcms2_plugin.h", | 145 "lcms2-2.6/include/lcms2_plugin.h", |
| 138 "lcms2-2.6/src/cmscam02.c", | 146 "lcms2-2.6/src/cmscam02.c", |
| 139 "lcms2-2.6/src/cmscgats.c", | 147 "lcms2-2.6/src/cmscgats.c", |
| 140 "lcms2-2.6/src/cmscnvrt.c", | 148 "lcms2-2.6/src/cmscnvrt.c", |
| 141 "lcms2-2.6/src/cmserr.c", | 149 "lcms2-2.6/src/cmserr.c", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 156 "lcms2-2.6/src/cmsps2.c", | 164 "lcms2-2.6/src/cmsps2.c", |
| 157 "lcms2-2.6/src/cmssamp.c", | 165 "lcms2-2.6/src/cmssamp.c", |
| 158 "lcms2-2.6/src/cmssm.c", | 166 "lcms2-2.6/src/cmssm.c", |
| 159 "lcms2-2.6/src/cmstypes.c", | 167 "lcms2-2.6/src/cmstypes.c", |
| 160 "lcms2-2.6/src/cmsvirt.c", | 168 "lcms2-2.6/src/cmsvirt.c", |
| 161 "lcms2-2.6/src/cmswtpnt.c", | 169 "lcms2-2.6/src/cmswtpnt.c", |
| 162 "lcms2-2.6/src/cmsxform.c", | 170 "lcms2-2.6/src/cmsxform.c", |
| 163 ] | 171 ] |
| 164 } | 172 } |
| 165 | 173 |
| 166 source_set("fx_libjpeg") { | 174 # This is only used for standalone builds. |
| 175 source_set("jpeg") { |
| 167 configs -= [ "//build/config/compiler:chromium_code" ] | 176 configs -= [ "//build/config/compiler:chromium_code" ] |
| 168 configs += [ | 177 configs += [ |
| 169 "//build/config/compiler:no_chromium_code", | 178 "//build/config/compiler:no_chromium_code", |
| 170 "//third_party/pdfium:pdfium_config", | 179 "//third_party/pdfium:pdfium_config", |
| 171 ] | 180 ] |
| 172 sources = [ | 181 sources = [ |
| 173 "libjpeg/cderror.h", | 182 "libjpeg/cderror.h", |
| 174 "libjpeg/cdjpeg.h", | 183 "libjpeg/cdjpeg.h", |
| 175 "libjpeg/fpdfapi_jcapimin.c", | 184 "libjpeg/fpdfapi_jcapimin.c", |
| 176 "libjpeg/fpdfapi_jcapistd.c", | 185 "libjpeg/fpdfapi_jcapistd.c", |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 "base/macros.h", | 374 "base/macros.h", |
| 366 "base/nonstd_unique_ptr.h", | 375 "base/nonstd_unique_ptr.h", |
| 367 "base/numerics/safe_conversions.h", | 376 "base/numerics/safe_conversions.h", |
| 368 "base/numerics/safe_conversions_impl.h", | 377 "base/numerics/safe_conversions_impl.h", |
| 369 "base/numerics/safe_math.h", | 378 "base/numerics/safe_math.h", |
| 370 "base/numerics/safe_math_impl.h", | 379 "base/numerics/safe_math_impl.h", |
| 371 "base/stl_util.h", | 380 "base/stl_util.h", |
| 372 "base/template_util.h", | 381 "base/template_util.h", |
| 373 ] | 382 ] |
| 374 } | 383 } |
| OLD | NEW |