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

Side by Side Diff: BUILD.gn

Issue 1785943002: Fix GCC build (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 | no next file » | 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 "/wd4245", 58 "/wd4245",
59 "/wd4310", 59 "/wd4310",
60 "/wd4389", 60 "/wd4389",
61 "/wd4701", 61 "/wd4701",
62 "/wd4702", 62 "/wd4702",
63 "/wd4706", 63 "/wd4706",
64 "/wd4800", 64 "/wd4800",
65 ] 65 ]
66 } 66 }
67 67
68 if (is_clang) { 68 if (is_posix) {
Dirk Pranke 2016/03/11 21:21:30 This needs to be is_posix || is_clang, since there
hashimoto 2016/03/14 06:11:31 I know nothing about win clang, but isn't it suppo
hashimoto 2016/03/15 05:43:00 Thanks for the clarification, done.
69 # TODO(thestig): Fix all instances, remove this, pdfium:29 69 # TODO(thestig): Fix all instances, remove this, pdfium:29
70 cflags += [ "-Wno-sign-compare" ] 70 cflags += [ "-Wno-sign-compare" ]
71 } 71 }
72 } 72 }
73 73
74 static_library("pdfium") { 74 static_library("pdfium") {
75 sources = [ 75 sources = [
76 "fpdfsdk/include/fsdk_actionhandler.h", 76 "fpdfsdk/include/fsdk_actionhandler.h",
77 "fpdfsdk/include/fsdk_annothandler.h", 77 "fpdfsdk/include/fsdk_annothandler.h",
78 "fpdfsdk/include/fsdk_baseannot.h", 78 "fpdfsdk/include/fsdk_baseannot.h",
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp", 343 "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp",
344 "core/src/fpdfapi/fpdf_parser/parser_int.h", 344 "core/src/fpdfapi/fpdf_parser/parser_int.h",
345 "core/src/fpdfapi/fpdf_render/fpdf_render.cpp", 345 "core/src/fpdfapi/fpdf_render/fpdf_render.cpp",
346 "core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp", 346 "core/src/fpdfapi/fpdf_render/fpdf_render_cache.cpp",
347 "core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp", 347 "core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp",
348 "core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp", 348 "core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp",
349 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp", 349 "core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp",
350 "core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp", 350 "core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp",
351 "core/src/fpdfapi/fpdf_render/render_int.h", 351 "core/src/fpdfapi/fpdf_render/render_int.h",
352 ] 352 ]
353 configs += [ ":pdfium_config" ] 353 configs -= [ "//build/config/compiler:chromium_code" ]
Tom Sepez 2016/03/14 16:46:54 Can we just fix the underlying code itself?
354 configs += [
355 ":pdfium_config",
356 "//build/config/compiler:no_chromium_code",
357 ]
354 } 358 }
355 359
356 static_library("fpdftext") { 360 static_library("fpdftext") {
357 sources = [ 361 sources = [
358 "core/include/fpdftext/fpdf_text.h", 362 "core/include/fpdftext/fpdf_text.h",
359 "core/src/fpdftext/fpdf_text_int.cpp", 363 "core/src/fpdftext/fpdf_text_int.cpp",
360 "core/src/fpdftext/text_int.h", 364 "core/src/fpdftext/text_int.h",
361 "core/src/fpdftext/unicodenormalization.cpp", 365 "core/src/fpdftext/unicodenormalization.cpp",
362 "core/src/fpdftext/unicodenormalizationdata.cpp", 366 "core/src/fpdftext/unicodenormalizationdata.cpp",
363 "core/src/fpdftext/unicodenormalizationdata.h", 367 "core/src/fpdftext/unicodenormalizationdata.h",
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 "//v8:v8_libplatform", 1501 "//v8:v8_libplatform",
1498 ] 1502 ]
1499 include_dirs += [ 1503 include_dirs += [
1500 "//v8", 1504 "//v8",
1501 "//v8/include", 1505 "//v8/include",
1502 ] 1506 ]
1503 configs += [ "//v8:external_startup_data" ] 1507 configs += [ "//v8:external_startup_data" ]
1504 } 1508 }
1505 configs += [ ":pdfium_config" ] 1509 configs += [ ":pdfium_config" ]
1506 } 1510 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698