blob: 127d6e6a36f9975d8d8dffd0a3101b7c3b267a21 [file] [log] [blame]
package {
default_applicable_licenses: ["external_freetype_license"],
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "external_freetype_license",
visibility: [":__subpackages__"],
license_kinds: [
license_text: [
cc_defaults {
name: "libft2_defaults",
host_supported: true,
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
// compile in ARM mode, since the glyph loader/renderer is a hotspot
// when loading complex pages in the browser
arch: {
arm: {
instruction_set: "arm",
srcs: [
export_include_dirs: ["include"],
cflags: [
// Upstream ignores unused parameter warning
// Disabling some of modules results in warnings
cc_library {
name: "libft2",
defaults: ["libft2_defaults"],
cflags: [
// Usually these are defined in include/freetype/config/ftoption.h
// we have commented them and defined them here to allow for the
// no dependency variant libft2.nodep below.
// the following is for testing only, and should not be used in final
// builds of the product
shared_libs: [
target: {
android: {
cflags: [
not_windows: {
cflags: [
windows: {
enabled: true,
llndk: {
private: true,
symbol_file: "",
// variant of libft2 without any library dependencies.
cc_library_static {
name: "libft2.nodep",
vendor_available: true,
defaults: ["libft2_defaults"],