• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library_static {
2    name: "libsfntly",
3
4    srcs: [
5        "cpp/src/sfntly/data/byte_array.cc",
6        "cpp/src/sfntly/data/font_data.cc",
7        "cpp/src/sfntly/data/font_input_stream.cc",
8        "cpp/src/sfntly/data/font_output_stream.cc",
9        "cpp/src/sfntly/data/growable_memory_byte_array.cc",
10        "cpp/src/sfntly/data/memory_byte_array.cc",
11        "cpp/src/sfntly/data/readable_font_data.cc",
12        "cpp/src/sfntly/data/writable_font_data.cc",
13        "cpp/src/sfntly/font.cc",
14        "cpp/src/sfntly/font_factory.cc",
15        "cpp/src/sfntly/port/file_input_stream.cc",
16        "cpp/src/sfntly/port/lock.cc",
17        "cpp/src/sfntly/port/memory_input_stream.cc",
18        "cpp/src/sfntly/port/memory_output_stream.cc",
19        "cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc",
20        "cpp/src/sfntly/table/bitmap/bitmap_glyph.cc",
21        "cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc",
22        "cpp/src/sfntly/table/bitmap/bitmap_size_table.cc",
23        "cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc",
24        "cpp/src/sfntly/table/bitmap/ebdt_table.cc",
25        "cpp/src/sfntly/table/bitmap/eblc_table.cc",
26        "cpp/src/sfntly/table/bitmap/ebsc_table.cc",
27        "cpp/src/sfntly/table/bitmap/glyph_metrics.cc",
28        "cpp/src/sfntly/table/bitmap/index_sub_table.cc",
29        "cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc",
30        "cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc",
31        "cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc",
32        "cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc",
33        "cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc",
34        "cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc",
35        "cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc",
36        "cpp/src/sfntly/table/byte_array_table_builder.cc",
37        "cpp/src/sfntly/table/core/cmap_table.cc",
38        "cpp/src/sfntly/table/core/font_header_table.cc",
39        "cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc",
40        "cpp/src/sfntly/table/core/horizontal_header_table.cc",
41        "cpp/src/sfntly/table/core/horizontal_metrics_table.cc",
42        "cpp/src/sfntly/table/core/maximum_profile_table.cc",
43        "cpp/src/sfntly/table/core/name_table.cc",
44        "cpp/src/sfntly/table/core/os2_table.cc",
45        "cpp/src/sfntly/table/font_data_table.cc",
46        "cpp/src/sfntly/table/generic_table_builder.cc",
47        "cpp/src/sfntly/table/header.cc",
48        "cpp/src/sfntly/table/subtable.cc",
49        "cpp/src/sfntly/table/table.cc",
50        "cpp/src/sfntly/table/table_based_table_builder.cc",
51        "cpp/src/sfntly/table/truetype/glyph_table.cc",
52        "cpp/src/sfntly/table/truetype/loca_table.cc",
53        "cpp/src/sfntly/tag.cc",
54        "cpp/src/sample/chromium/font_subsetter.cc",
55        "cpp/src/sample/chromium/subsetter_impl.cc",
56    ],
57
58    shared_libs: [
59        "libicuuc",
60        "libicui18n",
61    ],
62
63    cflags: [
64        "-fstack-protector",
65        "--param=ssp-buffer-size=4",
66        "-Werror",
67        "-fno-exceptions",
68        "-fno-strict-aliasing",
69        "-Wall",
70        "-Wno-unused-parameter",
71        "-Wno-missing-field-initializers",
72        "-fvisibility=hidden",
73        "-fPIC",
74        "-fno-tree-sra",
75        "-Wno-psabi",
76        "-ffunction-sections",
77        "-funwind-tables",
78        "-g",
79        "-fstack-protector",
80        "-fno-short-enums",
81        "-finline-limit=64",
82        "-Wa,--noexecstack",
83        "-U_FORTIFY_SOURCE",
84        "-Wno-extra",
85        "-Wno-ignored-qualifiers",
86        "-Wno-type-limits",
87        "-Os",
88        "-fno-ident",
89        "-fdata-sections",
90        "-ffunction-sections",
91        "-fomit-frame-pointer",
92
93        "-DANGLE_DX11",
94        "-D_FILE_OFFSET_BITS=64",
95        "-DNO_TCMALLOC",
96        "-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY",
97        "-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE",
98        "-DDISABLE_NACL",
99        "-DCHROMIUM_BUILD",
100        "-DUSE_LIBJPEG_TURBO=1",
101        "-DUSE_PROPRIETARY_CODECS",
102        "-DENABLE_CONFIGURATION_POLICY",
103        "-DENABLE_GPU=1",
104        "-DUSE_OPENSSL=1",
105        "-DENABLE_EGLIMAGE=1",
106        "-DSFNTLY_NO_EXCEPTION",
107        "-DU_USING_ICU_NAMESPACE=0",
108        "-D__STDC_CONSTANT_MACROS",
109        "-D__STDC_FORMAT_MACROS",
110        "-DANDROID",
111        "-D__GNU_SOURCE=1",
112        "-D_STLP_USE_PTR_SPECIALIZATIONS=1",
113        "-DCHROME_BUILD_ID='\"\"'",
114        "-DNDEBUG",
115        "-DNVALGRIND",
116        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
117        "-D_FORTIFY_SOURCE=2",
118    ],
119
120    cppflags: [
121        "-fno-threadsafe-statics",
122        "-fvisibility-inlines-hidden",
123        "-Wsign-compare",
124        "-Wno-abi",
125        "-Wno-error=c++0x-compat",
126        "-Wno-non-virtual-dtor",
127        "-Wno-sign-promo",
128
129        // Temporarily suppress the warning http://b/37911198
130        "-Wno-error=user-defined-warnings",
131    ],
132
133    debug: {
134        cflags: [
135            "-UNDEBUG",
136            "-UNVALGRIND",
137            "-DDYNAMIC_ANNOTATIONS_ENABLED=1",
138            "-DWTF_USE_DYNAMIC_ANNOTATIONS=1",
139            "-D_DEBUG",
140        ],
141    },
142
143    export_include_dirs: ["cpp/src"],
144}
145