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

Side by Side Diff: chrome/test/data/nacl/nacl_browser_test.gypi

Issue 11360223: Revert "Add support in NaCl browser tests for testing pnacl-translated nexes" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | chrome/test/data/nacl/nacl_test_data.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'includes': [ 6 'includes': [
7 '../../../../native_client/build/untrusted.gypi', 7 '../../../../native_client/build/untrusted.gypi',
8 ], 8 ],
9 'target_defaults': { 9 'target_defaults': {
10 # We need to override the variables in untrusted.gypi outside of a 10 # We need to override the variables in untrusted.gypi outside of a
11 # target_condition block because the target_condition block in 11 # target_condition block because the target_condition block in
12 # untrusted gypi is fully evaluated and interpolated before any of the 12 # untrusted gypi is fully evaluated and interpolated before any of the
13 # target_condition blocks in this file are expanded. This means that any 13 # target_condition blocks in this file are expanded. This means that any
14 # variables overriden inside a target_condition block in this file will not 14 # variables overriden inside a target_condition block in this file will not
15 # affect the values in untrusted.gypi. 15 # affect the values in untrusted.gypi.
16 'variables': { 16 'variables': {
17 'test_files': [], 17 'test_files': [],
18 'nacl_newlib_out_dir': '<(PRODUCT_DIR)/nacl_test_data/newlib', 18 'nacl_newlib_out_dir': '<(PRODUCT_DIR)/nacl_test_data/newlib',
19 'nacl_glibc_out_dir': '<(PRODUCT_DIR)/nacl_test_data/glibc', 19 'nacl_glibc_out_dir': '<(PRODUCT_DIR)/nacl_test_data/glibc',
20 'nacl_pnacl_out_dir': '<(PRODUCT_DIR)/nacl_test_data/pnacl',
21 'target_conditions': [ 20 'target_conditions': [
22 ['nexe_target!=""', { 21 ['nexe_target!=""', {
23 # These variables are used for nexe building and for library building, 22 # These variables are used for nexe building and for library building,
24 # so they should be unconditionally re-defined. 23 # so they should be unconditionally re-defined.
25 'out_newlib32': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_32.n exe', 24 'out_newlib32': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_32.n exe',
26 'out_newlib64': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_64.n exe', 25 'out_newlib64': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_64.n exe',
27 'out_newlib_arm': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.ne xe', 26 'out_newlib_arm': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.ne xe',
28 'nmf_newlib': '>(nacl_newlib_out_dir)/>(nexe_target).nmf', 27 'nmf_newlib': '>(nacl_newlib_out_dir)/>(nexe_target).nmf',
29 'out_pnacl_newlib': '>(nacl_pnacl_out_dir)/>(nexe_target)_newlib.pexe' ,
30 'out_pnacl_newlib_arm_nexe': '>(nacl_pnacl_out_dir)/>(nexe_target)_pna cl_newlib_arm.nexe',
31 'out_pnacl_newlib_x86_32_nexe': '>(nacl_pnacl_out_dir)/>(nexe_target)_ pnacl_newlib_x86_32.nexe',
32 'out_pnacl_newlib_x86_64_nexe': '>(nacl_pnacl_out_dir)/>(nexe_target)_ pnacl_newlib_x86_64.nexe',
33 'nmf_pnacl_nexe': '>(nacl_pnacl_out_dir)/>(nexe_target).nmf',
34 'out_glibc32': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nexe ', 28 'out_glibc32': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nexe ',
35 'out_glibc64': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nexe ', 29 'out_glibc64': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nexe ',
36 'out_glibc_arm': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe' , 30 'out_glibc_arm': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe' ,
37 'nmf_glibc': '>(nacl_glibc_out_dir)/>(nexe_target).nmf', 31 'nmf_glibc': '>(nacl_glibc_out_dir)/>(nexe_target).nmf',
38 }], 32 }],
39 ], 33 ],
40 }, 34 },
41 'dependencies': [ 35 'dependencies': [
42 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', 36 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
43 '<(DEPTH)/ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib', 37 '<(DEPTH)/ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib',
44 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', 38 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib',
45 '<(DEPTH)/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim .gyp:pnacl_irt_shim',
46 ], 39 ],
47 'target_conditions': [ 40 'target_conditions': [
48 ['test_files!=[] and build_newlib==1', { 41 ['test_files!=[] and build_newlib==1', {
49 'copies': [ 42 'copies': [
50 { 43 {
51 'destination': '>(nacl_newlib_out_dir)', 44 'destination': '>(nacl_newlib_out_dir)',
52 'files': [ 45 'files': [
53 '>@(test_files)', 46 '>@(test_files)',
54 ], 47 ],
55 }, 48 },
56 ], 49 ],
57 }], 50 }],
58 ['test_files!=[] and "<(target_arch)"!="arm" and disable_glibc==0 and buil d_glibc==1', { 51 ['test_files!=[] and "<(target_arch)"!="arm" and disable_glibc==0 and buil d_glibc==1', {
59 'copies': [ 52 'copies': [
60 { 53 {
61 'destination': '>(nacl_glibc_out_dir)', 54 'destination': '>(nacl_glibc_out_dir)',
62 'files': [ 55 'files': [
63 '>@(test_files)', 56 '>@(test_files)',
64 ], 57 ],
65 }, 58 },
66 ], 59 ],
67 }], 60 }],
68 ['test_files!=[] and build_pnacl_newlib==1', {
69 'copies': [
70 {
71 'destination': '>(nacl_pnacl_out_dir)',
72 'files': [
73 '>@(test_files)',
74 ],
75 },
76 ],
77 }],
78 ['nexe_target!=""', { 61 ['nexe_target!=""', {
79 'variables': { 62 'variables': {
80 # Patch over the fact that untrusted.gypi doesn't define these in all 63 # Patch over the fact that untrusted.gypi doesn't define these in all
81 # cases. 64 # cases.
82 'enable_x86_64%': 0, 65 'enable_x86_64%': 0,
83 'enable_x86_32%': 0, 66 'enable_x86_32%': 0,
84 'enable_arm%': 0, 67 'enable_arm%': 0,
85 'include_dirs': [ 68 'include_dirs': [
86 '<(DEPTH)', 69 '<(DEPTH)',
87 ], 70 ],
(...skipping 29 matching lines...) Expand all
117 ['enable_x86_32==1', { 100 ['enable_x86_32==1', {
118 'inputs': ['>(out_newlib32)'], 101 'inputs': ['>(out_newlib32)'],
119 }], 102 }],
120 ['enable_arm==1', { 103 ['enable_arm==1', {
121 'inputs': ['>(out_newlib_arm)'], 104 'inputs': ['>(out_newlib_arm)'],
122 }], 105 }],
123 ], 106 ],
124 }, 107 },
125 ], 108 ],
126 }], 109 }],
127 ['build_pnacl_newlib==1', {
128 'actions': [
129 {
130 'action_name': 'Generate PNACL NEWLIB NMF',
131 # Unlike glibc, nexes are not actually inputs - only the names m atter.
132 # We don't have the nexes as inputs because the ARM nexe may not
133 # exist. However, VS 2010 seems to blackhole this entire target if
134 # there are no inputs to this action. To work around this we ad d a
135 # bogus input.
136 'inputs': [],
137 'outputs': ['>(nmf_pnacl_nexe)'],
138 'action': [
139 'python',
140 '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py',
141 '>@(_inputs)',
142 '--output=>(nmf_pnacl_nexe)',
143 '--toolchain=newlib',
144 ],
145 'target_conditions': [
146 ['enable_x86_64==1', {
147 'inputs': ['>(out_pnacl_newlib_x86_64_nexe)'],
148 }],
149 ['enable_x86_32==1', {
150 'inputs': ['>(out_pnacl_newlib_x86_32_nexe)'],
151 }],
152 ['enable_arm==1', {
153 'inputs': ['>(out_pnacl_newlib_arm_nexe)'],
154 }],
155 ],
156 },
157 ],
158 }],
159 ['"<(target_arch)"!="arm" and disable_glibc==0 and build_glibc==1', { 110 ['"<(target_arch)"!="arm" and disable_glibc==0 and build_glibc==1', {
160 'variables': { 111 'variables': {
161 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which 112 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which
162 # doesn't work on Windows. 113 # doesn't work on Windows.
163 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', 114 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib',
164 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', 115 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32',
165 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump', 116 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump',
166 }, 117 },
167 'actions': [ 118 'actions': [
168 { 119 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. 151 # TODO(ncbray) handle arm case. We don't have ARM glibc yet.
201 ], 152 ],
202 }, 153 },
203 ], 154 ],
204 }], 155 }],
205 ], 156 ],
206 }], 157 }],
207 ], 158 ],
208 }, 159 },
209 } 160 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/nacl/nacl_test_data.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698