K. Moon | 832a694 | 2022-10-31 20:11:31 +0000 | [diff] [blame] | 1 | # Copyright 2018 The PDFium Authors |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 5 | import("../pdfium.gni") |
Lei Zhang | f03f781 | 2018-10-15 23:48:29 +0000 | [diff] [blame] | 6 | import("../testing/test.gni") |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 7 | |
| 8 | assert(pdf_enable_xfa) |
| 9 | |
Daniel Hosseinian | 0fab9e6 | 2019-11-01 19:31:49 +0000 | [diff] [blame] | 10 | source_set("fxbarcode") { |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 11 | sources = [ |
| 12 | "BC_Library.cpp", |
| 13 | "BC_Library.h", |
| 14 | "BC_TwoDimWriter.cpp", |
| 15 | "BC_TwoDimWriter.h", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 16 | "BC_Writer.cpp", |
| 17 | "BC_Writer.h", |
| 18 | "cbc_codabar.cpp", |
| 19 | "cbc_codabar.h", |
| 20 | "cbc_code128.cpp", |
| 21 | "cbc_code128.h", |
| 22 | "cbc_code39.cpp", |
| 23 | "cbc_code39.h", |
| 24 | "cbc_codebase.cpp", |
| 25 | "cbc_codebase.h", |
| 26 | "cbc_datamatrix.cpp", |
| 27 | "cbc_datamatrix.h", |
| 28 | "cbc_ean13.cpp", |
| 29 | "cbc_ean13.h", |
| 30 | "cbc_ean8.cpp", |
| 31 | "cbc_ean8.h", |
Lei Zhang | 93ea6d4 | 2018-12-03 20:16:08 +0000 | [diff] [blame] | 32 | "cbc_eancode.cpp", |
| 33 | "cbc_eancode.h", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 34 | "cbc_onecode.cpp", |
| 35 | "cbc_onecode.h", |
| 36 | "cbc_pdf417i.cpp", |
| 37 | "cbc_pdf417i.h", |
| 38 | "cbc_qrcode.cpp", |
| 39 | "cbc_qrcode.h", |
| 40 | "cbc_upca.cpp", |
| 41 | "cbc_upca.h", |
Tom Sepez | ae5d92a | 2020-01-07 23:41:49 +0000 | [diff] [blame] | 42 | "cfx_barcode.cpp", |
| 43 | "cfx_barcode.h", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 44 | "common/BC_CommonBitMatrix.cpp", |
| 45 | "common/BC_CommonBitMatrix.h", |
| 46 | "common/BC_CommonByteMatrix.cpp", |
| 47 | "common/BC_CommonByteMatrix.h", |
| 48 | "common/reedsolomon/BC_ReedSolomon.cpp", |
| 49 | "common/reedsolomon/BC_ReedSolomon.h", |
| 50 | "common/reedsolomon/BC_ReedSolomonGF256.cpp", |
| 51 | "common/reedsolomon/BC_ReedSolomonGF256.h", |
| 52 | "common/reedsolomon/BC_ReedSolomonGF256Poly.cpp", |
| 53 | "common/reedsolomon/BC_ReedSolomonGF256Poly.h", |
| 54 | "datamatrix/BC_ASCIIEncoder.cpp", |
| 55 | "datamatrix/BC_ASCIIEncoder.h", |
| 56 | "datamatrix/BC_Base256Encoder.cpp", |
| 57 | "datamatrix/BC_Base256Encoder.h", |
| 58 | "datamatrix/BC_C40Encoder.cpp", |
| 59 | "datamatrix/BC_C40Encoder.h", |
| 60 | "datamatrix/BC_DataMatrixSymbolInfo144.cpp", |
| 61 | "datamatrix/BC_DataMatrixSymbolInfo144.h", |
| 62 | "datamatrix/BC_DataMatrixWriter.cpp", |
| 63 | "datamatrix/BC_DataMatrixWriter.h", |
| 64 | "datamatrix/BC_DefaultPlacement.cpp", |
| 65 | "datamatrix/BC_DefaultPlacement.h", |
| 66 | "datamatrix/BC_EdifactEncoder.cpp", |
| 67 | "datamatrix/BC_EdifactEncoder.h", |
| 68 | "datamatrix/BC_Encoder.cpp", |
| 69 | "datamatrix/BC_Encoder.h", |
| 70 | "datamatrix/BC_EncoderContext.cpp", |
| 71 | "datamatrix/BC_EncoderContext.h", |
| 72 | "datamatrix/BC_ErrorCorrection.cpp", |
| 73 | "datamatrix/BC_ErrorCorrection.h", |
| 74 | "datamatrix/BC_HighLevelEncoder.cpp", |
| 75 | "datamatrix/BC_HighLevelEncoder.h", |
| 76 | "datamatrix/BC_SymbolInfo.cpp", |
| 77 | "datamatrix/BC_SymbolInfo.h", |
| 78 | "datamatrix/BC_TextEncoder.cpp", |
| 79 | "datamatrix/BC_TextEncoder.h", |
| 80 | "datamatrix/BC_X12Encoder.cpp", |
| 81 | "datamatrix/BC_X12Encoder.h", |
| 82 | "oned/BC_OneDimWriter.cpp", |
| 83 | "oned/BC_OneDimWriter.h", |
| 84 | "oned/BC_OnedCodaBarWriter.cpp", |
| 85 | "oned/BC_OnedCodaBarWriter.h", |
| 86 | "oned/BC_OnedCode128Writer.cpp", |
| 87 | "oned/BC_OnedCode128Writer.h", |
| 88 | "oned/BC_OnedCode39Writer.cpp", |
| 89 | "oned/BC_OnedCode39Writer.h", |
| 90 | "oned/BC_OnedEAN13Writer.cpp", |
| 91 | "oned/BC_OnedEAN13Writer.h", |
| 92 | "oned/BC_OnedEAN8Writer.cpp", |
| 93 | "oned/BC_OnedEAN8Writer.h", |
| 94 | "oned/BC_OnedEANChecksum.cpp", |
| 95 | "oned/BC_OnedEANChecksum.h", |
Lei Zhang | 93ea6d4 | 2018-12-03 20:16:08 +0000 | [diff] [blame] | 96 | "oned/BC_OnedEANWriter.cpp", |
| 97 | "oned/BC_OnedEANWriter.h", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 98 | "oned/BC_OnedUPCAWriter.cpp", |
| 99 | "oned/BC_OnedUPCAWriter.h", |
| 100 | "pdf417/BC_PDF417.cpp", |
| 101 | "pdf417/BC_PDF417.h", |
| 102 | "pdf417/BC_PDF417BarcodeMatrix.cpp", |
| 103 | "pdf417/BC_PDF417BarcodeMatrix.h", |
| 104 | "pdf417/BC_PDF417BarcodeRow.cpp", |
| 105 | "pdf417/BC_PDF417BarcodeRow.h", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 106 | "pdf417/BC_PDF417ErrorCorrection.cpp", |
| 107 | "pdf417/BC_PDF417ErrorCorrection.h", |
| 108 | "pdf417/BC_PDF417HighLevelEncoder.cpp", |
| 109 | "pdf417/BC_PDF417HighLevelEncoder.h", |
| 110 | "pdf417/BC_PDF417Writer.cpp", |
| 111 | "pdf417/BC_PDF417Writer.h", |
| 112 | "qrcode/BC_QRCodeWriter.cpp", |
| 113 | "qrcode/BC_QRCodeWriter.h", |
| 114 | "qrcode/BC_QRCoder.cpp", |
| 115 | "qrcode/BC_QRCoder.h", |
| 116 | "qrcode/BC_QRCoderBitVector.cpp", |
| 117 | "qrcode/BC_QRCoderBitVector.h", |
Tom Sepez | 9cdd183 | 2024-05-28 21:47:23 +0000 | [diff] [blame] | 118 | "qrcode/BC_QRCoderECBlockData.cpp", |
| 119 | "qrcode/BC_QRCoderECBlockData.h", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 120 | "qrcode/BC_QRCoderEncoder.cpp", |
| 121 | "qrcode/BC_QRCoderEncoder.h", |
| 122 | "qrcode/BC_QRCoderErrorCorrectionLevel.cpp", |
| 123 | "qrcode/BC_QRCoderErrorCorrectionLevel.h", |
| 124 | "qrcode/BC_QRCoderMaskUtil.cpp", |
| 125 | "qrcode/BC_QRCoderMaskUtil.h", |
| 126 | "qrcode/BC_QRCoderMatrixUtil.cpp", |
| 127 | "qrcode/BC_QRCoderMatrixUtil.h", |
| 128 | "qrcode/BC_QRCoderMode.cpp", |
| 129 | "qrcode/BC_QRCoderMode.h", |
| 130 | "qrcode/BC_QRCoderVersion.cpp", |
| 131 | "qrcode/BC_QRCoderVersion.h", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 132 | ] |
| 133 | deps = [ |
Lei Zhang | 995374a | 2018-10-12 19:52:04 +0000 | [diff] [blame] | 134 | "../core/fxcrt", |
Lei Zhang | 8460088 | 2018-10-12 18:58:21 +0000 | [diff] [blame] | 135 | "../core/fxge", |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 136 | "../third_party:bigint", |
| 137 | ] |
Lei Zhang | 7a5f8ee | 2021-04-24 00:19:10 +0000 | [diff] [blame] | 138 | configs += [ "../:pdfium_strict_config" ] |
Lei Zhang | ac0a167 | 2018-10-12 17:37:06 +0000 | [diff] [blame] | 139 | visibility = [ "../*" ] |
| 140 | } |
Lei Zhang | f03f781 | 2018-10-15 23:48:29 +0000 | [diff] [blame] | 141 | |
| 142 | pdfium_unittest_source_set("unittests") { |
| 143 | sources = [ |
Lei Zhang | 600e0c6 | 2019-06-06 17:10:48 +0000 | [diff] [blame] | 144 | "cbc_pdf417i_unittest.cpp", |
Tom Sepez | ae5d92a | 2020-01-07 23:41:49 +0000 | [diff] [blame] | 145 | "cfx_barcode_unittest.cpp", |
Lei Zhang | 107180c | 2018-12-04 23:54:51 +0000 | [diff] [blame] | 146 | "datamatrix/BC_DataMatrixWriter_unittest.cpp", |
Lei Zhang | f03f781 | 2018-10-15 23:48:29 +0000 | [diff] [blame] | 147 | "oned/BC_OnedCodaBarWriter_unittest.cpp", |
| 148 | "oned/BC_OnedCode128Writer_unittest.cpp", |
| 149 | "oned/BC_OnedCode39Writer_unittest.cpp", |
| 150 | "oned/BC_OnedEAN13Writer_unittest.cpp", |
| 151 | "oned/BC_OnedEAN8Writer_unittest.cpp", |
| 152 | "oned/BC_OnedUPCAWriter_unittest.cpp", |
| 153 | "pdf417/BC_PDF417HighLevelEncoder_unittest.cpp", |
Lei Zhang | d827516 | 2018-12-05 04:37:48 +0000 | [diff] [blame] | 154 | "pdf417/BC_PDF417Writer_unittest.cpp", |
Lei Zhang | 834863a | 2018-12-04 22:53:48 +0000 | [diff] [blame] | 155 | "qrcode/BC_QRCodeWriter_unittest.cpp", |
Lei Zhang | f03f781 | 2018-10-15 23:48:29 +0000 | [diff] [blame] | 156 | ] |
| 157 | deps = [ |
| 158 | ":fxbarcode", |
Tom Sepez | ae5d92a | 2020-01-07 23:41:49 +0000 | [diff] [blame] | 159 | "../core/fxge", |
Lei Zhang | f03f781 | 2018-10-15 23:48:29 +0000 | [diff] [blame] | 160 | ] |
| 161 | pdfium_root_dir = "../" |
| 162 | } |