OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 pdf_use_skia = false | 7 pdf_use_skia = false |
8 | 8 |
9 declare_args() { | 9 declare_args() { |
10 # On Android there's no system FreeType. On Windows and Mac, only a few | 10 # On Android there's no system FreeType. On Windows and Mac, only a few |
11 # methods are used from it. | 11 # methods are used from it. |
12 bundle_freetype = !is_linux | 12 pdfium_bundle_freetype = !is_linux |
13 } | 13 } |
14 | 14 |
15 config("pdfium_config") { | 15 config("pdfium_config") { |
16 cflags = [] | 16 cflags = [] |
17 include_dirs = [ "third_party/freetype/include" ] | 17 include_dirs = [ "third_party/freetype/include" ] |
18 defines = [ | 18 defines = [ |
19 "OPJ_STATIC", | 19 "OPJ_STATIC", |
20 "PNG_PREFIX", | 20 "PNG_PREFIX", |
21 "PNGPREFIX_H", | 21 "PNGPREFIX_H", |
22 "PNG_USE_READ_MACROS", | 22 "PNG_USE_READ_MACROS", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 ] | 118 ] |
119 | 119 |
120 if (is_win) { | 120 if (is_win) { |
121 libs += [ "advapi32.lib", "gdi32.lib", "user32.lib" ] | 121 libs += [ "advapi32.lib", "gdi32.lib", "user32.lib" ] |
122 } | 122 } |
123 | 123 |
124 if (is_mac) { | 124 if (is_mac) { |
125 libs += [ "AppKit.framework", "CoreFoundation.framework" ] | 125 libs += [ "AppKit.framework", "CoreFoundation.framework" ] |
126 } | 126 } |
127 | 127 |
128 if (bundle_freetype) { | 128 if (pdfium_bundle_freetype) { |
129 deps += [ "third_party:freetype" ] | 129 deps += [ "third_party:fx_freetype" ] |
130 } else { | 130 } else { |
131 libs += [ "freetype" ] | 131 libs += [ "freetype" ] |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 # Targets below this are only visible within this file. | 135 # Targets below this are only visible within this file. |
136 visibility = [ ":*" ] | 136 visibility = [ ":*" ] |
137 | 137 |
138 static_library("fdrm") { | 138 static_library("fdrm") { |
139 sources = [ | 139 sources = [ |
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 ":pdfium" | 1487 ":pdfium" |
1488 ] | 1488 ] |
1489 include_dirs = [ | 1489 include_dirs = [ |
1490 ".", | 1490 ".", |
1491 "//v8", | 1491 "//v8", |
1492 "//v8/include", | 1492 "//v8/include", |
1493 ] | 1493 ] |
1494 configs -= [ "//build/config/compiler:chromium_code" ] | 1494 configs -= [ "//build/config/compiler:chromium_code" ] |
1495 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] | 1495 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] |
1496 } | 1496 } |
OLD | NEW |