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

Side by Side Diff: third_party/BUILD.gn

Issue 817813004: Fix new third_party/BUILD.gn to use the right build configuration. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | 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 ":freetype", 8 ":freetype",
9 ":safemath", 9 ":safemath",
10 ] 10 ]
11 } 11 }
12 12
13 static_library("bigint") { 13 static_library("bigint") {
14 configs -= [ "//build/config/compiler:chromium_code" ]
15 configs += [
16 "//third_party/pdfium:pdfium_config",
Tom Sepez 2015/01/09 22:53:01 Not sure how this plays out in a standalone world
17 "//build/config/compiler:no_chromium_code",
18 ]
14 sources = [ 19 sources = [
15 "bigint/BigInteger.hh", 20 "bigint/BigInteger.hh",
16 "bigint/BigIntegerLibrary.hh", 21 "bigint/BigIntegerLibrary.hh",
17 "bigint/BigIntegerUtils.hh", 22 "bigint/BigIntegerUtils.hh",
18 "bigint/BigUnsigned.hh", 23 "bigint/BigUnsigned.hh",
19 "bigint/NumberlikeArray.hh", 24 "bigint/NumberlikeArray.hh",
20 "bigint/BigUnsignedInABase.hh", 25 "bigint/BigUnsignedInABase.hh",
21 "bigint/BigInteger.cc", 26 "bigint/BigInteger.cc",
22 "bigint/BigIntegerUtils.cc", 27 "bigint/BigIntegerUtils.cc",
23 "bigint/BigUnsigned.cc", 28 "bigint/BigUnsigned.cc",
24 "bigint/BigUnsignedInABase.cc", 29 "bigint/BigUnsignedInABase.cc",
25 ] 30 ]
26 } 31 }
27 32
28 static_library("freetype") { 33 static_library("freetype") {
29 defines = [ 34 configs -= [ "//build/config/compiler:chromium_code" ]
30 "FT2_BUILD_LIBRARY", 35 configs += [
31 ] 36 "//third_party/pdfium:pdfium_config",
32 include_dirs = [ 37 "//build/config/compiler:no_chromium_code",
33 "freetype/include",
34 ] 38 ]
35 sources = [ 39 sources = [
36 "freetype/include/freetype.h", 40 "freetype/include/freetype.h",
37 "freetype/include/ft2build.h", 41 "freetype/include/ft2build.h",
38 "freetype/include/ftmm.h", 42 "freetype/include/ftmm.h",
39 "freetype/include/ftotval.h", 43 "freetype/include/ftotval.h",
40 "freetype/include/ftoutln.h", 44 "freetype/include/ftoutln.h",
41 "freetype/include/tttables.h", 45 "freetype/include/tttables.h",
42 "freetype/include/internal/ftobjs.h", 46 "freetype/include/internal/ftobjs.h",
43 "freetype/include/internal/ftstream.h", 47 "freetype/include/internal/ftstream.h",
(...skipping 14 matching lines...) Expand all
58 "freetype/src/raster/raster.c", 62 "freetype/src/raster/raster.c",
59 "freetype/src/sfnt/sfnt.c", 63 "freetype/src/sfnt/sfnt.c",
60 "freetype/src/smooth/smooth.c", 64 "freetype/src/smooth/smooth.c",
61 "freetype/src/truetype/truetype.c", 65 "freetype/src/truetype/truetype.c",
62 "freetype/src/type1/type1.c", 66 "freetype/src/type1/type1.c",
63 "freetype/src/cid/type1cid.c", 67 "freetype/src/cid/type1cid.c",
64 ] 68 ]
65 } 69 }
66 70
67 component("safemath") { 71 component("safemath") {
72 configs -= [ "//build/config/compiler:chromium_code" ]
73 configs += [
74 "//third_party/pdfium:pdfium_config",
75 "//build/config/compiler:no_chromium_code",
76 ]
68 sources = [ 77 sources = [
69 "logging.h", 78 "logging.h",
70 "macros.h", 79 "macros.h",
71 "template_util.h", 80 "template_util.h",
72 "numerics/safe_conversions.h", 81 "numerics/safe_conversions.h",
73 "numerics/safe_conversions_impl.h", 82 "numerics/safe_conversions_impl.h",
74 "numerics/safe_math.h", 83 "numerics/safe_math.h",
75 "numerics/safe_math_impl.h", 84 "numerics/safe_math_impl.h",
76 ] 85 ]
77 } 86 }
78 87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698