| OLD | NEW |
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 declare_args() { | 6 declare_args() { |
| 7 } | 7 } |
| 8 | 8 |
| 9 import("../third_party.gni") | 9 import("../third_party.gni") |
| 10 | 10 |
| 11 if (is_android) { | 11 # TODO: build from source all the time? |
| 12 if (is_android || sanitize == "MSAN") { |
| 12 third_party("freetype2") { | 13 third_party("freetype2") { |
| 13 public_include_dirs = [ "../externals/freetype/include" ] | 14 public_include_dirs = [ "../externals/freetype/include" ] |
| 14 | 15 |
| 15 deps = [ | 16 deps = [ |
| 16 "//third_party/libpng", | 17 "//third_party/libpng", |
| 17 ] | 18 ] |
| 18 | 19 |
| 19 include_dirs = [ "../freetype" ] | 20 include_dirs = [ "../freetype" ] |
| 20 defines = [ | 21 defines = [ |
| 21 "FT2_BUILD_LIBRARY", | 22 "FT2_BUILD_LIBRARY", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 55 } |
| 55 } else { | 56 } else { |
| 56 config("system_freetype2") { | 57 config("system_freetype2") { |
| 57 include_dirs = [ "/usr/include/freetype2" ] | 58 include_dirs = [ "/usr/include/freetype2" ] |
| 58 libs = [ "freetype" ] | 59 libs = [ "freetype" ] |
| 59 } | 60 } |
| 60 group("freetype2") { | 61 group("freetype2") { |
| 61 public_configs = [ ":system_freetype2" ] | 62 public_configs = [ ":system_freetype2" ] |
| 62 } | 63 } |
| 63 } | 64 } |
| OLD | NEW |