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 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 if (is_win) { | 37 if (is_win) { |
38 cflags += [ | 38 cflags += [ |
39 "/wd4005", | 39 "/wd4005", |
40 "/wd4018", | 40 "/wd4018", |
41 "/wd4146", | 41 "/wd4146", |
42 "/wd4333", | 42 "/wd4333", |
43 "/wd4345", | 43 "/wd4345", |
44 ] | 44 ] |
45 } | 45 } |
46 | |
47 if (bundle_freetype) { | |
48 defines += [ "FT2_BUILD_LIBRARY" ] | |
49 } | |
50 } | 46 } |
51 | 47 |
52 static_library("pdfium") { | 48 static_library("pdfium") { |
53 sources = [ | 49 sources = [ |
54 "fpdfsdk/include/fpdfdoc.h", | 50 "fpdfsdk/include/fpdfdoc.h", |
55 "fpdfsdk/include/fpdfedit.h", | 51 "fpdfsdk/include/fpdfedit.h", |
56 "fpdfsdk/include/fpdfformfill.h", | 52 "fpdfsdk/include/fpdfformfill.h", |
57 "fpdfsdk/include/fpdftext.h", | 53 "fpdfsdk/include/fpdftext.h", |
58 "fpdfsdk/include/fpdfview.h", | 54 "fpdfsdk/include/fpdfview.h", |
59 "fpdfsdk/include/fpdf_dataavail.h", | 55 "fpdfsdk/include/fpdf_dataavail.h", |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 "testing/fx_string_testhelpers.h", | 831 "testing/fx_string_testhelpers.h", |
836 ] | 832 ] |
837 deps = [ | 833 deps = [ |
838 "//testing/gtest", | 834 "//testing/gtest", |
839 ":pdfium" | 835 ":pdfium" |
840 ] | 836 ] |
841 include_dirs = [ "." ] | 837 include_dirs = [ "." ] |
842 configs -= [ "//build/config/compiler:chromium_code" ] | 838 configs -= [ "//build/config/compiler:chromium_code" ] |
843 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] | 839 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] |
844 } | 840 } |
OLD | NEW |