Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: ppapi/native_client/tests/ppapi_geturl/nacl.scons

Issue 7778012: Landing chrome side of nacl change pre-dating ppapi switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This is a C PPAPI-based version of ../npapi_geturl. 6 # This is a C PPAPI-based version of ../npapi_geturl.
7 # 7 #
8 # ppapi_geturl.html - test driver that loads the nexe and scripts it 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 9 # ppapi_geturl_success.html - to be url-loaded and displayed w/n driver html
10 # 10 #
11 # ppapi_geturl.cc - implementation of PPP interface 11 # ppapi_geturl.cc - implementation of PPP interface
12 # module.h/cc - implementation of PPP_Instance interface 12 # module.h/cc - implementation of PPP_Instance interface
13 # scriptable_object.h/cc - implementation of the scripting interface 13 # scriptable_object.h/cc - implementation of the scripting interface
14 # url_load_request.h/cc - url loading helper 14 # url_load_request.h/cc - url loading helper
15 # nacl_file_main.cc - uses main() to test NaClFile interface 15 # nacl_file_main.cc - uses main() to test NaClFile interface
16 16
17 Import('env') 17 Import('env')
18 18
19 env.Prepend(CPPDEFINES=['XP_UNIX']) 19 env.Prepend(CPPDEFINES=['XP_UNIX'])
20 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
21 'ppapi_geturl/')
20 22
21 nexe = 'ppapi_geturl_%s' % env.get('TARGET_FULLARCH') 23 nexe = 'ppapi_geturl_%s' % env.get('TARGET_FULLARCH')
22 env.Alias('ppapi_geturl${PROGSUFFIX}', 24 env.Alias('ppapi_geturl${PROGSUFFIX}',
23 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) 25 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
24 26
25 ppapi_geturl_nexe = env.ComponentProgram(nexe, 27 ppapi_geturl_nexe = env.ComponentProgram(nexe,
26 ['nacl_file_main.cc', 28 ['nacl_file_main.cc',
27 'module.cc', 29 'module.cc',
28 'ppapi_geturl.cc', 30 'ppapi_geturl.cc',
29 'url_load_request.cc', 31 'url_load_request.cc',
30 ], 32 ],
31 EXTRA_LIBS=[ 33 EXTRA_LIBS=[
32 'nacl_file', 34 'nacl_file',
33 'ppruntime', 35 'ppruntime',
34 'srpc', 36 'srpc',
35 'imc', 37 'imc',
36 'imc_syscalls', 38 'imc_syscalls',
37 'platform', 39 'platform',
38 'gio', 40 'gio',
39 '${PTHREAD_LIBS}', 41 '${PTHREAD_LIBS}',
40 'm', 42 'm',
41 '${NON_PPAPI_BROWSER_LIBS}'], 43 '${NON_PPAPI_BROWSER_LIBS}'],
42 EXTRA_LINKFLAGS=['-Wl,--wrap=read', 44 EXTRA_LINKFLAGS=['-Wl,--wrap=read',
43 '-Wl,--wrap=open', 45 '-Wl,--wrap=open',
44 '-Wl,--wrap=lseek', 46 '-Wl,--wrap=lseek',
45 '-Wl,--wrap=close']) 47 '-Wl,--wrap=close'])
46 48
47 env.Publish(nexe, 'run', 49 env.Publish(nexe, 'run',
48 ['ppapi_geturl.html', 50 ['ppapi_geturl.html',
49 'ppapi_geturl.nmf',
50 'ppapi_geturl_success.html']) 51 'ppapi_geturl_success.html'])
51 52
52 node = env.PPAPIBrowserTester('ppapi_geturl_browser_test.out', 53 node = env.PPAPIBrowserTester('ppapi_geturl_browser_test.out',
53 url='ppapi_geturl.html', 54 url='ppapi_geturl.html',
55 nmf='${TEST_DIR}/ppapi_geturl.nmf',
54 files=env.ExtractPublishedFiles(nexe), 56 files=env.ExtractPublishedFiles(nexe),
55 args=['--allow_404'], 57 args=['--allow_404'],
56 ) 58 )
57 59
58 env.AddNodeToTestSuite(node, 60 env.AddNodeToTestSuite(node,
59 ['chrome_browser_tests'], 61 ['chrome_browser_tests'],
60 'run_ppapi_geturl_browser_test', 62 'run_ppapi_geturl_browser_test',
61 is_broken=env.PPAPIBrowserTesterIsBroken() 63 is_broken=env.PPAPIBrowserTesterIsBroken() or
62 ) 64 env.Bit('nacl_glibc'))
OLDNEW
« no previous file with comments | « ppapi/native_client/tests/ppapi_example_post_message/nacl.scons ('k') | ppapi/native_client/tests/ppapi_gles_book/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698