Index: third_party/freetype-android/BUILD.gn |
diff --git a/third_party/freetype-android/BUILD.gn b/third_party/freetype-android/BUILD.gn |
deleted file mode 100644 |
index c853c7628e010f8ea6f37f354fca4caeaf9502e4..0000000000000000000000000000000000000000 |
--- a/third_party/freetype-android/BUILD.gn |
+++ /dev/null |
@@ -1,84 +0,0 @@ |
-# Copyright 2014 The Chromium Authors. All rights reserved. |
-# Use of this source code is governed by a BSD-style license that can be |
-# found in the LICENSE file. |
- |
-import("//build/config/chromecast_build.gni") |
- |
-config("freetype_config") { |
- include_dirs = [ |
- "include", |
- "src/include", |
- ] |
-} |
- |
-config("freetype-warnings") { |
- cflags = [] |
- |
- # The reduction of FreeType files to a minimum triggers -Wunused-function |
- # warnings in ftbase.c |
- cflags += [ "-Wno-unused-function" ] |
-} |
- |
-config("freetype-visibility") { |
- cflags = [] |
- cflags += [ "-fvisibility=default" ] |
-} |
- |
-component("freetype") { |
- if (is_linux) { |
- output_name = "freetype" |
- output_extension = "so.6" |
- } |
- |
- sources = [ |
- "src/src/autofit/autofit.c", |
- "src/src/base/ftbase.c", |
- "src/src/base/ftbbox.c", |
- "src/src/base/ftbitmap.c", |
- "src/src/base/ftfntfmt.c", |
- "src/src/base/ftfstype.c", |
- "src/src/base/ftgasp.c", |
- "src/src/base/ftglyph.c", |
- "src/src/base/ftinit.c", |
- "src/src/base/ftlcdfil.c", |
- "src/src/base/ftmm.c", |
- "src/src/base/ftstroke.c", |
- "src/src/base/ftsystem.c", |
- "src/src/base/fttype1.c", |
- "src/src/cff/cff.c", |
- "src/src/gzip/ftgzip.c", |
- "src/src/pshinter/pshinter.c", |
- "src/src/psnames/psnames.c", |
- "src/src/raster/raster.c", |
- "src/src/sfnt/sfnt.c", |
- "src/src/smooth/smooth.c", |
- "src/src/truetype/truetype.c", |
- ] |
- |
- if (is_linux || is_chromecast) { |
- # Needed for content_shell on Linux and Chromecast, since fontconfig requires FT_Get_BDF_Property. |
- sources += [ "src/src/base/ftbdf.c" ] |
- } |
- |
- defines = [ |
- "FT2_BUILD_LIBRARY", |
- "DARWIN_NO_CARBON", |
- |
- # Long directory name to avoid accidentally using wrong headers. |
- "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", |
- "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", |
- ] |
- |
- public_configs = [ ":freetype_config" ] |
- configs -= [ "//build/config/compiler:chromium_code" ] |
- configs += [ |
- "//build/config/compiler:no_chromium_code", |
- ":freetype-warnings", |
- ":freetype-visibility" |
- ] |
- |
- deps = [ |
- "//third_party/libpng", |
- "//third_party/zlib", |
- ] |
-} |