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 24 matching lines...) Expand all Loading... |
35 if (is_linux) { | 35 if (is_linux) { |
36 if (current_cpu == "x64") { | 36 if (current_cpu == "x64") { |
37 defines += [ "_FX_CPU_=_FX_X64_" ] | 37 defines += [ "_FX_CPU_=_FX_X64_" ] |
38 cflags += [ "-fPIC" ] | 38 cflags += [ "-fPIC" ] |
39 } else if (current_cpu == "x86") { | 39 } else if (current_cpu == "x86") { |
40 defines += [ "_FX_CPU_=_FX_X86_" ] | 40 defines += [ "_FX_CPU_=_FX_X86_" ] |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 if (is_win) { | 44 if (is_win) { |
45 cflags += [ | 45 cflags += [ "/wd4267" ] |
46 "/wd4267", | |
47 ] | |
48 } | 46 } |
49 | 47 |
50 if (is_clang || is_posix) { | 48 if (is_clang || is_posix) { |
51 # TODO(thestig): Fix all instances, remove this, pdfium:29 | 49 # TODO(thestig): Fix all instances, remove this, pdfium:29 |
52 cflags += [ "-Wno-sign-compare" ] | 50 cflags += [ "-Wno-sign-compare" ] |
53 } | 51 } |
54 | 52 |
55 if (is_posix && !is_clang) { # When GCC. | 53 if (is_posix && !is_clang) { # When GCC. |
56 cflags += [ "-Wno-error=strict-overflow" ] | 54 cflags += [ "-Wno-error=strict-overflow" ] |
57 } | 55 } |
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 "xfa/fwl/core/ifwl_adapterthreadmgr.h", | 1060 "xfa/fwl/core/ifwl_adapterthreadmgr.h", |
1063 "xfa/fwl/core/ifwl_adapterwidgetmgr.h", | 1061 "xfa/fwl/core/ifwl_adapterwidgetmgr.h", |
1064 "xfa/fwl/core/ifwl_app.h", | 1062 "xfa/fwl/core/ifwl_app.h", |
1065 "xfa/fwl/core/ifwl_content.h", | 1063 "xfa/fwl/core/ifwl_content.h", |
1066 "xfa/fwl/core/ifwl_custom.h", | 1064 "xfa/fwl/core/ifwl_custom.h", |
1067 "xfa/fwl/core/ifwl_custompanel.h", | 1065 "xfa/fwl/core/ifwl_custompanel.h", |
1068 "xfa/fwl/core/ifwl_dataprovider.h", | 1066 "xfa/fwl/core/ifwl_dataprovider.h", |
1069 "xfa/fwl/core/ifwl_form.h", | 1067 "xfa/fwl/core/ifwl_form.h", |
1070 "xfa/fwl/core/ifwl_notedriver.h", | 1068 "xfa/fwl/core/ifwl_notedriver.h", |
1071 "xfa/fwl/core/ifwl_noteloop.h", | 1069 "xfa/fwl/core/ifwl_noteloop.h", |
1072 "xfa/fwl/core/ifwl_notethread.h", | |
1073 "xfa/fwl/core/ifwl_panel.h", | 1070 "xfa/fwl/core/ifwl_panel.h", |
1074 "xfa/fwl/core/ifwl_proxy.h", | 1071 "xfa/fwl/core/ifwl_proxy.h", |
1075 "xfa/fwl/core/ifwl_target.h", | 1072 "xfa/fwl/core/ifwl_target.h", |
1076 "xfa/fwl/core/ifwl_themeprovider.h", | 1073 "xfa/fwl/core/ifwl_themeprovider.h", |
1077 "xfa/fwl/core/ifwl_thread.h", | 1074 "xfa/fwl/core/ifwl_thread.h", |
1078 "xfa/fwl/core/ifwl_timer.h", | 1075 "xfa/fwl/core/ifwl_timer.h", |
1079 "xfa/fwl/core/ifwl_tooltiptarget.h", | 1076 "xfa/fwl/core/ifwl_tooltiptarget.h", |
1080 "xfa/fwl/core/ifwl_widget.h", | 1077 "xfa/fwl/core/ifwl_widget.h", |
1081 "xfa/fwl/core/ifwl_widgetdelegate.h", | 1078 "xfa/fwl/core/ifwl_widgetdelegate.h", |
1082 "xfa/fwl/core/ifwl_widgetmgr.h", | 1079 "xfa/fwl/core/ifwl_widgetmgr.h", |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1725 "//v8:v8_libplatform", | 1722 "//v8:v8_libplatform", |
1726 ] | 1723 ] |
1727 include_dirs += [ | 1724 include_dirs += [ |
1728 "//v8", | 1725 "//v8", |
1729 "//v8/include", | 1726 "//v8/include", |
1730 ] | 1727 ] |
1731 configs += [ "//v8:external_startup_data" ] | 1728 configs += [ "//v8:external_startup_data" ] |
1732 } | 1729 } |
1733 configs += [ ":pdfium_config" ] | 1730 configs += [ ":pdfium_config" ] |
1734 } | 1731 } |
OLD | NEW |