| OLD | NEW |
| (Empty) |
| 1 # -*- python -*- | |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 # | |
| 6 | |
| 7 Import('env') | |
| 8 | |
| 9 env.Prepend(CPPDEFINES=['XP_UNIX']) | |
| 10 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + | |
| 11 'ppb_pdf') | |
| 12 | |
| 13 nexe = env.ProgramNameForNmf('ppapi_ppb_pdf') | |
| 14 env.Alias('ppapi_ppb_pdf${PROGSUFFIX}', | |
| 15 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) | |
| 16 | |
| 17 ppapi_ppb_pdf_nexe = env.ComponentProgram( | |
| 18 nexe, | |
| 19 ['ppapi_ppb_pdf.cc'], | |
| 20 EXTRA_LIBS=['${PPAPI_LIBS}', | |
| 21 'ppapi_test_lib', | |
| 22 'platform', # for CHECK | |
| 23 'pthread', | |
| 24 'gio', | |
| 25 ]) | |
| 26 | |
| 27 env.Publish(nexe, 'run', | |
| 28 ['ppapi_ppb_pdf.html', | |
| 29 'ppapi_ppb_pdf.js']) | |
| 30 | |
| 31 node = env.PPAPIBrowserTester('ppapi_ppb_pdf_browser_test.out', | |
| 32 url='ppapi_ppb_pdf.html', | |
| 33 nmf_names=['ppapi_ppb_pdf'], | |
| 34 files=env.ExtractPublishedFiles(nexe)) | |
| 35 | |
| 36 env.AddNodeToTestSuite(node, | |
| 37 ['chrome_browser_tests'], | |
| 38 'run_ppapi_ppb_pdf_browser_test', | |
| 39 # Pnacl x86-64 requires a shim. However the shim | |
| 40 # is generated via IDL, and pdf header is not | |
| 41 # generated via IDL right now | |
| 42 # http://code.google.com/p/chromium/issues/detail?id=89968 | |
| 43 is_broken=( | |
| 44 env.PPAPIBrowserTesterIsBroken() or | |
| 45 (env.Bit('bitcode') and env.Bit('target_x86_64')))) | |
| OLD | NEW |