OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. |
| 5 |
| 6 # This is a C PPAPI |
| 7 # |
| 8 # ppapi_messaging.html - test driver that loads the nexe and scripts it |
| 9 # ppapi_messaging.nmf - manifest file for serving platform specific nexe binary. |
| 10 # |
| 11 # ppapi_messaging.c - implementation of PPP interface and PPP_Instance |
| 12 |
| 13 Import('env') |
| 14 |
| 15 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 16 |
| 17 nexe = 'ppapi_messaging_%s' % env.get('TARGET_FULLARCH') |
| 18 |
| 19 env.Alias('ppapi_messaging${PROGSUFFIX}', |
| 20 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
| 21 |
| 22 ppapi_messaging_nexe = env.ComponentProgram(nexe, |
| 23 ['ppapi_messaging.c'], |
| 24 EXTRA_LIBS=['${PPAPI_LIBS}', |
| 25 'platform', |
| 26 'gio', |
| 27 'pthread', |
| 28 'm', |
| 29 ]) |
| 30 |
| 31 # Note that the html is required to run this program. |
| 32 dest_copy = env.Replicate('$STAGING_DIR', |
| 33 ['ppapi_messaging.html', |
| 34 'ppapi_messaging.nmf', |
| 35 env.File('${SCONSTRUCT_DIR}/tools/browser_tester/' |
| 36 'browserdata/nacltest.js')] |
| 37 ) |
| 38 env.Depends(nexe, dest_copy) |
| 39 |
| 40 node = env.PPAPIBrowserTester('ppapi_messaging_browser_test.out', |
| 41 url='ppapi_messaging.html', |
| 42 files=[ppapi_messaging_nexe, |
| 43 env.File('ppapi_messaging.nmf'), |
| 44 env.File('ppapi_messaging.html')]) |
| 45 |
| 46 env.AddNodeToTestSuite(node, |
| 47 ['chrome_browser_tests'], |
| 48 'run_ppapi_messaging_browser_test', |
| 49 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |