OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 2 # Copyright (c) 2011 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 # This is a C PPAPI-based version of ../npapi_geturl. |
| 7 # |
| 8 # ppapi_geturl.html - test driver that loads the nexe and scripts it |
| 9 # ppapi_geturl_success.html - to be url-loaded and displayed w/n driver html |
| 10 # |
| 11 # ppapi_geturl.cc - implementation of PPP interface |
| 12 # module.h/cc - implementation of PPP_Instance interface |
| 13 # scriptable_object.h/cc - implementation of the scripting interface |
| 14 # url_load_request.h/cc - url loading helper |
| 15 # nacl_file_main.cc - uses main() to test NaClFile interface |
| 16 |
| 17 Import('env') |
| 18 |
| 19 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 20 |
| 21 nexe = 'ppapi_geturl_%s' % env.get('TARGET_FULLARCH') |
| 22 env.Alias('ppapi_geturl${PROGSUFFIX}', |
| 23 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
| 24 |
| 25 ppapi_geturl_nexe = env.ComponentProgram(nexe, |
| 26 ['nacl_file_main.cc', |
| 27 'module.cc', |
| 28 'ppapi_geturl.cc', |
| 29 'url_load_request.cc', |
| 30 ], |
| 31 EXTRA_LIBS=[ |
| 32 'nacl_file', |
| 33 'ppruntime', |
| 34 'srpc', |
| 35 'imc', |
| 36 'imc_syscalls', |
| 37 'platform', |
| 38 'gio', |
| 39 '${PTHREAD_LIBS}', |
| 40 'm', |
| 41 '${NON_PPAPI_BROWSER_LIBS}'], |
| 42 EXTRA_LINKFLAGS=['-Wl,--wrap=read', |
| 43 '-Wl,--wrap=open', |
| 44 '-Wl,--wrap=lseek', |
| 45 '-Wl,--wrap=close']) |
| 46 |
| 47 env.Publish(nexe, 'run', |
| 48 ['ppapi_geturl.html', |
| 49 'ppapi_geturl.nmf', |
| 50 'ppapi_geturl_success.html']) |
| 51 |
| 52 node = env.PPAPIBrowserTester('ppapi_geturl_browser_test.out', |
| 53 url='ppapi_geturl.html', |
| 54 files=env.ExtractPublishedFiles(nexe), |
| 55 args=['--allow_404'], |
| 56 ) |
| 57 |
| 58 env.AddNodeToTestSuite(node, |
| 59 ['chrome_browser_tests'], |
| 60 'run_ppapi_geturl_browser_test', |
| 61 is_broken=env.PPAPIBrowserTesterIsBroken() |
| 62 ) |
OLD | NEW |