| 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 += [ "/wd4267" ] | 45 cflags += [ |
| 46 "/wd4267", |
| 47 "/wd4701", |
| 48 ] |
| 46 } | 49 } |
| 47 | 50 |
| 48 if (is_clang || is_posix) { | 51 if (is_clang || is_posix) { |
| 49 # TODO(thestig): Fix all instances, remove this, pdfium:29 | 52 # TODO(thestig): Fix all instances, remove this, pdfium:29 |
| 50 cflags += [ "-Wno-sign-compare" ] | 53 cflags += [ "-Wno-sign-compare" ] |
| 51 } | 54 } |
| 52 | 55 |
| 53 if (is_posix && !is_clang) { # When GCC. | 56 if (is_posix && !is_clang) { # When GCC. |
| 54 cflags += [ "-Wno-error=strict-overflow" ] | 57 cflags += [ "-Wno-error=strict-overflow" ] |
| 55 } | 58 } |
| (...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1674 "//v8:v8_libplatform", | 1677 "//v8:v8_libplatform", |
| 1675 ] | 1678 ] |
| 1676 include_dirs += [ | 1679 include_dirs += [ |
| 1677 "//v8", | 1680 "//v8", |
| 1678 "//v8/include", | 1681 "//v8/include", |
| 1679 ] | 1682 ] |
| 1680 configs += [ "//v8:external_startup_data" ] | 1683 configs += [ "//v8:external_startup_data" ] |
| 1681 } | 1684 } |
| 1682 configs += [ ":pdfium_config" ] | 1685 configs += [ ":pdfium_config" ] |
| 1683 } | 1686 } |
| OLD | NEW |