summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorsebmarchand@chromium.org <sebmarchand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 18:19:49 +0000
committersebmarchand@chromium.org <sebmarchand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 18:19:49 +0000
commit929dd4db7d531f38eb525c19d477314f5861cfdc (patch)
tree576f73bd8d9faa289dc73d711550fe1360f2df35 /pdf
parent071ca888e868ad8ad28946feb1669d12cf264d64 (diff)
downloadchromium_src-929dd4db7d531f38eb525c19d477314f5861cfdc.zip
chromium_src-929dd4db7d531f38eb525c19d477314f5861cfdc.tar.gz
chromium_src-929dd4db7d531f38eb525c19d477314f5861cfdc.tar.bz2
Add a target to produce a SyzyASan instrumented version of pdf.dll
This will be used on Clusterfuzz, and we might ship this on the Canary sometimes if the performances are reasonable. BUG= Review URL: https://codereview.chromium.org/321303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276746 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf.gyp36
1 files changed, 36 insertions, 0 deletions
diff --git a/pdf/pdf.gyp b/pdf/pdf.gyp
index 68d6657..74880ba 100644
--- a/pdf/pdf.gyp
+++ b/pdf/pdf.gyp
@@ -165,5 +165,41 @@
},
],
},], # OS=="linux" and chromeos==0
+ ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
+ 'variables': {
+ 'dest_dir': '<(PRODUCT_DIR)/syzygy',
+ },
+ 'targets': [
+ {
+ 'target_name': 'pdf_syzyasan',
+ 'type': 'none',
+ 'sources' : [],
+ 'dependencies': [
+ 'pdf',
+ ],
+ # Instrument PDFium with SyzyAsan.
+ 'actions': [
+ {
+ 'action_name': 'Instrument PDFium with SyzyAsan',
+ 'inputs': [
+ '<(PRODUCT_DIR)/pdf.dll',
+ ],
+ 'outputs': [
+ '<(dest_dir)/pdf.dll',
+ '<(dest_dir)/pdf.dll.pdb',
+ ],
+ 'action': [
+ 'python',
+ '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
+ '--mode', 'asan',
+ '--input_executable', '<(PRODUCT_DIR)/pdf.dll',
+ '--input_symbol', '<(PRODUCT_DIR)/pdf.dll.pdb',
+ '--destination_dir', '<(dest_dir)',
+ ],
+ },
+ ],
+ },
+ ],
+ }], # OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1
],
}