| OLD | NEW |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium 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 assert(is_linux, "This file should only be depended on from Linux.") | 5 assert(is_linux, "This file should only be depended on from Linux.") |
| 6 | 6 |
| 7 config("freetype2_config") { | 7 config("freetype2_config") { |
| 8 include_dirs = [ "include", "src/include" ] | 8 include_dirs = [ |
| 9 "include", |
| 10 "src/include", |
| 11 ] |
| 9 } | 12 } |
| 10 | 13 |
| 11 shared_library("freetype2") { | 14 shared_library("freetype2") { |
| 12 output_name = "freetype" | 15 output_name = "freetype" |
| 13 output_extension = "so.6" | 16 output_extension = "so.6" |
| 14 | 17 |
| 15 sources = [ | 18 sources = [ |
| 16 "src/src/autofit/autofit.c", | 19 "src/src/autofit/autofit.c", |
| 17 "src/src/base/ftbase.c", | 20 "src/src/base/ftbase.c", |
| 18 "src/src/base/ftbbox.c", | 21 "src/src/base/ftbbox.c", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 49 "src/src/smooth/smooth.c", | 52 "src/src/smooth/smooth.c", |
| 50 "src/src/truetype/truetype.c", | 53 "src/src/truetype/truetype.c", |
| 51 "src/src/type1/type1.c", | 54 "src/src/type1/type1.c", |
| 52 "src/src/type42/type42.c", | 55 "src/src/type42/type42.c", |
| 53 "src/src/winfonts/winfnt.c", | 56 "src/src/winfonts/winfnt.c", |
| 54 ] | 57 ] |
| 55 | 58 |
| 56 defines = [ | 59 defines = [ |
| 57 "FT_CONFIG_OPTION_SYSTEM_ZLIB", | 60 "FT_CONFIG_OPTION_SYSTEM_ZLIB", |
| 58 "FT2_BUILD_LIBRARY", | 61 "FT2_BUILD_LIBRARY", |
| 59 | |
| 60 "FT_CONFIG_CONFIG_H=<ftconfig.h>", # See comments in README.chromium. | 62 "FT_CONFIG_CONFIG_H=<ftconfig.h>", # See comments in README.chromium. |
| 61 "FT_CONFIG_MODULES_H=<ftmodule.h>", # See comments in README.chromium. | 63 "FT_CONFIG_MODULES_H=<ftmodule.h>", # See comments in README.chromium. |
| 62 ] | 64 ] |
| 63 | 65 |
| 64 configs -= [ "//build/config/compiler:chromium_code" ] | 66 configs -= [ "//build/config/compiler:chromium_code" ] |
| 65 configs += [ "//build/config/compiler:no_chromium_code" ] | 67 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 66 configs += [ ":freetype2_config" ] | 68 configs += [ ":freetype2_config" ] |
| 67 | 69 |
| 68 public_configs = [ ":freetype2_config" ] | 70 public_configs = [ ":freetype2_config" ] |
| 69 | 71 |
| 70 libs = [ "z" ] | 72 libs = [ "z" ] |
| 71 } | 73 } |
| OLD | NEW |