Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Side by Side Diff: BUILD.gn

Issue 1849443003: Re-enable all the windows warnings except 4267 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Address comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 25 matching lines...) Expand all
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 += [
46 "/wd4005",
47 "/wd4018",
48 "/wd4146",
49 "/wd4333",
50 "/wd4345",
51 "/wd4267", 46 "/wd4267",
52
53 # TODO(ochang): Investigate if this can be fixed properly.
54 "/wd4201",
55
56 # TODO(thestig): Fix all instances, remove this, pdfium:29
57 "/wd4245",
58 "/wd4310",
59 "/wd4389",
60 "/wd4701",
61 "/wd4702",
62 "/wd4706",
63 "/wd4800",
64 ] 47 ]
65 } 48 }
66 49
67 if (is_clang || is_posix) { 50 if (is_clang || is_posix) {
68 # TODO(thestig): Fix all instances, remove this, pdfium:29 51 # TODO(thestig): Fix all instances, remove this, pdfium:29
69 cflags += [ "-Wno-sign-compare" ] 52 cflags += [ "-Wno-sign-compare" ]
70 } 53 }
71 54
72 if (is_posix && !is_clang) { # When GCC. 55 if (is_posix && !is_clang) { # When GCC.
73 cflags += [ "-Wno-error=strict-overflow" ] 56 cflags += [ "-Wno-error=strict-overflow" ]
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 "//v8:v8_libplatform", 1653 "//v8:v8_libplatform",
1671 ] 1654 ]
1672 include_dirs += [ 1655 include_dirs += [
1673 "//v8", 1656 "//v8",
1674 "//v8/include", 1657 "//v8/include",
1675 ] 1658 ]
1676 configs += [ "//v8:external_startup_data" ] 1659 configs += [ "//v8:external_startup_data" ]
1677 } 1660 }
1678 configs += [ ":pdfium_config" ] 1661 configs += [ ":pdfium_config" ]
1679 } 1662 }
OLDNEW
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698