OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//build_overrides/v8.gni") | 5 import("//build_overrides/v8.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("pdfium.gni") | 7 import("pdfium.gni") |
8 | 8 |
9 config("pdfium_config") { | 9 config("pdfium_config") { |
10 cflags = [] | 10 cflags = [] |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 if (is_win) { | 44 if (is_win) { |
45 cflags += [ "/wd4267" ] | 45 cflags += [ "/wd4267" ] |
46 } | 46 } |
47 | 47 |
48 if (is_clang || is_posix) { | 48 if (is_clang || is_posix) { |
49 # TODO(thestig): Fix all instances, remove this, pdfium:29 | 49 # TODO(thestig): Fix all instances, remove this, pdfium:29 |
50 cflags += [ "-Wno-sign-compare" ] | 50 cflags += [ "-Wno-sign-compare" ] |
51 } | 51 } |
52 | 52 |
53 if (is_posix && !is_clang) { # When GCC. | 53 if (is_posix && !is_clang) { # When GCC. |
54 cflags += [ "-Wno-error=strict-overflow" ] | 54 cflags += [ "-Wno-strict-overflow" ] |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 static_library("pdfium") { | 58 static_library("pdfium") { |
59 sources = [ | 59 sources = [ |
60 "fpdfsdk/cfx_systemhandler.cpp", | 60 "fpdfsdk/cfx_systemhandler.cpp", |
61 "fpdfsdk/cfx_systemhandler.h", | 61 "fpdfsdk/cfx_systemhandler.h", |
62 "fpdfsdk/fpdf_dataavail.cpp", | 62 "fpdfsdk/fpdf_dataavail.cpp", |
63 "fpdfsdk/fpdf_ext.cpp", | 63 "fpdfsdk/fpdf_ext.cpp", |
64 "fpdfsdk/fpdf_flatten.cpp", | 64 "fpdfsdk/fpdf_flatten.cpp", |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 } | 1707 } |
1708 | 1708 |
1709 if (pdf_is_standalone) { | 1709 if (pdf_is_standalone) { |
1710 source_set("samples") { | 1710 source_set("samples") { |
1711 testonly = true | 1711 testonly = true |
1712 deps = [ | 1712 deps = [ |
1713 "//samples", | 1713 "//samples", |
1714 ] | 1714 ] |
1715 } | 1715 } |
1716 } | 1716 } |
OLD | NEW |