| 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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1385 "xfa/fxbarcode/qrcode/BC_QRDetectorResult.cpp", | 1383 "xfa/fxbarcode/qrcode/BC_QRDetectorResult.cpp", |
| 1386 "xfa/fxbarcode/qrcode/BC_QRDetectorResult.h", | 1384 "xfa/fxbarcode/qrcode/BC_QRDetectorResult.h", |
| 1387 "xfa/fxbarcode/qrcode/BC_QRFinderPattern.cpp", | 1385 "xfa/fxbarcode/qrcode/BC_QRFinderPattern.cpp", |
| 1388 "xfa/fxbarcode/qrcode/BC_QRFinderPattern.h", | 1386 "xfa/fxbarcode/qrcode/BC_QRFinderPattern.h", |
| 1389 "xfa/fxbarcode/qrcode/BC_QRFinderPatternFinder.cpp", | 1387 "xfa/fxbarcode/qrcode/BC_QRFinderPatternFinder.cpp", |
| 1390 "xfa/fxbarcode/qrcode/BC_QRFinderPatternFinder.h", | 1388 "xfa/fxbarcode/qrcode/BC_QRFinderPatternFinder.h", |
| 1391 "xfa/fxbarcode/qrcode/BC_QRGridSampler.cpp", | 1389 "xfa/fxbarcode/qrcode/BC_QRGridSampler.cpp", |
| 1392 "xfa/fxbarcode/qrcode/BC_QRGridSampler.h", | 1390 "xfa/fxbarcode/qrcode/BC_QRGridSampler.h", |
| 1393 "xfa/fxbarcode/utils.h", | 1391 "xfa/fxbarcode/utils.h", |
| 1394 "xfa/fxfa/app/xfa_checksum.cpp", | 1392 "xfa/fxfa/app/xfa_checksum.cpp", |
| 1395 "xfa/fxfa/app/xfa_checksum.h", | |
| 1396 "xfa/fxfa/app/xfa_ffapp.cpp", | 1393 "xfa/fxfa/app/xfa_ffapp.cpp", |
| 1397 "xfa/fxfa/app/xfa_ffapp.h", | |
| 1398 "xfa/fxfa/app/xfa_ffbarcode.cpp", | 1394 "xfa/fxfa/app/xfa_ffbarcode.cpp", |
| 1399 "xfa/fxfa/app/xfa_ffbarcode.h", | 1395 "xfa/fxfa/app/xfa_ffbarcode.h", |
| 1400 "xfa/fxfa/app/xfa_ffcheckbutton.cpp", | 1396 "xfa/fxfa/app/xfa_ffcheckbutton.cpp", |
| 1401 "xfa/fxfa/app/xfa_ffcheckbutton.h", | 1397 "xfa/fxfa/app/xfa_ffcheckbutton.h", |
| 1402 "xfa/fxfa/app/xfa_ffchoicelist.cpp", | 1398 "xfa/fxfa/app/xfa_ffchoicelist.cpp", |
| 1403 "xfa/fxfa/app/xfa_ffchoicelist.h", | 1399 "xfa/fxfa/app/xfa_ffchoicelist.h", |
| 1404 "xfa/fxfa/app/xfa_ffdoc.cpp", | 1400 "xfa/fxfa/app/xfa_ffdoc.cpp", |
| 1405 "xfa/fxfa/app/xfa_ffdoc.h", | |
| 1406 "xfa/fxfa/app/xfa_ffdochandler.cpp", | 1401 "xfa/fxfa/app/xfa_ffdochandler.cpp", |
| 1407 "xfa/fxfa/app/xfa_ffdochandler.h", | |
| 1408 "xfa/fxfa/app/xfa_ffdocview.cpp", | 1402 "xfa/fxfa/app/xfa_ffdocview.cpp", |
| 1409 "xfa/fxfa/app/xfa_ffdocview.h", | |
| 1410 "xfa/fxfa/app/xfa_ffdraw.cpp", | 1403 "xfa/fxfa/app/xfa_ffdraw.cpp", |
| 1411 "xfa/fxfa/app/xfa_ffdraw.h", | 1404 "xfa/fxfa/app/xfa_ffdraw.h", |
| 1412 "xfa/fxfa/app/xfa_ffexclgroup.cpp", | 1405 "xfa/fxfa/app/xfa_ffexclgroup.cpp", |
| 1413 "xfa/fxfa/app/xfa_ffexclgroup.h", | 1406 "xfa/fxfa/app/xfa_ffexclgroup.h", |
| 1414 "xfa/fxfa/app/xfa_fffield.cpp", | 1407 "xfa/fxfa/app/xfa_fffield.cpp", |
| 1415 "xfa/fxfa/app/xfa_fffield.h", | 1408 "xfa/fxfa/app/xfa_fffield.h", |
| 1416 "xfa/fxfa/app/xfa_ffimage.cpp", | 1409 "xfa/fxfa/app/xfa_ffimage.cpp", |
| 1417 "xfa/fxfa/app/xfa_ffimage.h", | 1410 "xfa/fxfa/app/xfa_ffimage.h", |
| 1418 "xfa/fxfa/app/xfa_ffimageedit.cpp", | 1411 "xfa/fxfa/app/xfa_ffimageedit.cpp", |
| 1419 "xfa/fxfa/app/xfa_ffimageedit.h", | 1412 "xfa/fxfa/app/xfa_ffimageedit.h", |
| 1420 "xfa/fxfa/app/xfa_ffnotify.cpp", | 1413 "xfa/fxfa/app/xfa_ffnotify.cpp", |
| 1421 "xfa/fxfa/app/xfa_ffnotify.h", | 1414 "xfa/fxfa/app/xfa_ffnotify.h", |
| 1422 "xfa/fxfa/app/xfa_ffpageview.cpp", | 1415 "xfa/fxfa/app/xfa_ffpageview.cpp", |
| 1423 "xfa/fxfa/app/xfa_ffpageview.h", | |
| 1424 "xfa/fxfa/app/xfa_ffpath.cpp", | 1416 "xfa/fxfa/app/xfa_ffpath.cpp", |
| 1425 "xfa/fxfa/app/xfa_ffpath.h", | 1417 "xfa/fxfa/app/xfa_ffpath.h", |
| 1426 "xfa/fxfa/app/xfa_ffpushbutton.cpp", | 1418 "xfa/fxfa/app/xfa_ffpushbutton.cpp", |
| 1427 "xfa/fxfa/app/xfa_ffpushbutton.h", | 1419 "xfa/fxfa/app/xfa_ffpushbutton.h", |
| 1428 "xfa/fxfa/app/xfa_ffsignature.cpp", | 1420 "xfa/fxfa/app/xfa_ffsignature.cpp", |
| 1429 "xfa/fxfa/app/xfa_ffsignature.h", | 1421 "xfa/fxfa/app/xfa_ffsignature.h", |
| 1430 "xfa/fxfa/app/xfa_ffsubform.cpp", | 1422 "xfa/fxfa/app/xfa_ffsubform.cpp", |
| 1431 "xfa/fxfa/app/xfa_ffsubform.h", | 1423 "xfa/fxfa/app/xfa_ffsubform.h", |
| 1432 "xfa/fxfa/app/xfa_fftext.cpp", | 1424 "xfa/fxfa/app/xfa_fftext.cpp", |
| 1433 "xfa/fxfa/app/xfa_fftext.h", | 1425 "xfa/fxfa/app/xfa_fftext.h", |
| 1434 "xfa/fxfa/app/xfa_fftextedit.cpp", | 1426 "xfa/fxfa/app/xfa_fftextedit.cpp", |
| 1435 "xfa/fxfa/app/xfa_fftextedit.h", | 1427 "xfa/fxfa/app/xfa_fftextedit.h", |
| 1436 "xfa/fxfa/app/xfa_ffwidget.cpp", | 1428 "xfa/fxfa/app/xfa_ffwidget.cpp", |
| 1437 "xfa/fxfa/app/xfa_ffwidget.h", | 1429 "xfa/fxfa/app/xfa_ffwidget.h", |
| 1438 "xfa/fxfa/app/xfa_ffwidgetacc.cpp", | 1430 "xfa/fxfa/app/xfa_ffwidgetacc.cpp", |
| 1439 "xfa/fxfa/app/xfa_ffwidgetacc.h", | 1431 "xfa/fxfa/app/xfa_ffwidgetacc.h", |
| 1440 "xfa/fxfa/app/xfa_ffwidgethandler.cpp", | 1432 "xfa/fxfa/app/xfa_ffwidgethandler.cpp", |
| 1441 "xfa/fxfa/app/xfa_ffwidgethandler.h", | |
| 1442 "xfa/fxfa/app/xfa_fontmgr.cpp", | 1433 "xfa/fxfa/app/xfa_fontmgr.cpp", |
| 1443 "xfa/fxfa/app/xfa_fontmgr.h", | |
| 1444 "xfa/fxfa/app/xfa_fwladapter.cpp", | 1434 "xfa/fxfa/app/xfa_fwladapter.cpp", |
| 1445 "xfa/fxfa/app/xfa_fwladapter.h", | 1435 "xfa/fxfa/app/xfa_fwladapter.h", |
| 1446 "xfa/fxfa/app/xfa_fwltheme.cpp", | 1436 "xfa/fxfa/app/xfa_fwltheme.cpp", |
| 1447 "xfa/fxfa/app/xfa_fwltheme.h", | 1437 "xfa/fxfa/app/xfa_fwltheme.h", |
| 1448 "xfa/fxfa/app/xfa_rendercontext.cpp", | 1438 "xfa/fxfa/app/xfa_rendercontext.cpp", |
| 1449 "xfa/fxfa/app/xfa_rendercontext.h", | |
| 1450 "xfa/fxfa/app/xfa_textlayout.cpp", | 1439 "xfa/fxfa/app/xfa_textlayout.cpp", |
| 1451 "xfa/fxfa/app/xfa_textlayout.h", | 1440 "xfa/fxfa/app/xfa_textlayout.h", |
| 1452 "xfa/fxfa/fm2js/xfa_error.cpp", | 1441 "xfa/fxfa/fm2js/xfa_error.cpp", |
| 1453 "xfa/fxfa/fm2js/xfa_error.h", | 1442 "xfa/fxfa/fm2js/xfa_error.h", |
| 1454 "xfa/fxfa/fm2js/xfa_expression.cpp", | 1443 "xfa/fxfa/fm2js/xfa_expression.cpp", |
| 1455 "xfa/fxfa/fm2js/xfa_expression.h", | 1444 "xfa/fxfa/fm2js/xfa_expression.h", |
| 1456 "xfa/fxfa/fm2js/xfa_fm2jsapi.cpp", | 1445 "xfa/fxfa/fm2js/xfa_fm2jsapi.cpp", |
| 1457 "xfa/fxfa/fm2js/xfa_fm2jsapi.h", | 1446 "xfa/fxfa/fm2js/xfa_fm2jsapi.h", |
| 1458 "xfa/fxfa/fm2js/xfa_fm2jscontext.cpp", | 1447 "xfa/fxfa/fm2js/xfa_fm2jscontext.cpp", |
| 1459 "xfa/fxfa/fm2js/xfa_fm2jscontext.h", | 1448 "xfa/fxfa/fm2js/xfa_fm2jscontext.h", |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 "xfa/fxgraphics/cfx_pattern.cpp", | 1521 "xfa/fxgraphics/cfx_pattern.cpp", |
| 1533 "xfa/fxgraphics/cfx_pattern.h", | 1522 "xfa/fxgraphics/cfx_pattern.h", |
| 1534 "xfa/fxgraphics/cfx_shading.cpp", | 1523 "xfa/fxgraphics/cfx_shading.cpp", |
| 1535 "xfa/fxgraphics/cfx_shading.h", | 1524 "xfa/fxgraphics/cfx_shading.h", |
| 1536 "xfa/fxgraphics/include/cfx_graphics.h", | 1525 "xfa/fxgraphics/include/cfx_graphics.h", |
| 1537 "xfa/fxjse/include/fxjse.h", | 1526 "xfa/fxjse/include/fxjse.h", |
| 1538 "xfa/include/fxfa/fxfa.h", | 1527 "xfa/include/fxfa/fxfa.h", |
| 1539 "xfa/include/fxfa/fxfa_basic.h", | 1528 "xfa/include/fxfa/fxfa_basic.h", |
| 1540 "xfa/include/fxfa/fxfa_objectacc.h", | 1529 "xfa/include/fxfa/fxfa_objectacc.h", |
| 1541 "xfa/include/fxfa/fxfa_widget.h", | 1530 "xfa/include/fxfa/fxfa_widget.h", |
| 1531 "xfa/include/fxfa/xfa_checksum.h", |
| 1532 "xfa/include/fxfa/xfa_ffapp.h", |
| 1533 "xfa/include/fxfa/xfa_ffdoc.h", |
| 1534 "xfa/include/fxfa/xfa_ffdochandler.h", |
| 1535 "xfa/include/fxfa/xfa_ffdocview.h", |
| 1536 "xfa/include/fxfa/xfa_ffpageview.h", |
| 1537 "xfa/include/fxfa/xfa_ffwidgethandler.h", |
| 1538 "xfa/include/fxfa/xfa_fontmgr.h", |
| 1539 "xfa/include/fxfa/xfa_rendercontext.h", |
| 1542 ] | 1540 ] |
| 1543 include_dirs = [ "." ] | 1541 include_dirs = [ "." ] |
| 1544 if (pdf_enable_v8) { | 1542 if (pdf_enable_v8) { |
| 1545 sources += [ | 1543 sources += [ |
| 1546 "xfa/fxjse/cfxjse_arguments.h", | 1544 "xfa/fxjse/cfxjse_arguments.h", |
| 1547 "xfa/fxjse/class.cpp", | 1545 "xfa/fxjse/class.cpp", |
| 1548 "xfa/fxjse/class.h", | 1546 "xfa/fxjse/class.h", |
| 1549 "xfa/fxjse/context.cpp", | 1547 "xfa/fxjse/context.cpp", |
| 1550 "xfa/fxjse/context.h", | 1548 "xfa/fxjse/context.h", |
| 1551 "xfa/fxjse/dynprop.cpp", | 1549 "xfa/fxjse/dynprop.cpp", |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 "//v8:v8_libplatform", | 1663 "//v8:v8_libplatform", |
| 1666 ] | 1664 ] |
| 1667 include_dirs += [ | 1665 include_dirs += [ |
| 1668 "//v8", | 1666 "//v8", |
| 1669 "//v8/include", | 1667 "//v8/include", |
| 1670 ] | 1668 ] |
| 1671 configs += [ "//v8:external_startup_data" ] | 1669 configs += [ "//v8:external_startup_data" ] |
| 1672 } | 1670 } |
| 1673 configs += [ ":pdfium_config" ] | 1671 configs += [ ":pdfium_config" ] |
| 1674 } | 1672 } |
| OLD | NEW |