Fix new third_party/BUILD.gn to use the right build configuration.
[pdfium.git] / third_party / BUILD.gn
1 # Copyright 2014 PDFium 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.
4
5 group("third_party") {
6   deps = [
7     ":bigint",
8     ":freetype",
9     ":safemath",
10   ]
11 }
12
13 static_library("bigint") {
14   configs -= [ "//build/config/compiler:chromium_code" ]
15   configs += [
16       "//third_party/pdfium:pdfium_config",
17       "//build/config/compiler:no_chromium_code",
18   ]
19   sources = [
20     "bigint/BigInteger.hh",
21     "bigint/BigIntegerLibrary.hh",
22     "bigint/BigIntegerUtils.hh",
23     "bigint/BigUnsigned.hh",
24     "bigint/NumberlikeArray.hh",
25     "bigint/BigUnsignedInABase.hh",
26     "bigint/BigInteger.cc",
27     "bigint/BigIntegerUtils.cc",
28     "bigint/BigUnsigned.cc",
29     "bigint/BigUnsignedInABase.cc",
30   ]
31 }
32
33 static_library("freetype") {
34   configs -= [ "//build/config/compiler:chromium_code" ]
35   configs += [
36       "//third_party/pdfium:pdfium_config",
37       "//build/config/compiler:no_chromium_code",
38   ]
39   sources = [
40     "freetype/include/freetype.h",
41     "freetype/include/ft2build.h",
42     "freetype/include/ftmm.h",
43     "freetype/include/ftotval.h",
44     "freetype/include/ftoutln.h",
45     "freetype/include/tttables.h",
46     "freetype/include/internal/ftobjs.h",
47     "freetype/include/internal/ftstream.h",
48     "freetype/include/internal/tttypes.h",
49     "freetype/src/cff/cffobjs.h",
50     "freetype/src/cff/cfftypes.h",
51     "freetype/src/cff/cff.c",
52     "freetype/src/base/ftbase.c",
53     "freetype/src/base/ftbitmap.c",
54     "freetype/src/base/ftglyph.c",
55     "freetype/src/base/ftinit.c",
56     "freetype/src/base/ftlcdfil.c",
57     "freetype/src/base/ftmm.c",
58     "freetype/src/base/ftsystem.c",
59     "freetype/src/psaux/psaux.c",
60     "freetype/src/pshinter/pshinter.c",
61     "freetype/src/psnames/psmodule.c",
62     "freetype/src/raster/raster.c",
63     "freetype/src/sfnt/sfnt.c",
64     "freetype/src/smooth/smooth.c",
65     "freetype/src/truetype/truetype.c",
66     "freetype/src/type1/type1.c",
67     "freetype/src/cid/type1cid.c",
68   ]
69 }
70
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   ]
77   sources = [
78     "logging.h",
79     "macros.h",
80     "template_util.h",
81     "numerics/safe_conversions.h",
82     "numerics/safe_conversions_impl.h",
83     "numerics/safe_math.h",
84     "numerics/safe_math_impl.h",
85   ]
86 }
87