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

Side by Side Diff: chrome/test/data/nacl/nacl_test_data.gyp

Issue 10827357: Add NaCl smoke test to browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: VS2010 fix? Created 8 years, 4 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
« no previous file with comments | « chrome/test/data/nacl/nacl_load_test.html ('k') | chrome/test/data/nacl/simple.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 'includes': [
7 '../../../../native_client/build/untrusted.gypi',
8 ],
9 # TODO(ncbray) factor nexe building code into a common file.
10 'targets': [
11 {
12 'target_name': 'nacl_tests',
13 'type': 'none',
14 'dependencies': [
15 '../../../../ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib',
16 '../../../../ppapi/native_client/native_client.gyp:ppapi_lib',
17 '../../../../ppapi/native_client/native_client.gyp:nacl_irt',
18 ],
19 'copies': [
20 {
21 'destination': '<(PRODUCT_DIR)/nacl_test_data/newlib',
22 'files': [
23 'nacl_load_test.html',
24 ],
25 },
26 {
27 'destination': '<(PRODUCT_DIR)/nacl_test_data/glibc',
28 'files': [
29 'nacl_load_test.html',
30 ],
31 },
32 ],
33 'variables': {
34 'nexe_target': 'simple',
35 'build_newlib': 1,
36 'out_newlib32': '<(PRODUCT_DIR)/nacl_test_data/newlib/>(nexe_target)_new lib_x86_32.nexe',
37 'out_newlib64': '<(PRODUCT_DIR)/nacl_test_data/newlib/>(nexe_target)_new lib_x86_64.nexe',
38 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_test_data/newlib/>(nexe_target)_n ewlib_arm.nexe',
39 'out_glibc32': '<(PRODUCT_DIR)/nacl_test_data/glibc/>(nexe_target)_glibc _x86_32.nexe',
40 'out_glibc64': '<(PRODUCT_DIR)/nacl_test_data/glibc/>(nexe_target)_glibc _x86_64.nexe',
41 'out_glibc_arm': '<(PRODUCT_DIR)/nacl_test_data/glibc/>(nexe_target)_gli bc_arm.nexe',
42 'nmf_newlib%': '<(PRODUCT_DIR)/nacl_test_data/newlib/>(nexe_target).nmf' ,
43 'include_dirs': [
44 '../../../..',
45 ],
46 'link_flags': [
47 '-lppapi_cpp',
48 '-lppapi',
49 '-lpthread',
50 ],
51 'sources': [
52 'simple.cc',
53 ],
54 },
55 'actions': [
56 {
57 'action_name': 'Generate NEWLIB NMF',
58 # Unlike glibc, nexes are not actually inputs - only the names matter.
59 # We don't have the nexes as inputs because the ARM nexe may not
60 # exist. However, VS 2010 seems to blackhole this entire target if
61 # there are no inputs to this action. To work around this we add a
62 # bogus input.
63 'inputs': ['nacl_test_data.gyp'],
64 'outputs': ['>(nmf_newlib)'],
65 'action': [
66 'python',
67 '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
68 '>(out_newlib64)', '>(out_newlib32)', '>(out_newlib_arm)',
69 '--output=>(nmf_newlib)',
70 '--toolchain=newlib',
71 ],
72 },
73 ],
74 'conditions': [
75 ['target_arch!="arm" and disable_glibc==0', {
76 'variables': {
77 'build_glibc': 1,
78 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which
79 # doesn't work on Windows.
80 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib',
81 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32',
82 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump',
83 'nmf_glibc%': '<(PRODUCT_DIR)/nacl_test_data/glibc/>(nexe_target).nm f',
84 },
85 'actions': [
86 {
87 'action_name': 'Generate GLIBC NMF and copy libs',
88 'inputs': ['>(out_glibc64)', '>(out_glibc32)'],
89 # NOTE: There is no explicit dependency for the lib32
90 # and lib64 directories created in the PRODUCT_DIR.
91 # They are created as a side-effect of NMF creation.
92 'outputs': ['>(nmf_glibc)'],
93 'action': [
94 'python',
95 '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
96 '>@(_inputs)',
97 '--objdump=>(nacl_objdump)',
98 '--library-path=>(libdir_glibc64)',
99 '--library-path=>(libdir_glibc32)',
100 '--output=>(nmf_glibc)',
101 '--stage-dependencies=<(PRODUCT_DIR)/nacl_test_data/glibc',
102 '--toolchain=glibc',
103 ],
104 },
105 ],
106 }],
107 ],
108 },
109 ],
110
111 }
112
OLDNEW
« no previous file with comments | « chrome/test/data/nacl/nacl_load_test.html ('k') | chrome/test/data/nacl/simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698